For AI agents: the documentation index is at llms.txt. Add .md to any page's URL for its Markdown.

Tracking

One number

curl https://api.containerfeed.com/v1/track/MSKU7812341 \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"

Returns a tracking result, or an error: 404 not_found when the line has no record of the number, 400 unknown_carrier when no line's prefix matches (or the check digit is wrong) and no carrier was given.

The lookup is synchronous: the answer comes back in the same request, usually within a few seconds. Results are cached for 5 minutes (a day once the empty container is returned), and x-cache says whether this one came from cache (HIT) or from the line (MISS). A not_found is cached for 5 minutes.

Several numbers

GET /v1/track?numbers=a,b,c takes up to 100 numbers, at most 35 for any one line. Containers from different lines can be mixed; duplicates are removed.

curl "https://api.containerfeed.com/v1/track?numbers=MSKU7812341,MEDU1234562,ONEU1234566" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"
{
  "results": [
    { "trackingNumber": "MSKU7812341", "result": { "carrier": "maersk", "status": "delivered", "events": [] } },
    { "trackingNumber": "MEDU1234562", "result": { "carrier": "msc", "status": "in_transit", "events": [] } },
    { "trackingNumber": "TGHU9123451", "error": { "code": "unknown_carrier", "message": "It is a shipping container number owned by a leasing company or a line we don't detect: pass ?carrier= with the shipping line …" } }
  ]
}
  • One entry per number, in the order sent, each with result (the same shape as a single lookup) or error. One bad number never fails the others.
  • The call returns 200 unless it is malformed (400), unauthorized (401) or has no room left on the Free plan (429).
  • The response comes back when every number has an answer. Each line's numbers are looked up together.
  • x-cache-hits is how many numbers came from cache.
  • On paid plans, x-opencontainer-numbers-used, x-opencontainer-numbers-included and x-opencontainer-overage give the period's count, and a notice appears near or past the included containers. See Plans.

For a spreadsheet of thousands, see Bulk container tracking.

Line detection

A container number (ISO 6346) is a three-letter owner code, the equipment category U, six serial digits and a check digit: MSKU 781234 1. The check digit is verified first, so a typo is turned away with unknown_carrier before any line is asked, and the owner prefix picks the line. MSKU7812341 goes to Maersk and MEDU1234562 to MSC with no carrier. Every line's prefixes are in Carriers.

One line per number. Detection picks exactly one line and never falls back to another. If that line has no record, the answer is not_found.

Pass carrier to choose the line yourself:

curl "https://api.containerfeed.com/v1/track/TGHU9123451?carrier=msc" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"

Use it for:

  • bills of lading and booking numbers, which have no owner prefix or check digit (see below);
  • leased containers (Textainer TGHU, Triton TCNU and TRHU, CAI CAIU, SeaCo SEGU and others), which sail with any line;
  • shipper-owned containers, whose prefix belongs to the shipper;
  • a line's container under a prefix that isn't detected.

On the batch route, carrier applies to every number. Carrier ids come from GET /v1/carriers.

Bills of lading

A bill of lading (B/L) is the line's B/L prefix, usually its SCAC, followed by its booking reference, for example MAEU… for Maersk or HLCU… for Hapag-Lloyd. Track it with the line named:

curl "https://api.containerfeed.com/v1/track/$BILL_OF_LADING?carrier=maersk" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"

The result has the same shape as a container's. When the line reports them, ocean.billOfLading is the bill and ocean.containers lists the containers on it; track or watch each one for its own moves. A bill of lading counts as one tracked number, like a container.

Statuses and milestones

Every result has a status, and so does each event. A container's trip maps onto it like this:

statusContainer trip
label_createdBooking made or the empty container released to the shipper
in_transitFull container received at the origin terminal, loaded, sailing, transshipped, discharged, waiting at the destination terminal
out_for_deliveryFull container out of the destination terminal to the consignee
deliveredEmpty container returned: the trip is over
exceptionA customs or freight hold, or another problem the line reports
returnedThe line reports the cargo going back to the shipper
unknownThe line gave no status that could be read

The lines don't report when the consignee unloads the cargo, so delivered means the empty box is back. Watch for out_for_delivery to know when the cargo left the port.

When the line's move is recognized, the event also has a normalized milestone:

