API地址:

http://api.91track.com/track

示例:

http://api.91track.com/track?
    culture=zh-CN&
    numbers=RX196816382CH,YW884458234CN&
    token=NPlkjmhMILSWvW16LjMSq0oc5PgJG3df6QrgGq7z7PwfChK1gLQF%2fW9gTW%2

Request参数

参数名称 参数说明
Token 必选参数,api调用凭证,需要encode, 在 这里申请API Tokenurl encode工具
Numbers 必选参数,跟踪号,多个跟踪号用逗号分割
Culture 可选参数,语言,目前只支持中文(zh-cn)和英文(en),默认为中文
返回结果:
  • 当Token被停用时,会返回错误信息 {"Status":0,"Error":"Your access token is disabled."}
  • 当Token无可用查询次数时,会返回错误信息 {"Status":0,"Error":"Your access token request count is not enough, please recharge."}
  • 无效Token直接返回空数组[]
  • 当成功查询时,返回一个查询结果的数组,结果示例如下:
Status跟踪状态说明:
Status 说明
1 查询不到
2 运输途中
3 到达待取
4 成功签收
NotFoundReason错误状态说明
NotFoundReason 说明
0 正常
1 未知错误
2 单号无法识别
3 查询官网地址变更
4 查询官网设置错误
5 请求解析错误
6 查询官网超时
7 查询官网配置语法错误
8 查询官网cookie过去
9 查询官网配置错误
10 未找到解析器
11 解析器错误
12 请求内容错误
13 解析内容错误
14 未找到承运商
15 查询官网地址不存在
16 验证码下载失败
17 验证码解析失败
18 验证码过期
19 查询结果包含非法内容
20 燕文API请求错误
21 燕文API超时
22 第三方明确要求重查

[{
    "Number": "RX196816382CH",
    "Status": 4,
    "NotFoundReason": 0,
    "DeliveryDate": "2014-04-03 13:29:00",
    "Duration": "14天19小时",
    "Orginal": "瑞士",
    "OrginalWebSite": "http://www.swisspost.ch/",
    "Destination": "美国",
    "DestinationWebSite": "https://tools.usps.com/go/TrackConfirmAction!input.action",
    "SupportedLanguages": ["en-us", "fr-ch", "de-ch", "it-ch"],
    "OriginTracking": {
        "Carrier": "瑞士邮政",
        "Language": "en-us",
        "Events": [{
            "Time": "2014-04-03 13:29:00",
            "Location": null,
            "Description": "Delivered, 00766"
        }, {
            "Time": "2014-04-01 08:45:00",
            "Location": null,
            "Description": "Delivery attempt: addressee absent, 00766"
        }]
    },
    "DestTracking": {
        "Carrier": "美国邮政",
        "Language": "en-us",
        "Events": [{
            "Time": "2014-04-03 13:29:00",
            "Location": null,
            "Description": "Your item was delivered at 1:29 pm on April 3, 2014 in VILLALBA, PR 00766."
        }, {
            "Time": "2014-04-01 08:45:00",
            "Location": null,
            "Description": "Notice Left (No Authorized Recipient Available), April 1, 2014, 8:45 am, VILLALBA, PR 00766"
        }]
    },
    "Extra": null
}, {
    "Number": "YW884458234CN",
    "Status": 2,
    "DeliveryDate": null,
    "Duration": "2天6小时",
    "Orginal": null,
    "OrginalWebSite": "http://www.yw56.com.cn/",
    "Destination": null,
    "DestinationWebSite": null,
    "SupportedLanguages": ["en-us"],
    "OriginTracking": {
        "Carrier": "燕文物流",
        "Language": "en-us",
        "Events": [{
            "Time": "2014-08-26 20:00:00",
            "Location": "上海",
            "Description": "离开上海燕文处理中心发往国外"
        }, {
            "Time": "2014-08-26 18:00:00",
            "Location": "上海",
            "Description": "到达上海燕文处理中心"
        }, {
            "Time": "2014-08-26 11:21:00",
            "Location": null,
            "Description": "NL, Order Processed: Ready for UPS"
        }]
    },
    "DestTracking": null,
    "Extra": {
        "Original": "YW884458234CN",
        "Relabeled": "1Z2385VA6892981051",
        "Website": "http://www.ups.com/"
    }
}]