Full tracking data for a container number. Saves the shipment to your account (consumes a slot if new). A live carrier lookup may wait up to 60 seconds per attempt, so client timeouts must allow for a slow carrier response. With more shipments still tracking than your limit (after a downgrade), the newest up to it refresh; an older one you own answers 200 with its last stored tracking, stale: true and stale_reason: "PLAN_LIMIT", and no carrier is asked.
Request
GET https://traqocontainer.com/api/v1/container/{number}
Your API key as a Bearer token: Authorization: Bearer YOUR_API_KEY.
Rate limit.Each API key gets 120 requests per minute by default; your key's own budget comes back in the X-RateLimit-* headers.Limits by plan.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
number | path | string | Yes | Container number: 4 letters + 7 digits. |
sealine | query | string | No | RECOMMENDED, though no longer required. 4-character SCAC of the carrier. Naming it is the fastest and most certain route — a carrier you supply is tried ONCE, while one we resolve may cost up to three upstream attempts and can still be wrong. When OMITTED, the carrier is resolved from this reference’s own tracking history, the container operator in the lessor’s records, the issuing line of the bill, or prefix ownership — the same sources /carriers/lookup exposes. The carrier actually used is reported in |
Example request
curl "https://traqocontainer.com/api/v1/container/MRSU6859427?sealine=MAEU" \
-H "Authorization: Bearer YOUR_API_KEY"Run it in the sandbox — no key, no account: the same request answers at https://traqocontainer.com/api/v1/sandbox/container/{number} with a schema-identical reply.
Responses
Example 200 body:
{
"success": true,
"cached": false,
"carrier": {
"sealine": "MAEU",
"provided": false
},
"data": {
"reference_number": "MRSU6859427",
"shipment_type": "Container",
"sealine": "MAEU",
"sealine_name": "Maersk",
"status": "DELIVERED",
"origin": "Mundra, India",
"destination": "Rotterdam, Netherlands",
"number_of_containers": 1,
"eta": "2026-11-01 13:04:06",
"ata": "2026-11-01 13:04:06",
"total_days": 57,
"remaining_days": 0,
"is_active": false,
"is_delayed": false,
"closed_at": null,
"last_updated_at": "2026-10-31 21:04:06",
"latitude": "51.92",
"longitude": "4.48",
"containers_table": [
{
"idx": 1,
"container_number": "MRSU6859427",
"iso_code": "45G1",
"size_type": "40HC",
"container_description": "40ft High Cube General Purpose",
"status": "DELIVERED",
"equipment_source": "carrier",
"name": 1,
"parent": null,
"doctype": "Shipment Containers Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "containers_table",
"container": "MRSU6859427"
}
],
"container_summary": "1×40HC",
"locations_table": [
{
"id": 1,
"name": 1,
"state": null,
"country": "India",
"country_code": "IN",
"locode": "INMUN",
"lat": 22.839,
"lng": 69.727,
"timezone": "Asia/Kolkata",
"location_id": 1,
"location": "Mundra",
"latitude": "22.839",
"longitude": "69.727",
"idx": 1,
"parent": null,
"doctype": "Shipment Locations Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "locations_table"
},
{
"id": 2,
"name": 2,
"state": null,
"country": "China",
"country_code": "CN",
"locode": "CNSHA",
"lat": 31.23,
"lng": 121.47,
"timezone": "Asia/Shanghai",
"location_id": 2,
"location": "Shanghai",
"latitude": "31.23",
"longitude": "121.47",
"idx": 2,
"parent": null,
"doctype": "Shipment Locations Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "locations_table"
}
],
"voyage_plan_table": [
{
"port": "Mundra",
"locode": "INMUN",
"country": "India",
"vessel": "ONE APUS",
"voyage": null,
"atd": "2026-09-05 17:34:06",
"leg": "prepol",
"phase": "prepol",
"location_id": 1,
"date": "2026-09-05 17:34:06",
"is_actual": 1,
"idx": 1,
"name": 1,
"parent": null,
"doctype": "Shipment Voyage Plan Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "voyage_plan_table",
"predictive_eta": null
},
{
"port": "Mundra",
"locode": "INMUN",
"country": "India",
"vessel": "ONE APUS",
"voyage": null,
"atd": "2026-09-12 13:43:42",
"leg": "pol",
"phase": "pol",
"location_id": 1,
"date": "2026-09-12 13:43:42",
"is_actual": 1,
"idx": 2,
"name": 2,
"parent": null,
"doctype": "Shipment Voyage Plan Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "voyage_plan_table",
"predictive_eta": null
}
],
"route_json": "[[22.839,69.727],[31.23,121.47],[51.92,4.48]]",
"events_table": [
{
"idx": 1,
"location": "Mundra",
"country": "India",
"locode": "INMUN",
"description": "Gate in full",
"date": "2026-09-05 17:34:06",
"timestamp": "2026-09-05 17:34:06",
"type": "land",
"event_type": "EQUIPMENT",
"event_code": "GTIN",
"transport_type": "TRUCK",
"is_actual": 1,
"status": "CGI",
"status_description": "Container arrival at first POL (Gate in)",
"vessel": null,
"voyage": null,
"container_number": "MRSU6859427",
"event_id": 1,
"name": 1,
"doctype": "Container Events Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "events_table",
"location_id": 1,
"facility_id": 0,
"vessel_id": 0,
"shipment_id": null,
"parent": null,
"mode_type": "sea",
"state": null,
"latitude": "22.839",
"longitude": "69.727",
"event_uid": "622b94d61ab08215",
"timestamp_utc": "2026-09-05T12:04:06Z",
"timezone": "Asia/Kolkata"
},
{
"idx": 2,
"location": "Mundra",
"country": "India",
"locode": "INMUN",
"description": "Loaded on vessel",
"date": "2026-09-10 07:00:30",
"timestamp": "2026-09-10 07:00:30",
"type": "sea",
"event_type": "EQUIPMENT",
"event_code": "LOAD",
"transport_type": "VESSEL",
"is_actual": 1,
"status": "CLL",
"status_description": "Container loaded at first POL",
"vessel": "ONE APUS",
"voyage": "270E",
"container_number": "MRSU6859427",
"event_id": 2,
"name": 2,
"doctype": "Container Events Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "events_table",
"location_id": 1,
"facility_id": 0,
"vessel_id": 1,
"shipment_id": null,
"parent": null,
"mode_type": "sea",
"state": null,
"latitude": "22.839",
"longitude": "69.727",
"event_uid": "b69ebd7d464e0406",
"timestamp_utc": "2026-09-10T01:30:30Z",
"timezone": "Asia/Kolkata"
}
],
"vessels_table": [
{
"idx": 1,
"vessel_id": 1,
"vessel": "ONE APUS",
"imo": "9496631",
"mmsi": "466401445",
"is_current": 1,
"name": 1,
"parent": null,
"doctype": "Shipment Vessels Table",
"owner": null,
"creation": null,
"modified": null,
"modified_by": null,
"docstatus": 0,
"parenttype": "Shipments",
"parentfield": "vessels_table"
}
],
"failure_code": 0,
"eta_utc": "2026-11-01T12:04:06Z",
"eta_timezone": "Europe/Amsterdam",
"ata_utc": "2026-11-01T12:04:06Z",
"ata_timezone": "Europe/Amsterdam",
"pod_timezone": "Europe/Amsterdam",
"journey_stale": false,
"journey_ended_at": null
}
}| Status | Meaning |
|---|---|
200 | Tracking data |
202 | Accepted. The carrier is not answering and we hold nothing for this reference yet, so it has been recorded and we are retrying on our own schedule. No slot is consumed — the slot is charged when the document arrives. Poll |
400 | Bad request — check required parameters. |
401 | Invalid or missing API key. |
402 | Payment required — shipment limit reached or payment overdue. Branch on |
403 | Developer mode not enabled, or the feature is not on your plan. |
404 | No carrier we asked has a record of this reference. The body says what was actually asked and whether we are still working on it: When we answer from our last check rather than by calling the carrier again, the body also carries
You will NOT see this for a reference you already track. When a carrier has no record of a reference we hold a live document for, you get 200 with |
429 | Two different limits produce a 429 here and |
502 | We could not reach the carrier AND hold nothing for this reference — the last resort, not the usual answer. |
Error bodies and retry advice: Errors.