单号追踪快递快递查询物流 交通出行

快递100实时快递查询API

快递100实时快递查询接口支持30多家国内快递公司物流查询,返回物流轨迹、状态与时间。注册企业账号可免费试用后购买套餐。

查看官方文档 ↗

接入教程

https://poll.kuaidi100.com/poll/query.do

1. 在快递100开放平台注册企业账号。
2. 在管理后台获取授权Key(customer与key)。
3. 构建param参数并签名,调用实时查询接口:
4. 请求参数包含快递公司编码com与单号num。
5. 注意同一单号查询频率控制在半小时以上,避免锁单。

Python 查询快递物流

python
import requests, hashlib

key = "你的KEY"
customer = "你的customer"
param = {"com": "yuantong", "num": "12345678"}
param_json = json.dumps(param)
sign = hashlib.md5((param_json + key + customer).encode()).hexdigest().upper()
r = requests.post("https://poll.kuaidi100.com/poll/query.do",
    data={"customer": customer, "sign": sign, "param": param_json})
print(r.json())

PHP 查询快递物流

php
<?php
$key = '你的KEY'; $customer = '你的customer';
$param = json_encode(['com' => 'yuantong', 'num' => '12345678'], JSON_UNESCAPED_UNICODE);
$sign = strtoupper(md5($param . $key . $customer));
$res = file_get_contents('https://poll.kuaidi100.com/poll/query.do', false,
  stream_context_create(['http' => ['method' => 'POST',
    'header' => 'Content-type: application/x-www-form-urlencoded',
    'content' => http_build_query(['customer' => $customer, 'sign' => $sign, 'param' => $param])]]));
echo $res;

JavaScript 查询快递物流

javascript
// 服务端签名后调用
fetch('https://poll.kuaidi100.com/poll/query.do', {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({customer, sign, param})
}).then(r => r.json()).then(console.log);

常见问题

有免费额度吗?

注册企业账号后可免费试用,正式使用需购买充值套餐。

查询频率有限制吗?

同一单号建议间隔30分钟以上查询,否则可能锁单。

相似接口推荐

航空数据栈API

实时航班追踪和全球航空数据API服务,提供航班状态、历史数据、航班时刻表、航空公司航线、机场信息、飞机数据等全面的航空信息查询。

免费
Marketstack股票市场数据API

提供实时、盘中及历史股票市场数据的REST API服务,涵盖全球30,000+股票代码,同时新增EDGAR文件端点用于获取SEC公司申报文件。支持JSON格式响应,提供免费计划。

免费
eBird鸟类观测数据API

康奈尔鸟类学实验室提供的全球鸟类观测数据接口,支持查询特定区域近期或显著的鸟类观察记录

免费
Weatherstack

Weatherstack 是一款提供全球实时、历史和预测天气数据的API服务,以轻量级JSON格式返回准确的气象信息,支持数百万个地点查询。

免费