Tracking Number Carrier Detection API

API ID 15297

Find the carrier of any tracking number (UPS, USPS, FedEx, DHL, Amazon, postal S10), check its check digit, and get the tracking link.

118 ms avg response

API Documentation

Endpoints

Request
One tracking number (spaces, dashes, dots and parentheses ignored; a USPS barcode string with its 420 + ZIP prefix is cut to the tracking number): normalized, confidence (exact: a format only this carrier uses and its check digit matches; likely: a carrier-specific format with no check digit, or a failed one, or a shared digit count whose check digit matches; ambiguous: a bare digit count several kinds of number share, or a tie; none), valid (the top candidate's check digit: true, false, or null when the format has none), carrier, and candidates sorted best first, each with carrier, carrier_name, format, confidence, valid_checksum, check_method, service and service_code (where the number encodes one: USPS service type code, UPS service code, UPU product type), parts, track_url (the carrier's public tracking page) and notes. No live tracking.
Endpoint ID: 40869
GET https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40869/detect+the+carrier+of+one+tracking+number
INPUT PARAMETERS

Detect the carrier of one tracking number — Endpoint Features

Object Description
number Required The tracking number as printed or typed (up to 64 characters).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

number
API EXAMPLE RESPONSE
JSON
{
    "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."
            ]
        }
    ]
}
Detect the carrier of one tracking number — CODE SNIPPETS

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' 


    
Request
Up to 10 tracking numbers separated by commas: each answer as /detect gives it (with its index) and a summary (how many exact, likely, ambiguous, none, with a failed check digit, and per carrier).
Endpoint ID: 40870
GET https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40870/detect+several+tracking+numbers+get+form
INPUT PARAMETERS

Detect several tracking numbers GET form — Endpoint Features

Object Description
numbers Required Tracking numbers separated by commas.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

numbers
API EXAMPLE RESPONSE
JSON
{
    "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": []
                }
            ]
        }
    ]
}
Detect several tracking numbers GET form — CODE SNIPPETS

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' 


    
Request
Each carrier's id, name, country, website, tracking-link template ({number} is replaced), its own formats and the UPU S10 country codes it issues.
Endpoint ID: 40871
GET https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40871/every+carrier+the+api+knows
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "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": []
        }
    ]
}
Every carrier the API knows — CODE SNIPPETS

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' 


    
Request
For each format: pattern, lengths, strength (strong: only this carrier uses it; weak: a bare digit count), check-digit method, what the number says about the service, and an example.
Endpoint ID: 40872
GET https://zylalabs.com/api/15297/tracking+number+carrier+detection+api/40872/the+number+formats+of+one+carrier+or+all
INPUT PARAMETERS

The number formats of one carrier or all — Endpoint Features

Object Description
carrier Optional A carrier id from /carriers (for example ups, usps, fedex, dhl-express, royal-mail).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

carrier
API EXAMPLE RESPONSE
JSON
{
    "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"
        }
    ]
}
The number formats of one carrier or all — CODE SNIPPETS

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' 


    

API Access Key & Authentication

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.

Headers
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.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Find the carrier of any tracking number (UPS, USPS, FedEx, DHL, Amazon, postal S10), check its check digit, and get the tracking link.

Tracking Number Carrier Detection API FAQs

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.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs