淘宝客API
京东API
拼多多API
唯品会API
苏宁API
开放平台API
美团平台
企业微信
点击获取APKEY

正常 快递查询

更新时间:2020-09-03 12:39:51

请求链接: http://api.web.21ds.cn/platform/expressQuery
请求实例: http://api.web.21ds.cn/platform/expressQuery?apkey=登录后即可显示&express_no=xxxx. (注:此实例中的密钥为登录用户的真实密钥,不登录不显示,请妥善保管,切勿泄露!)
注意事项:如调用接口时数据返回异常,则需对接口中的【中文】及含有【空格】的数据进行Urlencode编码,然后再试。
今日调用统计: 暂无统计
会员限制: 付费会员 (新用户注册立刻送7天V1付费会员【注:赠送会员可使用全部接口,但调用频率与免费会员一致,免费会员调用频率可参考会员等级说明】)
频率说明: 不同会员级别调用频率不同,具体可见会员升级页面介绍。会员升级传送门
使用说明: 年费会员免费使用,非年费会员按次调用0.001元/次
必看注意:为保障接口安全及使用效率,调用本站接口前需先 添加IP白名单 (IP地址测试),若IP不固定且无服务器,可通过“优惠推荐”中的链接购买阿里云服务器来调用接口。禁止以插件(包括但不仅限于浏览器插件及手机插件)形式使用接口,禁止将接口重新打包销售或转卖,一经发现,将做帐号封禁处理。
优惠推荐:高性能云服务器2折起,普惠上云,仅需234元/年 ->>立即抢购<<-
限时推广:送你100元借款优惠券!借款时可用。(数量有限,先到先得) ->>立即领取<<-

使用说明

建议实时调用,严禁批量调用

请求参数

参数类型请求参数参考值是否必须说明
apkeyStringxxxxxxx用户中心 - 系统设置 - 平台设置 中查看APKEY密钥 (点击进入)*必要
express_noStringxxxx.快递单号,支持英文字母及数字

返回参数

返回参数类型参数说明扩展说明
dataJson返回数据列表
 ├ cpCompanyInfoJson快递信息
 ├ packageStatusJson快递状态
 ├ transitListJson快递跟踪记录

Json返回示例

{"code":200,"data":{"cpCompanyInfo":{"companyCode":"YTO","companyName":"圆通速递","iconUrl100x100":"http://gtms03.alicdn.com/tps/i3/TB1E49DKFXXXXcSXFXXqxFJVFXX-100-100.png","iconUrl102x38":"http://gtms01.alicdn.com/tps/i1/TB1M8K2KFXXXXX3XXXX4zcE9VXX-102-38.png","iconUrl16x16":"http://gtms01.alicdn.com/tps/i1/TB1oBiVKFXXXXcdXVXXAz6UFXXX-16-16.png","iconUrl288x72":"http://gtms01.alicdn.com/tps/i1/TB119aXKFXXXXcOXFXX6JhiMFXX-288-72.png","iconUrl36x36":"http://gtms04.alicdn.com/tps/i4/TB1T8SZKFXXXXamXVXXgBrbGpXX-36-36.png","iconUrl56x56":"http://gtms01.alicdn.com/tps/i1/TB1yM9UKFXXXXXYaXXXZCKuHFXX-56-56.png","pinyin":"YTSD","serviceTel":"95554","webUrl":"www.ytoexpress.com"},"packageStatus":{"departureName":"杭州市","desc":"您xxxxxx2","newStatusCode":"AGENT_SIGN","newStatusDesc":"待取件","progressbar":"95","status":"待取件","statusCode":"STA_INBOUND"},"transitList":[{"action":"TMS_ACCEPT","message":"xxxxx","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-23 12:51:58"},{"action":"TMS_PACKAGE","message":"支xxxx","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-23 15:49:36"},{"action":"TMS_STATION_IN","message":"杭xxxxxxx入","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-23 23:39:33"},{"action":"TMS_STATION_OUT","message":"杭州xxx情xxxx理解!","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-24 00:08:15"},{"action":"TMS_STATION_IN","message":"济南xxxxx入","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-25 04:19:40"},{"action":"TMS_STATION_OUT","message":"xxxxx!","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-25 04:48:39"},{"action":"TMS_STATION_IN","message":"山xxxx理解!","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-25 08:41:33"},{"action":"TMS_SENT_CITY","message":"山xx入","sectionIcon":"https://gw.alicdn.com/tps/TB1eExiMpXXXXX7aXXXXXXXXXXX-27-27.png","sectionName":"TRANSPORT","time":"2020-02-25 09:19:16"},{"action":"TMS_DELIVERING","message":"xxxxx件","sectionIcon":"https://gw.alicdn.com/tps/TB1o9aYMXXXXXaAXpXXXXXXXXXX-63-63.png","sectionName":"TRANSPORT","time":"2020-02-25 09:19:16"},{"action":"STA_INBOUND","message":"您xxxx","sectionIcon":"https://gw.alicdn.com/tps/TB1pcu2MXXXXXbuXpXXXXXXXXXX-63-63.png","sectionName":"LASTONE","time":"2020-02-25 12:19:28"}],"deliveryInfo":{"contact":"18xxxx07","name":"张xx"}},"msg":"success"}

code/http_status说明

code/http_status说明
200数据获取成功
-1数据获取失败
401IP没有添加白名单
429访问次数超限
403关键参数丢失
405请求方式不对