cn-express-tracker
Query package tracking information from Chinese and international carriers using Kuaidi100 API. Supports auto-detection of carrier from tracking number. Use when user asks to track a package, check delivery status, query express/courier/logistics info, or mentions a tracking number. Triggers: 查快递, 快递查询, 物流查询, track package, tracking number, delivery status, 单号查询, express tracking, courier tracking.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/charles-lpf/cn-express-trackerExpress Tracker(快递物流查询)
Track packages from 200+ carriers (Chinese domestic + international) via Kuaidi100 API.
Setup (Required)
Users must obtain their own Kuaidi100 API credentials:
-
Register at Kuaidi100 Open Platform
- 注册企业版账号(个人也可注册)
- Free tier: 100 queries/day after verification
-
Get credentials from the Kuaidi100 Dashboard:
- 授权 Key(API Key): Found in 授权信息 → 授权key
- Customer ID: Found in 授权信息 → customer
-
Set environment variables:
export EXPRESS_TRACKER_KEY="your_api_key_here" export EXPRESS_TRACKER_CUSTOMER="your_customer_id_here"For persistent config, add to
~/.bashrcor~/.zshrc:echo 'export EXPRESS_TRACKER_KEY="your_key"' >> ~/.zshrc echo 'export EXPRESS_TRACKER_CUSTOMER="your_customer"' >> ~/.zshrc
Usage
# Auto-detect carrier and query
scripts/track.sh <tracking_number>
# Specify carrier manually
scripts/track.sh <tracking_number> <carrier_code>
Examples
# Auto-detect (recommended)
scripts/track.sh 770308811947591
# Specify carrier explicitly
scripts/track.sh SF1234567890 shunfeng
How It Works
- Carrier auto-detection: Local rule-based matching by tracking number prefix/length/format
- API query: Sends signed request to Kuaidi100 poll API with
resultv2=4for advanced status - Output: Formatted timeline with full tracking history (newest first)
Supported Carriers (Auto-Detection)
| Prefix/Pattern | Carrier | Code |
|---|---|---|
SF | 顺丰速运 | shunfeng |
YT | 圆通速递 | yuantong |
JT / J0 | 极兔速递 | jitu |
JD | 京东快递 | jd |
CN | 菜鸟速递 | cainiao |
DPK | 德邦快递 | debangkuaidi |
KYE | 跨越速运 | kuayue |
AN | 安能物流 | annengwuliu |
1Z | UPS | ups |
78/73/72/21/68 + digits | 中通快递 | zhongtong |
10/11/12/13/19/46 + 13 digits | 韵达快递 | yunda |
77/88/66/55/44 + 13-15 digits | 申通快递 | shentong |
E + letter + 9 digits + 2 letters | EMS | ems |
If auto-detection fails, specify the carrier code manually as the second argument.
Full carrier code list: Kuaidi100 Carrier Codes
Dependencies
curl— HTTP requestsjq— JSON parsing (install:brew install jq/apt install jq)opensslormd5sumormd5— MD5 signature (at least one required)
Error Codes
| Code | Meaning | Action |
|---|---|---|
| 400 | Incomplete data / wrong carrier | Check carrier code |
| 408 | Phone verification failed | SF/ZTO require phone number |
| 500 | No tracking info found | Verify tracking number and carrier |
| 503 | Signature verification failed | Check API Key and Customer ID |
| 601 | API Key expired / no balance | Recharge account |
Agent Integration
When a user provides a tracking number, run:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-charles-lpf-cn-express-tracker": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
ecommerce-logistics
Aggregate logistics information from Taobao, JD, PDD, and Douyin. One-click query for multi-platform order tracking. Supports persistent cookie storage and QR code login. Use when user asks to check orders, track packages from shopping platforms, or mentions 淘宝/京东/拼多多/抖音 物流/订单.
viz-table
从 CSV/JSON 文件读取数据,使用 ECharts 生成可视化 HTML 图表(柱状图、折线图、饼图、环形图)并自动在浏览器中打开。用户提供文件路径时触发。