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

Carriers

Carriers

Carrier ids

GET /v1/carriers lists the carrier ids you can pass as carrier. No key needed.

curl https://api.containerfeed.com/v1/carriers
{
  "carriers": ["maersk", "msc", "cmacgm", "cosco", "hapaglloyd", "one", "evergreen", "hmm", "yangming", "zim", "oocl", "wanhai", "pil", "matson", "kmtc", "crowley"],
  "zipcode": []
}

zipcode lists carriers that need a postcode to show a shipment. No shipping line does, so it is empty.

Lines, prefixes and SCACs

A container number is detected from its owner prefix (the first four letters) once its ISO 6346 check digit passes. A bill of lading has no check digit and its prefix is not unique, so it always needs ?carrier=. Select a line for its request examples, milestones and notes.

Global container lines

LineidSCACOwner prefixes detectedBill of ladingExample container
MaerskmaerskMAEUMSKU MRKU MRSU MNBU SUDUMAEU + reference, ?carrier=maerskMSKU7812341
MSCmscMSCUMSCU MEDU MSDU MSMU MSNU MSBUMEDU + reference, ?carrier=mscMEDU1234562
CMA CGMcmacgmCMDUCMAU CGMU ECMU APHU APZUCMDU + reference, ?carrier=cmacgmCMAU4821035
COSCO ShippingcoscoCOSUCSNU CBHU CCLU CSLU FCIUCOSU + reference, ?carrier=coscoCSNU8123465
Hapag-LloydhapaglloydHLCUHLXU HLBU HAMU UACUHLCU + reference, ?carrier=hapaglloydHLXU8173257
ONE (Ocean Network Express)oneONEYONEU KKFUONEY + reference, ?carrier=oneONEU1234566
EvergreenevergreenEGLVEGHU EGSU EISU EITUEGLV + reference, ?carrier=evergreenEGHU9123457
HMMhmmHDMUHDMU HMMUHDMU + reference, ?carrier=hmmHDMU6310941
Yang MingyangmingYMLUYMMUYMLU + reference, ?carrier=yangmingYMMU6123458
ZIMzimZIMUZIMU ZCSUZIMU + reference, ?carrier=zimZIMU5528710
OOCLooclOOLUOOLU OOCUOOLU + reference, ?carrier=ooclOOLU9204635

Regional and niche lines

LineidSCACOwner prefixes detectedBill of ladingExample container
Wan Hai LineswanhaiWHLCWHLU WHSUWHLC + reference, ?carrier=wanhaiWHLU5712082
PIL (Pacific International Lines)pilPABVPCIUPABV + reference, ?carrier=pilPCIU8031522
MatsonmatsonMATSMATUMATS + reference, ?carrier=matsonMATU2647199
KMTCkmtcKMTCKMTUKMTC + reference, ?carrier=kmtcKMTU7381057
CrowleycrowleyCAMNCMCUCAMN + reference, ?carrier=crowleyCMCU5902317

Every example container has a valid ISO 6346 check digit. The check digit algorithm and a worked example are in Container number formats.

Numbers that need ?carrier=

Detection only names a line when the number's prefix belongs to it. Pass carrier for:

  • Bills of lading and booking numbers. Always. For example ?carrier=maersk with a MAEU… bill.
  • Leased containers. About half of all containers belong to leasing companies (Textainer TGHU, Triton TCNU and TRHU, CAI CAIU, SeaCo SEGU and others) and sail with any line. Pass the line the container is booked with.
  • Shipper-owned containers (SOC). The prefix belongs to the shipper or a forwarder, not the line.
  • A line's prefix that isn't listed above. Lines buy and lease boxes under more prefixes than they publish. If a container booked with a line isn't detected, name the line.

Without carrier, these answer 400 unknown_carrier and are not billed. With a carrier that isn't in the list, the answer is also 400 unknown_carrier, and the message suggests the closest ids.

On the batch route, carrier applies to every number in the request, so send leased containers for different lines in separate requests.

On this page