Carriers

Carrier ids

GET /v1/carriers lists them. No key needed.

curl https://api.lastscanned.com/v1/carriers
{ "carriers": ["ups", "usps", "dhl", "fedex", "amazon", "ontrac", "uniuni", "gofo", "veho", "speedee", "cdl", "bettertrucks", "axlehire", "cirro", "yanwen", "4px", "cainiao", "yunexpress"] }

Detected formats

✓ marks formats that must also pass a check digit. Looser formats are used only when no other carrier claims the number. Anything else needs ?carrier=.

CarrieridDetected formatsLooser formats
UPSups1Z + 16 letters/digits ✓
USPSusps22-digit labels starting 92, 93, 94 or 95, optionally with a 420 + ZIP prefix; EA123456785US-style international ✓
DHLdhl10 digits (Express) ✓; JD/JJD + 10–20 digits; GM + 16–20 digits (eCommerce); 20 digits starting 0034043 (Paket); RR123456785DE-style Deutsche Post ✓
FedExfedex12, 15 or 20 digits; 22 digits starting 96
AmazonamazonTBA/TBC/TBM + 12 digits
OnTracontracC or D + 14 digits; LaserShip 1LS + 12–15 letters/digits and LX12345678-style
UniUniuniuniUUS + 13–16 letters/digitsUR…, U9999…, U000…
GOFOgofoGFUS + 14 digitsGF + 13 digits
VehovehoVH + 12 letters/digits
Spee-DeespeedeeSP + 16 or 18 digits
CDL Last MilecdlCDL + 11 digitsorder numbers like 943506776-0
Better TrucksbettertrucksBTS_ + 8–14 letters/digits; BTP + 12 letters/digits
AxleHire (Jitsu)axlehireSCD + 16 letters/digits; 12- or 16-character letter/digit codes
CirrocirroCR + 12 digits; CIFR + 13 digits
YanwenyanwenXX123456785YP-style ✓; YW + 3 letters + 12 digits
4PX4px4PX + 13 digits + CN
CainiaocainiaoLP + 14–17 digits; AP + 14 digits
YunExpressyunexpressYT + 16 digits

When two carriers share a format, the earlier row wins. 12- and 20-digit numbers go to FedEx, except 20-digit 0034043… (DHL Paket); other DHL Paket numbers need ?carrier=dhl.

Numbers that need ?carrier=

  • OnTrac reference numbers
  • UniUni GV… and JY… partner numbers
  • GOFO shipper numbers (CR…, YT…)
  • Shippers' own numbers on Veho
  • CDL shipper references other than CDL… and order numbers
  • AxleHire codes outside the looser formats above
  • Cirro numbers starting GFUS (Cirro delivers through GOFO, so these are detected as GOFO)
  • Other carriers' numbers on AliExpress parcels tracked through Cainiao

Carrier notes

  • Amazon: Amazon Shipping and Multi-Channel Fulfillment parcels only. Ordinary amazon.com orders are private to the buyer's account and return not_found.
  • Spee-Dee: allows 10 lookups a minute, so part of a large batch can come back rate_limited. Retry those numbers after a minute.
  • Yanwen, 4PX, Cainiao, YunExpress: cross-border from China. message names the destination carrier and its number once the parcel is handed over.
  • No estimated delivery: Spee-Dee, CDL, 4PX, Cainiao.

On this page