Aftership
用于高效更新、管理和跟踪物流的 API
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 物流追踪
简介
AfterShip 的 API 跨 1,200+ 快递公司追踪包裹——一个端点覆盖任何承运商。认证是 API 密钥(无效密钥返回 401,已实测)。
快速开始
列出快递公司(替换 YOUR_KEY):
curl "https://api.aftership.com/v4/couriers" \
-H "aftership-api-key: YOUR_KEY"
{
"data": {
"total": 1200,
"couriers": [ { "slug": "dhl", "name": "DHL" } ]
}
}
追踪包裹:
curl -X POST "https://api.aftership.com/v4/trackings" \
-H "aftership-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"tracking": {"tracking_number": "123456789", "slug": "dhl"}}'
认证方式
- 在 aftership.com 注册 → API 密钥。
- 通过
aftership-api-key请求头携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层:约 100 个追踪包裹/月(以文档为准);付费档可扩展。
- 一个 API 覆盖 1,200+ 快递公司(自动识别 slug)。
- 支持送达事件 webhook 通知。
常见问题
AfterShip 免费吗? 免费层带月度包裹额度;更多需要付费。
如何获取密钥? aftership.com → 控制台 → API 密钥。
认证风格是什么?
aftership-api-key 请求头(已实测)。
物流追踪 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Correios Integration to provide information and prepare shipments using Correio's services | API Key | Yes | Unknown | ↗ |
| Mapbox Maps, directions, geocoding | API Key | Yes | Unknown | ↗ |
| Pixela API for recording and tracking habits or effort, routines | X-Mashape-Key | Yes | Yes | ↗ |
| PostalPinCode API for getting Pincode details in India | No auth | Yes | Unknown | ↗ |
| Postmon An API to query Brazilian ZIP codes and orders easily, quickly and free | No auth | No | Unknown | ↗ |