免费查询全国物流快递API查询

提供国内外1500+快递公司跟踪服务,合作国内各大物流公司,包括顺丰、圆通、申通等主流快递公司,可自动识别单号信息。接口调用简单方便,一条URL链接即可对接。

使用

首先,使用数据平台该API接口需要先注册后申请此API接口。申请成功后赠送免费次数。

API接口地址为:https://www.tanshuapi.com/market/detail-68

其中,KEY为用户后台我的api页面展示的API密钥, 代码示例如下:

import requests

url = "http://api.tanshuapi.com/api/exp/v1/index?key=&com=auto&no=JDV013104061328

payload={}
headers = {
   'Accept': '*/*',
   'Host': 'api.tanshuapi.com',
   'Connection': 'keep-alive'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

返回:

{
    "code": 1,
    "msg": "操作成功",
    "data": {
        "company": "京东快递",
        "com": "jd",
        "no": "JDV013104061328",
        "status_detail": 4,
        "list": [
            {
                "datetime": "2023-10-28 20:25:12",
                "remark": "您的快件已由本人签收,感谢您使用京东物流,期待再次为您服务"
            },
            {
                "datetime": "2023-10-28 09:13:25",
                "remark": "您的快件正在派送中,请您准备签收(快递员:漆学文,联系电话:13540032029)。"
            },
            {
                "datetime": "2023-10-27 21:37:08",
                "remark": "您的快件派送不成功,原因【系统/设备问题暂不能激活】,预计下次派送时间2023-10-31 23:00"
            },
            {
                "datetime": "2023-10-27 15:32:43",
                "remark": "您的快件正在派送中,请您准备签收(快递员:漆学文,联系电话:13540032029)。"
            },
            {
                "datetime": "2023-10-27 14:55:59",
                "remark": "您的快件已到达【成都大丰营业部】"
            },
            {
                "datetime": "2023-10-27 14:55:58",
                "remark": "您的快件在【成都大丰营业部】收货完成"
            },
            {
                "datetime": "2023-10-27 13:45:12",
                "remark": "您的快件已发车"
            },
            {
                "datetime": "2023-10-27 13:27:54",
                "remark": "您的快件由【成都新都分拣中心】准备发往【成都大丰营业部】"
            },
            {
                "datetime": "2023-10-27 13:15:27",
                "remark": "您的快件在【成都新都分拣中心】分拣完成"
            },
            {
                "datetime": "2023-10-27 11:41:25",
                "remark": "您的快件已到达【成都新都分拣中心】"
            },
            {
                "datetime": "2023-10-27 11:20:24",
                "remark": "您的快件由【成都新都连廊接货仓】准备发往【成都新都分拣中心】"
            },
            {
                "datetime": "2023-10-27 11:20:19",
                "remark": "您的快件已揽收完成"
            },
            {
                "datetime": "2023-10-27 11:01:33",
                "remark": "打包完成"
            },
            {
                "datetime": "2023-10-27 09:25:50",
                "remark": "您的订单将下传成都仓库,准备出库"
            }
        ]
    }
}

你可能感兴趣的:(API接口,后端,python,数据挖掘,爬虫,网络)