# TrackCourier.io API - Full Reference Track shipments from every courier listed below, on every account, with a single API. ## Authentication All endpoints require X-API-Key header: ``` X-API-Key: your_api_key_here ``` Get your API key: https://api.trackcourier.io/dashboard/keys ## Base URL https://api.trackcourier.io/v1 ## Pricing You pay once for each shipment: one parcel, followed until it is delivered. Webhooks and unlimited re-checks are included. A new account starts with 25 free shipments. Monthly plans. A plan's shipments are used first, and new ones arrive every month when it renews; unused ones don't carry over. - Starter: 150 shipments a month, ₹499 a month - Growth: 700 shipments a month (including 100 free), ₹1,999 a month - Business: 2,000 shipments a month (including 500 free), ₹4,999 a month Start a plan on the pricing page: https://api.trackcourier.io/pricing Top-ups (shipment packs). They last 2 years. - 100 shipments: ₹400 one time - 1,000 shipments (including 50 free): ₹3,800 one time - 2,500 shipments (including 250 free): ₹9,000 one time Buy them on the Top up page: https://api.trackcourier.io/dashboard/top-up ## Questions before you pay ### What counts as a shipment? One tracking number, from the first time you look it up until it is delivered. Every re-check and every webhook for it is included. A number the courier has no record of is not counted. ### Can I try it before I pay? Yes: a new account starts with 25 free shipments, and signing up needs no card. There is no separate sandbox, so you test with real tracking numbers. A test webhook lets you check your server with a sample delivery. ### Do webhooks cost extra? No. Every account gets webhooks, with no limit on how many shipments you follow. ### Which couriers can I track? Every courier we support, on every plan: Speed Post, Blue Dart, Delhivery, DTDC, Professional Courier, Shree Tirupati Courier and many more. Need one that is not on the list? Email api@trackcourier.io with a few of its recent tracking numbers. See the full list: https://api.trackcourier.io/docs#supported-couriers ### How fresh is an answer? We re-check a moving shipment with the courier about every hour, and every 30 minutes once it is out for delivery. Each lookup and each webhook gives you the newest copy we have. We do not guarantee a re-check interval. ### What happens when a courier's website is down? If we have a saved copy of the shipment, you get it. If not, the answer has no tracking history yet, and you can try again later. A lookup that gets no tracking history never uses up a shipment. We keep re-checking the shipments you have looked up for up to 30 days, so their webhooks carry on once the courier answers again. A shipment the courier has never answered for is re-checked for 3 days. ### How do I reach a person? Email api@trackcourier.io. A person reads every email. For a lookup that looks wrong, include the courier and the tracking number. --- ## Endpoints ### 1. Track Shipment GET /v1/track Query Parameters: - courier (required): the courier's slug or its name, from the list below; letter case and spaces do not matter - tracking_number (required): AWB or tracking number; India Post, Speed Post, Registered Post and India Post International: 2 letters, 9 digits, 2 letters, e.g. EE123456789IN (spaces and letter case do not matter) Response (200): ```json { "success": true, "data": { "MostRecentStatus": "Delivered", "ShipmentState": "delivered", "Checkpoints": [ { "Activity": "Delivered", "CheckpointState": "delivered", "CourierName": "DTDC", "Date": "18-Sep-2026", "Time": "17:08", "Location": "Delhi" }, { "Activity": "Out for Delivery - Shipment is out for Delivery 2026-09-18 14:09:12", "CheckpointState": "outfordelivery", "CourierName": "DTDC", "Date": "18-Sep-2026", "Time": "14:09", "Location": "Delhi" }, { "Activity": "Received at DELHI Delivery Centre", "CheckpointState": "intransit", "CourierName": "DTDC", "Date": "18-Sep-2026", "Time": "09:31", "Location": "Delhi" }, { "Activity": "On The Way - On its way between JAIPUR and DELHI", "CheckpointState": "intransit", "CourierName": "DTDC", "Date": "17-Sep-2026", "Time": "22:15", "Location": "Jaipur to Delhi" } ], "CourierHasNoRecordOfShipment": false, "isEmptyTable": false, "Result": "success", "AdditionalInfo": "", "FetchTime": "4.9084", "PODImageUrl": "", "ExecutionTime": "" }, "usage": { "used": 45, "quota": 700, "plan": "growth", "percent": 6.4 } } ``` Status Values: - inforeceived: Booked: the courier has the shipment's details - pending: Not moving yet, the courier has no events to show yet, or we could not get an answer from the courier this time - intransit: Moving through the courier's network - outfordelivery: With the delivery agent - attemptfail: A delivery attempt did not succeed, or the courier says it was not delivered - delivered: Delivered - exception: A problem the courier reports, or the courier has no record of this number - expired: The courier says the tracking has expired ### Proof of delivery Once your account has paid for shipments, every GET /v1/track answer also carries "proof_of_delivery", a list. Once a shipment is delivered it holds the courier's own proof-of-delivery file, for the couriers that provide one (Blue Dart, Professional Courier and Shree Maruti). We keep the file for 2 years from when we capture it, so it is still in your answer after the courier stops showing it; a file we captured before 1 December 2026 is kept 90 days. Until we have captured the file, and for every other courier, it is []. It is null when it could not be checked this time. Other accounts' answers have no such key. Each entry: {"file_url": "", "file_url_expires_at": "ISO8601", "captured_at": "ISO8601", "file_type": "image/jpeg|image/png|image/webp|application/pdf", "fingerprint_sha256": ""} Check a downloaded file at https://api.trackcourier.io/check-proof-of-delivery (the file never leaves your computer). ### 2. List Couriers GET /v1/couriers Response: ```json { "success": true, "data": { "couriers": [ {"slug": "delhivery", "name": "Delhivery"}, {"slug": "bluedart", "name": "Blue Dart"} ], "count": 42 } } ``` ### 3. Get Courier Details GET /v1/couriers/{slug} Response: ```json { "success": true, "data": { "slug": "delhivery", "name": "Delhivery" } } ``` --- ## Supported Couriers Every account can track every courier below. - bluedart: Blue Dart - delhivery: Delhivery - dtdc: DTDC - indiapost: India Post - speedpost: Speed Post - xpressbees: XpressBees - shadowfax: Shadowfax - ekart: Ekart Logistics - trackon: Trackon Courier - shreemaruti: Shree Maruti - professional: Professional Courier - gati: Gati - safexpress: Safexpress - canadapost: Canada Post - shreetirupati: Shree Tirupati Courier - shreeanjani: Shree Anjani Courier - stcourier: ST Courier - vrl: VRL Logistics - skyking: Skyking - shreemahavir: Shree Mahavir Courier - shreenandan: Shree Nandan Courier - shiprocket: Shiprocket - indiapostinternational: India Post International - tciexpress: TCI Express - omlogistics: Om Logistics - vtrans: V-Trans - rivigo: Rivigo - tcifreight: TCI Freight - arccarrier: ARC Carrier - madhur: Madhur Courier - registeredpost: Registered Post - vxpress: V-Xpress - nitco: NITCO Roadways - poslaju: Pos Laju - gmsworldwide: GMS Worldwide - markexpress: Mark Express - dpworld: DP World Express - movin: MOVIN Express - valmo: Valmo - rworldexpress: RWorld Express - xindus: Xindus - allcargo: Allcargo --- ## Error Responses All errors follow this format: ```json { "success": false, "error": { "code": "ERROR_CODE", "message": "Human readable message" } } ``` Error Codes: - INVALID_API_KEY (401): API key missing or invalid - NO_SHIPMENTS_LEFT (402): No shipments left. New shipments wait for a top-up; the ones you already have are still tracked - QUOTA_EXCEEDED (402): Older free accounts only: this month's free lookups are used up. Accounts that count shipments get NO_SHIPMENTS_LEFT instead - ACCOUNT_NEEDS_ATTENTION (402): The account needs attention. Email api@trackcourier.io - COURIER_NOT_FOUND (404): No courier has that slug or name; when we can tell which slug you meant, the error also carries did_you_mean - COURIER_NOT_SUPPORTED (400): Tracking for this courier is not available through the API; GET /v1/couriers lists every courier you can track - INVALID_TRACKING_NUMBER (400): The tracking number cannot be that courier's (India Post, Speed Post, Registered Post and India Post International: 2 letters, 9 digits, 2 letters, e.g. EE123456789IN). Nothing was looked up or counted - TRACKING_ERROR (4xx): We could not track this number; check the courier and the tracking number - TIMEOUT (504): The courier did not answer in time; retry in a minute - SERVICE_ERROR (5xx, or 404): A temporary error; retry in a minute --- Every example reads your API key from TRACKCOURIER_API_KEY, so set that to your key, from https://api.trackcourier.io/dashboard/keys. The cURL example does it for you: replace your_api_key in its export line. ## Example: cURL ```bash # Set your API key export TRACKCOURIER_API_KEY="your_api_key" # Track a shipment curl "https://api.trackcourier.io/v1/track?courier=dtdc&tracking_number=H1002578731" \ -H "X-API-Key: $TRACKCOURIER_API_KEY" ``` ## Example: Python ```python import os import requests response = requests.get( "https://api.trackcourier.io/v1/track", params={"courier": "dtdc", "tracking_number": "H1002578731"}, headers={"X-API-Key": os.environ["TRACKCOURIER_API_KEY"]} ) data = response.json() print(data["data"]["ShipmentState"]) # "intransit", "delivered", etc. ``` ## Example: JavaScript ```javascript async function main() { const response = await fetch( "https://api.trackcourier.io/v1/track?courier=dtdc&tracking_number=H1002578731", { headers: { "X-API-Key": process.env.TRACKCOURIER_API_KEY } } ); const data = await response.json(); console.log(data.data.ShipmentState); // "intransit", "delivered", etc. } main(); ``` ## Example: PHP ```php