milestoneMove
booking_confirmedBooking confirmed
empty_pickupEmpty container picked up by or released to the shipper
gate_inFull container gated in at the origin terminal
loadedLoaded on the vessel
vessel_departedVessel departed the port of loading
transshipment_arrivedArrived at a transshipment port
transshipment_departedDeparted a transshipment port
vessel_arrivedVessel arrived at the port of discharge
dischargedDischarged from the vessel
customs_holdHeld by customs
freight_holdHeld by the line (freight, documents or charges)
available_for_pickupReleased and available for pickup at the terminal
gate_outFull container gated out to the consignee
empty_returnedEmpty container returned
otherA move that fits none of the above

The response

Every line answers in this shape. The example shows every field a result can have; fields a line doesn't report are null or left out.

{
  "carrier": "msc",
  "trackingNumber": "MEDU1234562",
  "status": "in_transit",
  "statusDescription": "Full Transshipment Loaded, Msc Desiree UK642A",
  "service": "20' DRY VAN",
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": { "city": "Montreal", "state": null, "country": "CA" },
  "estimatedDelivery": "2026-11-21",
  "estimatedDeliveryAt": null,
  "message": "Bill of lading MEDUKU746112",
  "ocean": {
    "scac": "MSCU",
    "billOfLading": "MEDUKU746112",
    "bookingNumber": null,
    "containerSize": "20",
    "containerType": "Dry",
    "pol": { "name": "…", "unlocode": "…", "country": "…", "terminal": null },
    "pod": { "name": "Montreal", "unlocode": "CAMTR", "country": "CA", "terminal": null },
    "vessel": { "name": "MSC Desiree", "imo": "…", "voyage": "UK642A" },
    "etd": null,
    "atd": "…",
    "eta": "2026-11-21",
    "ata": null,
    "lastFreeDay": null
  },
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-11-06",
      "status": "in_transit",
      "milestone": "transshipment_departed",
      "description": "Full Transshipment Loaded, Msc Desiree UK642A",
      "location": "…",
      "portCode": "…",
      "vessel": "MSC Desiree",
      "voyage": "UK642A",
      "actual": true,
      "code": "Full Transshipment Loaded"
    }
  ]
}
Field
carrierCarrier id, e.g. msc.
trackingNumberThe container or bill of lading, upper-cased and trimmed.
statusSee Statuses and milestones.
statusDescriptionThe line's wording of the latest move.
serviceContainer size and type as the line writes it, e.g. 40' HQ. Can be null.
deliveredAtWhen the empty container was returned, in UTC, or null.
deliveredAtLocalThe same time as the line printed it, no zone.
signedByAlways null for containers.
destinationThe port of discharge or final destination as { city, state, country }, or null.
estimatedDeliveryETA at the port of discharge, local time with no zone (often a date only), or null.
estimatedDeliveryAtThe same moment in UTC, only when the line states its zone (ONE).
messageThe line's own note, e.g. the bill of lading or booking the container sails under.
oceanOcean detail when the line reports it (below).
eventsThe container's moves, newest first. Planned moves are never mixed in.

ocean fields, each present when the line reports it:

Field
scacThe line's Standard Carrier Alpha Code.
billOfLading, bookingNumberThe bill of lading and booking the container travels under.
containerSize, containerTypee.g. 20, 40, 45; Dry, High Cube, Reefer.
pol, podPort of loading and port of discharge: { name, unlocode, country, terminal }. unlocode is the UN/LOCODE, e.g. CNSHA, USLAX.
vessel{ name, imo, voyage } for the current or last leg.
etd, atdEstimated and actual departure from the port of loading.
eta, ataEstimated and actual arrival at the port of discharge.
lastFreeDayThe last free day at the terminal, as a date, when the line publishes it.
containersFor a bill of lading or booking: the containers on it.

Each event has status, description, location (or null), code (the line's own event code, or null), and when known milestone, portCode (UN/LOCODE), vessel, voyage and actual (true for a move that happened, false for a planned one). Two times:

  • timestamp: UTC, ISO 8601 with Z. It is null when the line gave no time of day or no zone to convert from, which is most lines.
  • localTime: the time as the line printed it, at the port's local time, no zone (2026-10-16T14:37:00). A date alone means no time of day was given. Never read a container's localTime as UTC.

ONE gives both, so both are exact. Maersk, COSCO and Yang Ming give local times without a zone; MSC and Evergreen give dates only. Each line's page under Carriers says what it reports.

On this page