Start Me
Pasta
累计调用:63
快递单号查询
GET|POST全网快递,实时查询。提供常用快递、物流公司的快递单号查询,快递单号查询集成EMS,申通,圆通,韵达,中通,华宇,德邦等
接口地址:
https://api.qster.top/API/v2/express
接口示例:
https://api.qster.top/API/v2/express/?qskey=0&nu=JDVB40505691749
请求参数
响应参数
参数 | 说明 |
---|---|
success | 查询快递状态 |
error | 错误提示 |
data.context | 快递物流信息 |
data.status | 快递运输状态。0(未发货)、1(正常运输)、2(异常件,如退回、滞留等) |
data.state | 快递节点状态。0(已揽收)、1(运输中)、2(派送中 )、3(已签收)、4(退回件)、5(问题件) |
data.officalService | 快递公司信息 |
code | 200正常400失败 查看更多 |
代码示例
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qster.top/API/v2/express",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => [
"nu" => "快递单号,自动识别快递、物流公司",
"qskey" => "0",
],
CURLOPT_HTTPHEADER => [
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
import requests
url = "https://api.qster.top/API/v2/express";
params = {
"nu" : "快递单号,自动识别快递、物流公司",
"qskey" => "0"
}
response = requests.get(url, params=params)
print(response.text)
function fetchData(url, params) {
const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
const fullUrl = `${url}?${queryString}`;
fetch(fullUrl)
.then(response => response.text())
.then(data => {
const resultElement = document.createElement('pre');
resultElement.textContent = data;
document.body.appendChild(resultElement);
})
.catch(error => console.error('Error fetching data:', error));
}
// 示例用法
const url = "https://api.qster.top/API/v2/express";
const params = {
"nu" : "快递单号,自动识别快递、物流公司",
"qskey" => "0"
};
fetchData(url, params);
在线调试
小小赞助支持
