{
"input": "1Z999AA10123456784",
"normalized": "1Z999AA10123456784",
"length": 18,
"confidence": "exact",
"valid": true,
"carrier": "ups",
"candidates": [
{
"carrier": "ups",
"carrier_name": "UPS",
"format": "ups-1z",
"format_name": "UPS 1Z tracking number",
"confidence": "exact",
"valid_checksum": true,
"check_method": "UPS 1Z mod 10",
"service": "Next Day Air",
"service_code": "01",
"parts": {
"shipper": "999AA1",
"service_code": "01"
},
"track_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
"notes": [
"Service name from public descriptions of UPS service codes, not a UPS document.",
"1Z + 6-character shipper number + 2-character service code + 7-digit package number + check digit."
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40869/detect+the+carrier+of+one+tracking+number?number=1Z999AA10123456784' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 3,
"summary": {
"exact": 3,
"likely": 0,
"ambiguous": 0,
"none": 0,
"invalid_checksum": 0,
"by_carrier": {
"ups": 1,
"usps": 1,
"korea-post": 1
}
},
"results": [
{
"index": 0,
"input": "1Z999AA10123456784",
"normalized": "1Z999AA10123456784",
"length": 18,
"confidence": "exact",
"valid": true,
"carrier": "ups",
"candidates": [
{
"carrier": "ups",
"carrier_name": "UPS",
"format": "ups-1z",
"format_name": "UPS 1Z tracking number",
"confidence": "exact",
"valid_checksum": true,
"check_method": "UPS 1Z mod 10",
"service": "Next Day Air",
"service_code": "01",
"parts": {
"shipper": "999AA1",
"service_code": "01"
},
"track_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
"notes": [
"Service name from public descriptions of UPS service codes, not a UPS document.",
"1Z + 6-character shipper number + 2-character service code + 7-digit package number + check digit."
]
}
]
},
{
"index": 1,
"input": "9212391234567812345670",
"normalized": "9212391234567812345670",
"length": 22,
"confidence": "exact",
"valid": true,
"carrier": "usps",
"candidates": [
{
"carrier": "usps",
"carrier_name": "USPS",
"format": "usps-impb",
"format_name": "USPS Intelligent Mail package barcode (IMpb)",
"confidence": "exact",
"valid_checksum": true,
"check_method": "GS1 / USPS mod 10",
"service": "Priority Mail: Open and Distribute (PMOD)",
"service_code": "123",
"mail_class": "Priority Mail",
"parts": {
"channel": "92",
"service_type_code": "123"
},
"track_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9212391234567812345670",
"notes": [
"Channel 92 or 93 (commercial mailer), 94 (online postage, meters, USPS APIs) or 95 (USPS retail); 22 or 26 digits. Consolidators that hand parcels to USPS (FedEx Ground Economy, DHL eCommerce, UPS Ground Saver) print these too, and USPS tracking shows them."
]
}
]
},
{
"index": 2,
"input": "EE123456785KR",
"normalized": "EE123456785KR",
"length": 13,
"confidence": "exact",
"valid": true,
"carrier": "korea-post",
"candidates": [
{
"carrier": "korea-post",
"carrier_name": "Korea Post",
"format": "s10",
"format_name": "UPU S10 international postal item",
"confidence": "exact",
"valid_checksum": true,
"check_method": "UPU S10 weighted mod 11",
"service": "EMS (express mail service)",
"service_code": "EE",
"parts": {
"service_indicator": "EE",
"serial": "12345678",
"check_digit": "5",
"country": "KR"
},
"country": "KR",
"country_name": "South Korea",
"track_url": "https://service.epost.go.kr/trace.RetrieveEmsRigiTraceList.comm?POST_CODE=EE123456785KR",
"notes": []
}
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40870/detect+several+tracking+numbers+get+form?numbers=1Z999AA10123456784,9212391234567812345670,EE123456785KR' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 27,
"s10_fallback": "Any other UPU S10 number (2 letters, 9 digits, 2-letter country) is answered as \"the postal operator of <country>\".",
"carriers": [
{
"id": "ups",
"name": "UPS",
"country": "US",
"website": "https://www.ups.com",
"track_url_template": "https://www.ups.com/track?tracknum={number}",
"formats": [
"ups-1z"
],
"s10_countries": []
},
{
"id": "usps",
"name": "USPS",
"country": "US",
"website": "https://www.usps.com",
"track_url_template": "https://tools.usps.com/go/TrackConfirmAction?tLabels={number}",
"formats": [
"usps-impb"
],
"s10_countries": [
"US"
]
},
{
"id": "fedex",
"name": "FedEx",
"country": "US",
"website": "https://www.fedex.com",
"track_url_template": "https://www.fedex.com/fedextrack/?trknbr={number}",
"formats": [
"fedex-12",
"fedex-15",
"fedex-96",
"fedex-sscc"
],
"s10_countries": []
},
{
"id": "dhl-express",
"name": "DHL Express",
"country": "DE",
"website": "https://www.dhl.com",
"track_url_template": "https://www.dhl.com/global-en/home/tracking/tracking-express.html?submit=1&tracking-id={number}",
"formats": [
"dhl-10",
"dhl-jd"
],
"s10_countries": []
},
{
"id": "dhl-ecommerce",
"name": "DHL eCommerce",
"country": "US",
"website": "https://www.dhl.com/us-en/home/ecommerce.html",
"track_url_template": "https://webtrack.dhlecs.com/orders?trackingNumber={number}",
"formats": [
"dhl-ecom-gm"
],
"s10_countries": []
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40871/every+carrier+the+api+knows' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 2,
"carrier": "usps",
"formats": [
{
"carrier": "usps",
"carrier_name": "USPS",
"format": "usps-impb",
"name": "USPS Intelligent Mail package barcode (IMpb)",
"pattern": "^9[2-5][0-9]{20}$|^9[2-5][0-9]{24}$",
"lengths": [
22,
26
],
"strength": "strong",
"check_method": "GS1 / USPS mod 10",
"service": "USPS service type code (characters 3-5), 342 codes",
"example": "9212391234567812345670",
"note": "Channel 92 or 93 (commercial mailer), 94 (online postage, meters, USPS APIs) or 95 (USPS retail); 22 or 26 digits. Consolidators that hand parcels to USPS (FedEx Ground Economy, DHL eCommerce, UPS Ground Saver) print these too, and USPS tracking shows them."
},
{
"carrier": "usps",
"carrier_name": "USPS",
"format": "s10",
"name": "UPU S10 international postal item issued in US",
"country": "US",
"pattern": "^[A-Z]{2}[0-9]{9}US$",
"lengths": [
13
],
"strength": "strong",
"check_method": "UPU S10 weighted mod 11",
"service": "UPU product type from the 2-letter service indicator",
"example": "RR123456785US"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40872/the+number+formats+of+one+carrier+or+all?carrier=usps' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Tracking Number Carrier Detection API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Find the carrier of any tracking number (UPS, USPS, FedEx, DHL, Amazon, postal S10), check its check digit, and get the tracking link.
It returns the original `input` and a `normalized` value. Spaces, dashes, dots, and parentheses are removed. USPS barcode strings containing a `420` ZIP prefix are reduced to the underlying tracking number before detection.
`confidence` is `exact`, `likely`, `ambiguous`, or `none`. `exact` indicates a carrier-specific format with a matching check digit. `likely` indicates weaker or failed validation, while `ambiguous` indicates multiple plausible matches. `valid` reports the top candidate’s checksum result or `null` when unavailable.
Each candidate includes the carrier ID and name, format, confidence, checksum result, check method, optional service and service code, parsed `parts`, tracking URL, and notes. Candidates are ordered from the strongest match to the weakest.
No. It identifies likely carriers, validates supported check digits, extracts available service information, and creates a public carrier tracking URL. The returned `track_url` can be opened separately to check shipment status on the carrier’s website.
Submit up to 10 comma-separated numbers. The response contains `count`, an indexed `results` array, and a `summary`. The summary totals each confidence category, counts failed checksums, and groups detected results by carrier. Use each result’s `index` to preserve input order.
It returns carrier IDs, names, countries, websites, tracking URL templates, supported format identifiers, and UPU S10 country codes issued by each carrier. The `{number}` placeholder in a template indicates where a normalized tracking number is inserted.
The formats endpoint returns format definitions for one carrier or all carriers, including carrier, pattern, accepted lengths, strength, checksum method, service encoding, example number, and notes. These definitions can help validate inputs or explain why a candidate was selected.
Treat `none` as unsupported or unrecognized, and `ambiguous` as requiring user confirmation. A candidate with `valid: false` matched a known format but failed its checksum; do not assume it is deliverable. Use the candidate list and notes for diagnostics rather than relying only on the top carrier.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund