# Quickstart

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

URL: https://docs.containerfeed.com

OpenContainer tracks shipping containers and bills of lading across 16 ocean lines with one REST call or one MCP tool call. Send a container number and get its status, every move with vessel and voyage, and the ETA, in the same JSON shape for every line.

## 1. Get an API key

Sign in at [app.containerfeed.com](https://app.containerfeed.com) and create a key under **API keys**. It looks like `lsk_live_…` and is shown once.

```bash
export OPENCONTAINER_API_KEY=lsk_live_…
```

The Free plan includes 5 containers a month. See [Plans](https://docs.containerfeed.com/plans).

## 2. Track a container

```bash tab="curl"
curl https://api.containerfeed.com/v1/track/ONEU1234566 \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"
```

```js tab="JavaScript"
const res = await fetch("https://api.containerfeed.com/v1/track/ONEU1234566", {
  headers: { Authorization: `Bearer ${process.env.OPENCONTAINER_API_KEY}` },
});
const container = await res.json();
```

```python tab="Python"
import os, requests

res = requests.get(
    "https://api.containerfeed.com/v1/track/ONEU1234566",
    headers={"Authorization": f"Bearer {os.environ['OPENCONTAINER_API_KEY']}"},
)
container = res.json()
```

The line is detected from the container's owner prefix (`ONEU` is ONE) after its ISO 6346 check digit passes, so no carrier field is needed. For a bill of lading or a leased container, name the line with `?carrier=`:

```bash
curl "https://api.containerfeed.com/v1/track/TGHU9123451?carrier=msc" \
  -H "Authorization: Bearer $OPENCONTAINER_API_KEY"
```

## 3. Read the response

A real lookup from November 2026, cut to its newest two moves:

```json
{
  "carrier": "one",
  "trackingNumber": "ONEU1234566",
  "status": "in_transit",
  "statusDescription": "Departure from Transshipment Port",
  "service": "40'DRY HC.",
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": { "city": "Guayaquil", "state": null, "country": "EC" },
  "estimatedDelivery": "2026-11-12T01:00:00",
  "estimatedDeliveryAt": "2026-11-12T06:00:00Z",
  "message": "Booking ASUG00526300",
  "events": [
    {
      "timestamp": "2026-10-25T09:20:00Z",
      "localTime": "2026-10-25T04:20:00",
      "status": "in_transit",
      "description": "Departure from Transshipment Port",
      "location": "Cartagena, CO",
      "code": "E073-01"
    },
    {
      "timestamp": "2026-10-25T04:27:00Z",
      "localTime": "2026-10-24T23:27:00",
      "status": "in_transit",
      "description": "Loaded on Vessel at Transshipment Port, Magellan Star 2643N",
      "location": "Cartagena, CO",
      "code": "E070-01"
    }
  ]
}
```

- `status` is one of `label_created` (empty released to the shipper), `in_transit`, `out_for_delivery` (full container out to the consignee), `delivered` (empty returned), `exception`, `returned` or `unknown`.
- `estimatedDelivery` is the ETA at the port of discharge in local time; `estimatedDeliveryAt` is the same moment in UTC when the line gives its zone.
- `events` are the container's moves, newest first.
- When the line reports them, each event also carries a normalized `milestone` (`gate_in`, `loaded`, `vessel_departed`, `discharged`, `gate_out`, `empty_returned` and more) with its `vessel`, `voyage` and UN/LOCODE `portCode`, and the result an `ocean` block with the bill of lading, POL and POD, vessel and IMO, ETD, ETA, ATA and last free day.

Every field is described in [Tracking](https://docs.containerfeed.com/tracking#the-response).

## Next

- Several containers in one call: [Tracking](https://docs.containerfeed.com/tracking#several-numbers), or a whole spreadsheet: [Bulk container tracking](https://docs.containerfeed.com/bulk-container-tracking-batch-api)
- Get told when a container moves instead of polling: [Watches and webhooks](https://docs.containerfeed.com/webhooks)
- Every line, its prefixes and SCAC: [Carriers](https://docs.containerfeed.com/carriers)
- Give an AI agent container tracking: [MCP](https://docs.containerfeed.com/mcp)
