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

Carriers

CMA CGM Container Tracking API & MCP

This is the API reference: how a number is detected, the request, and the JSON fields. Track a number on the CMA CGM lookup. The lookup is the plain-language page; the regexes stay here.

Track CMA CGM (cmacgm) containers and bills of lading with one synchronous GET or MCP tool call. CMA CGM, APL and ANL containers: empty release to empty return, with every vessel leg and the ETA at the port of discharge. No CMA CGM account, booking login or EDI feed is needed.

Quick facts

PropertyValue
Carrier id (?carrier=)cmacgm
SCACCMDU
Also known asCMA CGM Group, APL, ANL, CNC Line
CategoryGlobal container line
Owner prefixes detectedCMAU CGMU ECMU APHU APZU
Example containerCMAU4821035
Bill of ladingCMDU + booking reference, tracked with ?carrier=cmacgm
Single lookupGET https://api.containerfeed.com/v1/track/{number}
BatchGET https://api.containerfeed.com/v1/track?numbers=a,b,c (up to 100 numbers, 35 per line)
MCPtrack_package, track_packages, list_carriers at https://mcp.containerfeed.com/mcp

Container numbers and detection

RuleRegexCheck digitExample
CMA CGM owner prefix/^(CMAU|CGMU|ECMU|APHU|APZU)\d{7}$/ISO 6346CMAU4821035

A container number (ISO 6346) is the owner's three-letter code, the equipment category U, six serial digits and a check digit. CMA CGM's own prefixes detect to cmacgm with no ?carrier=. The check digit is verified first, so a mistyped number is refused with 400 unknown_carrier before any line is asked, and is not billed.

A leased container (Textainer TGHU, Triton TCNU and TRHU, CAI CAIU, SeaCo SEGU and others) can sail with any line, so its prefix says nothing about the line. For one booked with CMA CGM, pass ?carrier=cmacgm. See Container number formats.

Track a container

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

Every line answers in the same shape. The outline below shows where CMA CGM's data lands; ocean and each event's milestone, vessel and voyage are filled when the line reports them. A full field list is in Tracking.

{
  "carrier": "cmacgm",
  "trackingNumber": "CMAU4821035",
  "status": "in_transit",
  "statusDescription": "…",
  "service": "…",
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": {
    "city": "…",
    "state": null,
    "country": "…"
  },
  "estimatedDelivery": "…",
  "events": [
    {
      "timestamp": null,
      "localTime": "…",
      "status": "in_transit",
      "milestone": "loaded",
      "description": "…",
      "location": "…",
      "vessel": "…",
      "voyage": "…",
      "code": "…"
    }
  ],
  "ocean": {
    "scac": "CMDU",
    "billOfLading": "…",
    "containerSize": "…",
    "containerType": "…",
    "pol": {
      "name": "…",
      "unlocode": "…"
    },
    "pod": {
      "name": "…",
      "unlocode": "…"
    },
    "vessel": {
      "name": "…",
      "imo": "…",
      "voyage": "…"
    },
    "etd": "…",
    "eta": "…"
  }
}

Several containers at once, mixed across lines:

curl "https://api.containerfeed.com/v1/track?numbers=CMAU4821035,CSNU8123465" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"

Track a bill of lading

CMA CGM bills of lading are CMDU followed by the booking reference. A bill has no owner prefix or check digit to detect, so name the line:

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

When the line reports them, ocean.billOfLading echoes the bill and ocean.containers lists the containers on it. Track or watch each container for its own moves. A bill of lading counts as one tracked number, like a container.

Milestones

Each event keeps CMA CGM's own wording in description and its event code in code, and is mapped to a normalized status and, where the move is recognized, a milestone.

Movemilestonestatus
Empty container released to the shipperempty_pickuplabel_created
Full container received at the origin terminalgate_inin_transit
Loaded on the vessel at the port of loadingloadedin_transit
Vessel departed the port of loadingvessel_departedin_transit
Arrived at or departed a transshipment porttransshipment_arrived / transshipment_departedin_transit
Vessel arrived at the port of dischargevessel_arrivedin_transit
Discharged from the vesseldischargedin_transit
Customs or freight holdcustoms_hold / freight_holdexception
Available for pickup at the terminalavailable_for_pickupin_transit
Full container out to the consigneegate_outout_for_delivery
Empty container returnedempty_returneddelivered

The lines don't report when the consignee unloads the cargo, so delivered means the empty container is back and the trip is over. Watch for out_for_delivery (the full gate-out) to know when the cargo left the terminal. All statuses and milestones are in Tracking.

Notes

  • Group brands: APL (APHU, APZU) and ANL containers belong to the CMA CGM group and detect to cmacgm.
  • Bill of lading: CMA CGM bills start with its SCAC CMDU.

On this page