Skip to content

Latest commit

 

History

History
115 lines (94 loc) · 2.99 KB

kd.md

File metadata and controls

115 lines (94 loc) · 2.99 KB

快递查询接口

根据快递编号查询快递实时物流信息,目前支持国内常用快递,如果查询不支持的快递,请联系我添加接口

快递实时查询接口

接口参数

请求地址:/api/kd

请求方法:get post

请求参数:

参数名称 必选 类型 说明
number string 快递编号
com string 快递公司编号,不填自动获取快递公司编号,可能会出错

返回数据

测试参数:number=560006690892

{
    "code": 200,
    "msg": "success",
    "data": {
        "status": 1,
        "nu": "560006690892",
        "com": "lianhaowuliu",
        "state": "0",
        "info": [
            {
                "time": "2019-09-27 10:51:29",
                "content": "[那曲市]到达【那曲邮政处理中心】"
            },
            {
                "time": "2019-09-27 04:47:30",
                "content": "[拉萨市]离开【拉萨邮区中心局邮件处理中心】,下一站【那曲邮政处理中心】(经转)"
            },
            {
                "time": "2019-09-26 15:36:40",
                "content": "[拉萨市]到达【航空邮件处理中心】(经转)"
            },
            {
                "time": "2019-09-26 02:28:57",
                "content": "[北京市]离开【北京航站】,下一站【航空邮件处理中心】"
            },
            {
                "time": "2019-09-25 22:06:30",
                "content": "[北京市]到达【新顺中心】"
            },
            {
                "time": "2019-09-25 21:08:11",
                "content": "[北京市]离开【中关村区域商企中心】,下一站【新顺中心】"
            },
            {
                "time": "2019-09-25 21:00:10",
                "content": "[北京市]【中关村区域商企中心】已收件,揽投员:朱云麟,电话:18519361874"
            }
        ]
    },
    "Author": {
        "name": "Alone88",
        "desc": "由Alone88提供的免费API 服务,官方文档:www.alapi.cn"
    }
}

快递公司编号查询

查询快递公司的编号

接口参数

请求地址:/api/kd/com

请求方法:get post

请求参数:

参数名称 必选 类型 说明
name string 快递公司名称
code string 快递公司编号

code 优先级 高于 name, 如果两个参数都不填则获取所有的快递公司

返回数据

测试参数:name=中通

{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "id": 2,
            "name": "中通快递",
            "code": "ZTO"
        },
        {
            "id": 184,
            "name": "中通快运",
            "code": "ZTOKY"
        }
    ],
    "Author": {
        "name": "Alone88",
        "desc": "由Alone88提供的免费API 服务,官方文档:www.alapi.cn"
    }
}