Container tracking error decoder.
Look up why a container or bill of lading lookup failed: a bad ISO 6346 check digit, a leased owner prefix, a B/L the line doesn't know, a box that hasn't gated in, or the API's own 400, 401, 402, 404 and 429, with the request that works across 16 ocean lines.
The container number fails its ISO 6346 check digit
Why it fails: The 11th character of a container number is a check digit computed from the other ten. A mistyped digit, an O typed for a 0, an I for a 1, two swapped digits or a number read off a photo almost always breaks it. Carrier sites answer a wrong number with an empty page or a generic 'no results', which looks exactly like a container that hasn't moved yet.
How to fix it: The API verifies the check digit before it asks any carrier and answers 400 straight away, so a typo fails fast and never counts toward your monthly containers. Run the number through the container number validator to see the expected digit.
A request that works
curl "https://api.containerfeed.com/v1/track/MSKU7812341" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"A leased container doesn't name the line it sails with
Why it fails: Around half of all containers belong to lessors such as Textainer (TGHU, TEMU), Triton (TCNU, TRHU), CAI (CAIU), SeaCo (SEGU) and Beacon (BMOU), and sail for whichever line leased them. The owner prefix says who owns the box, not who is carrying it, so detection can't pick a line.
How to fix it: Pass ?carrier= with the line on the booking (msc, maersk, cmacgm …), or track the bill of lading, which names the line by its SCAC and returns every container on it.
A request that works
curl "https://api.containerfeed.com/v1/track/TGHU1234567?carrier=msc" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"?carrier= takes the line's code, not its SCAC or full name
Why it fails: ?carrier= expects one of the API's line codes (maersk, msc, cmacgm, cosco, hapaglloyd, one, evergreen …). A SCAC (HLCU, MAEU), a brand spelling the API doesn't recognise, or a line that isn't supported yet comes back 400 with the closest codes it knows.
How to fix it: Use the code from GET /v1/carriers, which lists every supported line with its SCAC and owner prefixes. The 400 message also suggests the nearest codes when you are close.
A request that works
curl "https://api.containerfeed.com/v1/track/HLXU8173257?carrier=hapaglloyd" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"The bill of lading isn't found on the line
Why it fails: Lines only know their own master bills of lading. A house B/L issued by a forwarder or NVOCC, a reference printed without the line's SCAC prefix, a booking the line hasn't confirmed yet, or a B/L sent to the wrong line all come back with no record.
How to fix it: Track the master B/L with the SCAC the line prints (MAEU, MEDU, CMDU, HLCU, ONEY, EGLV …) and ?carrier= when the prefix is missing, or track the container numbers on it directly.
A request that works
curl "https://api.containerfeed.com/v1/track/MAEU245678901?carrier=maersk" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"The container hasn't been released empty or gated in yet
Why it fails: Lines publish a container only once it has a move against a booking: the empty release to the shipper, then gate-in at the port of loading. Before that, the line's tracking shows nothing for the box, even though the booking exists.
How to fix it: Track the booking or B/L, which exists from booking confirmation, or set up a watch so a webhook fires on the first move (empty pickup or gate in) instead of polling a box that isn't there yet.
A request that works
curl "https://api.containerfeed.com/v1/track/CSNU8123465" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"Scraping line websites from Cloudflare Workers, Vercel or AWS Lambda gets blocked
Why it fails: Ocean lines' tracking pages sit behind bot protection (Akamai, Cloudflare, captchas) that turns away datacenter IPs, and their own APIs each need a separate developer account, credentials, rate limits and response format. 16 lines means 16 integrations to keep alive.
How to fix it: ContainerFeed handles each line's session and normalizes the answer into one set of milestones. A 502 carrier_error is retryable; a 503 carrier_unavailable means the line failed several lookups in a row and is paused for a few minutes, so retry later.
A request that works
curl "https://api.containerfeed.com/v1/track/MSKU7812341" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"The API's own auth, payment and quota responses
Why it fails: 401: the Authorization header is missing, malformed or carries a revoked key. 402: the request came without a key once the free lookup was used; the response carries an HTTP 402 payment challenge (Stripe MPP) that an agent can pay. 429: the account's allowance is used up, and the body names an upgrade_url.
How to fix it: Send Authorization: Bearer with a key from the dashboard, let a keyless agent pay the 402 challenge per request, or move up a plan. Every error is JSON: { error: { code, message } }.
A request that works
curl "https://api.containerfeed.com/v1/track/MEDU1234562" \
-H "Authorization: Bearer $OPENCONTAINER_API_KEY"Test a live container lookup right now
No carrier developer accounts, no per-line credentials and no register-then-wait queue: paste a container number or B/L and get milestones, vessel, voyage and ETA back.
Container tracking troubleshooting FAQ
- Why does my container number come back 400 unknown_carrier?
- Either its ISO 6346 check digit is wrong (a typo; the API checks it before asking any carrier) or its owner prefix isn't one of a supported line's own, usually because the box is leased from Textainer, Triton, CAI or SeaCo. Fix the typo, or pass ?carrier= with the line on the booking.
- Why can't the line find my bill of lading?
- Lines only know their own master bills of lading. A house B/L from a forwarder or NVOCC, a reference missing the line's SCAC prefix, or a B/L sent to the wrong line returns not_found. Track the master B/L with ?carrier=, or track the containers on it directly.
- Why does calling ocean line websites from Cloudflare Workers, Vercel or AWS Lambda fail?
- Line tracking pages sit behind bot protection that turns away datacenter IPs, and each line's own API needs its own developer account and credentials. ContainerFeed gives your function one REST endpoint, https://api.containerfeed.com/v1/track/:number, for all 16 lines, with one normalized response.