# Carriers

> For the complete documentation index, see [llms.txt](https://docs.containerfeed.com/llms.txt).

URL: https://docs.containerfeed.com/carriers

## Carrier ids

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

```bash
curl https://api.containerfeed.com/v1/carriers
```

```json
{
  "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

| Line | `id` | SCAC | Owner prefixes detected | Bill of lading | Example container |
|---|---|---|---|---|---|
| [Maersk](https://docs.containerfeed.com/carriers/maersk) | `maersk` | `MAEU` | `MSKU` `MRKU` `MRSU` `MNBU` `SUDU` | `MAEU` + reference, `?carrier=maersk` | `MSKU7812341` |
| [MSC](https://docs.containerfeed.com/carriers/msc) | `msc` | `MSCU` | `MSCU` `MEDU` `MSDU` `MSMU` `MSNU` `MSBU` | `MEDU` + reference, `?carrier=msc` | `MEDU1234562` |
| [CMA CGM](https://docs.containerfeed.com/carriers/cmacgm) | `cmacgm` | `CMDU` | `CMAU` `CGMU` `ECMU` `APHU` `APZU` | `CMDU` + reference, `?carrier=cmacgm` | `CMAU4821035` |
| [COSCO Shipping](https://docs.containerfeed.com/carriers/cosco) | `cosco` | `COSU` | `CSNU` `CBHU` `CCLU` `CSLU` `FCIU` | `COSU` + reference, `?carrier=cosco` | `CSNU8123465` |
| [Hapag-Lloyd](https://docs.containerfeed.com/carriers/hapaglloyd) | `hapaglloyd` | `HLCU` | `HLXU` `HLBU` `HAMU` `UACU` | `HLCU` + reference, `?carrier=hapaglloyd` | `HLXU8173257` |
| [ONE (Ocean Network Express)](https://docs.containerfeed.com/carriers/one) | `one` | `ONEY` | `ONEU` `KKFU` | `ONEY` + reference, `?carrier=one` | `ONEU1234566` |
| [Evergreen](https://docs.containerfeed.com/carriers/evergreen) | `evergreen` | `EGLV` | `EGHU` `EGSU` `EISU` `EITU` | `EGLV` + reference, `?carrier=evergreen` | `EGHU9123457` |
| [HMM](https://docs.containerfeed.com/carriers/hmm) | `hmm` | `HDMU` | `HDMU` `HMMU` | `HDMU` + reference, `?carrier=hmm` | `HDMU6310941` |
| [Yang Ming](https://docs.containerfeed.com/carriers/yangming) | `yangming` | `YMLU` | `YMMU` | `YMLU` + reference, `?carrier=yangming` | `YMMU6123458` |
| [ZIM](https://docs.containerfeed.com/carriers/zim) | `zim` | `ZIMU` | `ZIMU` `ZCSU` | `ZIMU` + reference, `?carrier=zim` | `ZIMU5528710` |
| [OOCL](https://docs.containerfeed.com/carriers/oocl) | `oocl` | `OOLU` | `OOLU` `OOCU` | `OOLU` + reference, `?carrier=oocl` | `OOLU9204635` |

### Regional and niche lines

| Line | `id` | SCAC | Owner prefixes detected | Bill of lading | Example container |
|---|---|---|---|---|---|
| [Wan Hai Lines](https://docs.containerfeed.com/carriers/wanhai) | `wanhai` | `WHLC` | `WHLU` `WHSU` | `WHLC` + reference, `?carrier=wanhai` | `WHLU5712082` |
| [PIL (Pacific International Lines)](https://docs.containerfeed.com/carriers/pil) | `pil` | `PABV` | `PCIU` | `PABV` + reference, `?carrier=pil` | `PCIU8031522` |
| [Matson](https://docs.containerfeed.com/carriers/matson) | `matson` | `MATS` | `MATU` | `MATS` + reference, `?carrier=matson` | `MATU2647199` |
| [KMTC](https://docs.containerfeed.com/carriers/kmtc) | `kmtc` | `KMTC` | `KMTU` | `KMTC` + reference, `?carrier=kmtc` | `KMTU7381057` |
| [Crowley](https://docs.containerfeed.com/carriers/crowley) | `crowley` | `CAMN` | `CMCU` | `CAMN` + reference, `?carrier=crowley` | `CMCU5902317` |

Every example container has a valid ISO 6346 check digit. The check digit algorithm and a worked example are in [Container number formats](https://docs.containerfeed.com/formats#the-check-digit).

## 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.
