South Star

Tracking Number Parser Carrier Detector UPS FedEx API

Free tier included · Logistics
Detect tracking carrier, validate check digit & US DOT numbers;.

Tracking Number Parser & Carrier Detector identifies the probable carrier of a tracking number and validates its check digit across 18 couriers and 39 number formats — UPS, FedEx, USPS, DHL, Amazon Logistics, Canada Post, DPD, and more. It parses the structure of the number, returns every matching format with the likely courier, and runs the appropriate check-digit algorithm (mod10, mod11, etc.) where one exists. Carrier detection and parsing endpoints are offline and stateless, while the /validate-dot endpoint makes a live query to the official U.S. Department of Transportation FMCSA open-data registry (`data.transportation.gov`) to confirm a DOT number and return the carrier record.

Use it to route incoming tracking numbers to the right carrier integration, validate numbers at checkout or on import, clean up mixed carrier lists in bulk, and onboard US trucking carriers. The /batch endpoint decodes up to 100 numbers in one call, /decode/full adds confidence scores and ready-to-use tracking URLs, and /validate-dot checks a US DOT number against the live FMCSA registry.

Honest limits: detection is pattern-based and returns the most probable carrier, not a guarantee. A number may match multiple formats; confidence scores in /decode/full help you pick the best one. The /validate-dot endpoint depends on the FMCSA registry being available and returns whatever record the registry publishes. Numbers are 1–60 characters; whitespace is ignored.

Endpoints

MethodPathWhat it does
GET/Service info: name, version, docs/health links, and the number of loaded formats.
GET/healthLiveness probe: reports loaded patterns, courier count, and data file path.
GET/couriersList the 18 supported couriers whose formats are recognised.
GET/detectDetect carrier and validate check digit for one tracking number. number is required (1–60 chars, whitespace ignored).
GET/decode/fullRicher decode: confidence score, tracking URL, check-digit verdict, and human-readable notes. number is required (1–60 chars, whitespace ignored).
POST/batchDecode up to 100 tracking numbers in one call. Body: {"numbers": ["...", "..."]}.
GET/validate-dotValidate a US DOT number against the live FMCSA registry. dot is required (1–8 digits; DOT/USDOT prefix and spaces tolerated). include_raw optional (default false).

Quick start

curl -X GET "https://tracking.p.rapidapi.com/couriers" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: tracking.p.rapidapi.com"

FAQ

Does this API track packages or show delivery status?

No. It detects the probable carrier and validates the check digit of a tracking number's structure only. For live scan events and delivery status, query the carrier's own tracking system.

Is the detection engine offline?

Yes, for /detect, /decode/full, /batch, /couriers, /health and /. These match against embedded pattern data and run check-digit arithmetic in memory — no external calls, no databases, no logs. The /validate-dot endpoint does query the live FMCSA registry.

How many numbers can I decode in one request?

Up to 100 tracking numbers per POST /batch call, each 1–60 characters. Whitespace is ignored. Numbers that match no format simply return an empty matches array.

What does /validate-dot return and is it reliable?

It returns the carrier record the FMCSA registry publishes for a US DOT number: legal/DBA name, address, phone, power units, drivers, MC/FFATA numbers, operating status, and safety rating. It depends on the FMCSA open-data registry being available and returns whatever record the registry has — if the DOT number is not found, `found` is false.

Try Tracking Number Parser Carrier Detector UPS FedEx free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs