HMM 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 HMM lookup. The lookup is the plain-language page; the regexes stay here.
Track HMM (hmm) containers and bills of lading with one synchronous GET or MCP tool call. HMM containers across its Asia–Europe and transpacific loops, with vessel, voyage and port-of-discharge ETA. No HMM account, booking login or EDI feed is needed.
Quick facts
| Property | Value |
|---|---|
Carrier id (?carrier=) | hmm |
| SCAC | HDMU |
| Also known as | Hyundai Merchant Marine, HMM Co. |
| Category | Global container line |
| Owner prefixes detected | HDMU HMMU |
| Example container | HDMU6310941 |
| Bill of lading | HDMU + booking reference, tracked with ?carrier=hmm |
| Single lookup | GET https://api.containerfeed.com/v1/track/{number} |
| Batch | GET https://api.containerfeed.com/v1/track?numbers=a,b,c (up to 100 numbers, 35 per line) |
| MCP | track_package, track_packages, list_carriers at https://mcp.containerfeed.com/mcp |
Container numbers and detection
| Rule | Regex | Check digit | Example |
|---|---|---|---|
| HMM owner prefix | /^(HDMU|HMMU)\d{7}$/ | ISO 6346 | HDMU6310941 |
A container number (ISO 6346) is the owner's three-letter code, the equipment category U, six serial digits and a check digit. HMM's own prefixes detect to hmm 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 HMM, pass ?carrier=hmm. See Container number formats.
Track a container
curl "https://api.containerfeed.com/v1/track/HDMU6310941" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"Every line answers in the same shape. The outline below shows where HMM'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": "hmm",
"trackingNumber": "HDMU6310941",
"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": "HDMU",
"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=HDMU6310941,YMMU6123458" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"Track a bill of lading
HMM bills of lading are HDMU 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=hmm" \
-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 HMM'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.
| Move | milestone | status |
|---|---|---|
| Empty container released to the shipper | empty_pickup | label_created |
| Full container received at the origin terminal | gate_in | in_transit |
| Loaded on the vessel at the port of loading | loaded | in_transit |
| Vessel departed the port of loading | vessel_departed | in_transit |
| Arrived at or departed a transshipment port | transshipment_arrived / transshipment_departed | in_transit |
| Vessel arrived at the port of discharge | vessel_arrived | in_transit |
| Discharged from the vessel | discharged | in_transit |
| Customs or freight hold | customs_hold / freight_hold | exception |
| Available for pickup at the terminal | available_for_pickup | in_transit |
| Full container out to the consignee | gate_out | out_for_delivery |
| Empty container returned | empty_returned | delivered |
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
- Prefix and SCAC:
HDMUis both HMM's SCAC and one of its owner prefixes, soHDMU+ 7 digits is a container andHDMU+ a booking reference is a bill of lading. A container number passes the ISO 6346 check digit; a bill of lading needs?carrier=hmm.
Related
- Look up a container on the site: HMM container tracking
- Every line: Container tracking API and Carriers
- Prefixes and check digits: Container number formats
- Push updates: Watches and webhooks
Evergreen Container Tracking API & MCP
Track Evergreen containers (EGHU, EGSU, EISU, EITU) and bills of lading (EGLV) with one REST GET or MCP tool call. Normalized milestones, vessel and voyage, POL/POD and ETA, with no carrier account.
Yang Ming Container Tracking API & MCP
Track Yang Ming containers (YMMU) and bills of lading (YMLU) with one REST GET or MCP tool call. Normalized milestones, vessel and voyage, POL/POD and ETA, with no carrier account.