Cainiao tracking URL from a tracking number
Cainiao (CN) tracking numbers follow this format: LP prefix + 10-18 digits, or YANWEN prefix + alphanumeric (20-25 chars). ShipShim detects the carrier from the number and returns the direct tracking link.
Example: number in, tracking URL out
| Example tracking number | LP8888888888 |
|---|---|
| Tracking URL | https://global.cainiao.com/detail.htm?mailNoList=LP8888888888 |
This format is distinctive, so ShipShim identifies Cainiao from the bare number — no hints needed.
Get the Cainiao tracking link via API
curl -X POST https://shipshim.com/api/v1/track \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tracking_number": "LP8888888888"}'
Response:
{
"tracking_number": "LP8888888888",
"carrier": "Cainiao",
"country": "CN",
"tracking_url": "https://global.cainiao.com/detail.htm?mailNoList=LP8888888888",
"confidence": 100,
"matches": [
{
"carrier": "Cainiao",
"country": "CN",
"confidence": 100,
"tracking_url": "https://global.cainiao.com/detail.htm?mailNoList=LP8888888888"
}
]
}
Get a free API key Read the API reference — the free tier includes 100 calls/month.