快递查询API接口


点击链接自动复制

接口地址:

http://api.xsdggw.cn/api/kuaidi-1.php?hao=快递单号

返回格式:

JSON

请求方式:

GET

请求示例:

http://api.xsdggw.cn/api/kuaidi-1.php?hao=快递单号

演示效果

{ "success": true, "num": "1234567890", "name": "AAE 中国", "type": "aae", "info": [{ "time": "2017-06-15 14:31:00", "ftime": "2017-06-15 14:31:00", "context": "总公司发往AAE-AE", "location": "" }, { "time": "2015-08-11 19:32:00", "ftime": "2015-08-11 19:32:00", "context": "门店入库扫描", "location": "" }, { "time": "2013-03-22 16:00:00", "ftime": "2013-03-22 16:00:00", "context": "上海第二分公司取件入库", "location": "" }, { "time": "2013-03-22 16:00:00", "ftime": "2013-03-22 16:00:00", "context": "上海第二分公司发往华东分拨中心", "location": "" }, { "time": "2013-03-22 15:59:00", "ftime": "2013-03-22 15:59:00", "context": "起运地发件办理", "location": "" }] }

调用代码

自行调用

调用代码

<?php
$num = $_GET['num'];
$result = file_get_contents("http://api.xsdggw.cn/api/kuaidi-1.php?hao=".$num);
header("Content-Type:text/json;charset=UTF-8");
echo $result;
?>