# Container Tracking Scraper: MSC, COSCO, ONE & Evergreen (`scrapewise/container-tracking-scraper`) Actor

Scrape container tracking from MSC, COSCO, ONE and Evergreen in one run: status, ETA, ports, vessel, voyage and event history for container, bill of lading or booking numbers. The carrier is detected from the prefix. Not-found numbers are free. Schedule it with onlyNew for change alerts.

- **URL**: https://apify.com/scrapewise/container-tracking-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 container checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Container Tracking Scraper: MSC, COSCO, ONE and Evergreen in one run

Track container shipments across **MSC, COSCO Shipping, ONE (Ocean Network Express) and Evergreen** with a single list of numbers. Paste container numbers, MSC or ONE bills of lading and ONE booking numbers in any mix: the carrier is detected from the prefix, and each number comes back as one clean, normalized row with the latest event, its date and place, the ETA, ports of loading and discharge, vessel and voyage, and the event history the carrier shows.

No account, login or carrier API key needed. It is used to:

- **watch every open shipment in one place**: schedule it every few hours with `onlyNew` and get the full record only when a container moves, changes vessel or gets a new ETA;
- feed TMS, ERP, spreadsheets and customer portals with live milestones from several ocean carriers in one format;
- check a backlog of containers after a port delay, a transshipment or a vessel change, without opening four carrier websites.

### At a glance

| What | Price |
|---|---|
| Number tracked (container, bill of lading or booking the carrier answered) | **US$ 1.80 per 1,000** (US$ 0.0018 each) |
| Run start | US$ 0.002 per run |

- 50 containers checked once a day for 30 days = 1,500 checks = **US$ 2.70** in checks plus the run starts.
- A number the carrier does not know, a wrong check digit, a carrier that is not covered, a refused lookup or a number the run did not reach is **never charged**; you get a row with `errorCode` that says why.
- With `onlyNew`, an unchanged shipment is still one check (the carrier was asked), but it comes back as a short `unchanged` row so your integration only reacts to real changes.
- `maxItems` caps the charged numbers per run, and a spending limit on the run stops it cleanly with everything delivered so far. Proxy traffic is included in the price.

### Quick start

```json
{
  "trackingNumbers": ["MSCU5123452", "ONEU4743546", "CSNU1608166", "EGHU9691056"]
}
```

A mixed list with a ONE bill of lading, a ONE booking and a leased container pinned to MSC:

```json
{
  "trackingNumbers": [
    "ONEYSZPGT9640300",
    "AMDG20176800",
    "MSC: TGHU1234567",
    "MSCU5451404"
  ],
  "maxItems": 0
}
```

Daily monitor: schedule the same input with `"onlyNew": true`. Containers with a new event, place, ETA or vessel come back as `type: tracking` rows with `changed: true`; the rest come back as `type: unchanged`.

### Supported carriers and numbers

| Carrier | Container numbers | Bill of lading | Booking | What the carrier shows |
|---|---|---|---|---|
| MSC | MSCU, MEDU, MSDU, MSMU, MSNU and other MSC prefixes | MEDU... / MSCU... | | Full journey with estimated and actual events, ports, transshipments, vessel, voyage, IMO, ETA |
| ONE | ONEU, NYKU, MOLU, KKFU, KKTU and other ONE prefixes | ONEY... | 12-character booking | Full journey with estimated and actual events, place of receipt, port of discharge, vessel, voyage, weight, current terminal, ETA |
| COSCO Shipping | CSNU, CBHU, CCLU, CSLU, CXDU and other COSCO prefixes | | | Latest event with place, time and transport mode, container type, ETA |
| Evergreen | EGHU, EGSU, EISU, EITU, EMCU, HMCU, IMTU and other Evergreen prefixes | | | Latest event with date, place, vessel and voyage, container type |

- **Leased containers** (TGHU, TCLU, FSCU, SEGU, TEMU and other lessor prefixes) are looked up at every supported carrier until one answers, and charged once. If you know the carrier, write it before the number (`ONE: TCLU1234567`) or set `carrier`.
- **Other carriers** (Maersk, CMA CGM, Hapag-Lloyd, ZIM, OOCL, Yang Ming, HMM, Wan Hai) are recognized by their prefix and come back as a free `UNSUPPORTED_CARRIER` row, so a mixed export from your TMS never fails.
- Each container number is checked against its ISO 6346 check digit first. A typo comes back as a free `INVALID_INPUT` row with the digit it should have, without asking any carrier.

### Input

| Field | What it does |
|---|---|
| `trackingNumbers` | One number per line: container numbers, MSC or ONE bills of lading, ONE bookings. Spaces and dashes are ignored. `CARRIER: NUMBER` pins a carrier on that line. Up to 1,000 per run. |
| `carrier` | `auto` (default) detects the carrier from the prefix. `MSC`, `COSCO`, `ONE` or `Evergreen` sends every number to that carrier. |
| `onlyNew` | For schedules: numbers with no new event, place, ETA or vessel since your previous run come back as a short `unchanged` row. |
| `maxItems` | Cap on numbers tracked (charged) in the run (default 50; 0 = no cap). Numbers that do not fit come back as free `NOT_REACHED` rows. |
| `proxyConfiguration` | Apify Proxy by default. |

`containerNumbers`, `containers`, `numbers`, `trackingNumber`, `billOfLadings`, `bookingNumbers`, `queries`, `shippingLine` and `maxResults` are accepted too, so inputs written for other tracking tools keep working.

### Output

**Shipment row** (`type: tracking`), one per number tracked:

| Field | What it is |
|---|---|
| `trackingNumber`, `numberType` | The number as tracked and whether it is a `container`, `bill_of_lading` or `booking` |
| `carrier`, `carrierScac` | MSC / MSCU, COSCO / COSU, ONE / ONEY, Evergreen / EGLV |
| `containerNumber`, `containerType` | The container and its size and type as the carrier writes it (40' HIGH CUBE, 40HQ, 40'DRY HC.) |
| `billOfLadingNumber`, `bookingNumber` | When the carrier shows them (ONE always; MSC for bill of lading lookups) |
| `status`, `statusDate`, `statusLocation` | The latest actual event, its date (local time at the place) and where it happened |
| `transportMode` | Truck, barge, rail or vessel for the latest event (COSCO and Evergreen) |
| `eta` | Arrival at the port of discharge: the carrier's estimate while sailing, the actual arrival afterwards (MSC, ONE, COSCO) |
| `delivered` | Whether the carrier marks the container as delivered (MSC) |
| `placeOfReceipt`, `originPort`, `destinationPort`, `finalDestination` | Where the shipment starts, is loaded, is discharged and ends (MSC and ONE) |
| `transshipmentPorts` | Transshipment ports listed by MSC |
| `vesselName`, `voyage`, `vesselImo` | Current or next vessel and voyage (MSC, ONE, Evergreen), IMO number (MSC) |
| `currentFacility`, `weight` | Terminal where the container is now and cargo weight (ONE) |
| `events` | Event history, latest first: `date`, `description`, `location`, `locationCode` (UN/LOCODE), `facility`, `vessel`, `voyage`, `transportMode` and `isActual` (false for planned milestones) |
| `eventCount` | Number of events in `events` |
| `containers` | For bills of lading and bookings, every container on it with its own latest status |
| `trackingUrl` | The carrier's own tracking page for the number |
| `eventKey`, `changed` | Fingerprint of the latest event, place, ETA and vessel; `changed` appears with `onlyNew` |
| `raw` | The carrier's own record for the number, for fields this table does not map |
| `input`, `scrapedAt` | The input line and the time of the check |

Example row (ONE container, trimmed):

```json
{
  "type": "tracking",
  "trackingNumber": "ONEU4743546",
  "numberType": "container",
  "carrier": "ONE",
  "carrierScac": "ONEY",
  "containerNumber": "ONEU4743546",
  "containerType": "40'DRY HC.",
  "bookingNumber": "SZPGT9640300",
  "billOfLadingNumber": "ONEYSZPGT9640300",
  "status": "Unloaded from Vessel at Transshipment Port",
  "statusDate": "2026-10-29T03:06",
  "statusLocation": "MANZANILLO, PANAMA",
  "eta": "2026-11-21T13:45",
  "placeOfReceipt": "NANSHA, GUANGDONG, CHINA",
  "originPort": "YANTIAN, GUANGDONG, CHINA",
  "destinationPort": "PORT OF SPAIN, TRINIDAD AND TOBAGO",
  "vesselName": "GREEN SEA",
  "voyage": "2645",
  "currentFacility": "SSA MARINE MIT",
  "weight": "20,090.000 KGS",
  "eventCount": 16,
  "events": [
    {"date": "2026-11-22T01:45", "description": "Empty Container Returned from Customer", "location": "PORT OF SPAIN, TRINIDAD AND TOBAGO", "locationCode": "TTPOS", "isActual": false},
    {"date": "2026-10-29T03:06", "description": "Unloaded from Vessel at Transshipment Port", "location": "MANZANILLO, PANAMA", "locationCode": "PAMIT", "facility": "SSA MARINE MIT", "vessel": "ONE SWAN", "voyage": "0037", "isActual": true}
  ],
  "trackingUrl": "https://ecomm.one-line.com/one-ecom/manage-shipment/cargo-tracking?trakNoParam=ONEU4743546&trakNoTpCdParam=C",
  "scrapedAt": "2026-11-08T10:55:35Z"
}
```

An MSC container on its way:

```json
{
  "type": "tracking",
  "trackingNumber": "MSCU5123452",
  "carrier": "MSC",
  "containerType": "40' HIGH CUBE",
  "status": "Export received at CY",
  "statusDate": "2026-10-27",
  "statusLocation": "GEMLIK, TR",
  "eta": "2026-11-15",
  "originPort": "GEMLIK, TR",
  "destinationPort": "ALEXANDRIA OLD PORT, EG",
  "vesselName": "MED CERKEZKOY",
  "voyage": "AD646A",
  "vesselImo": "9147215",
  "delivered": false,
  "eventCount": 4
}
```

With `onlyNew` and nothing new:

```json
{
  "type": "unchanged",
  "trackingNumber": "CSNU1608166",
  "carrier": "COSCO",
  "status": "Loaded at T/S POL",
  "statusDate": "2026-11-07T02:27",
  "eta": "2026-11-09T02:00",
  "lastChangeSeenAt": "2026-11-08T10:55:35Z",
  "changed": false,
  "message": "No new event or ETA change since the previous run"
}
```

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `NOT_FOUND` | The carrier has no shipment for this number. Carriers only show active or recently finished shipments |
| `UNSUPPORTED_CARRIER` | The prefix belongs to a carrier that is not covered yet, or the lookup type (bill of lading or booking) is not available for that carrier |
| `INVALID_INPUT` | Not a container, bill of lading or booking number, a wrong container check digit, or an unknown carrier name |
| `BLOCKED` | The carrier did not answer after several attempts; run it again in a few minutes |
| `NOT_REACHED` | `maxItems`, the run timeout or the spending limit arrived before this number |
| `UNEXPECTED` | Something else stopped the run; the message says what |

### Integrations, scheduling and AI agents

- **Schedule** the run every 2, 6 or 24 hours in [Apify schedules](https://docs.apify.com/platform/schedules) with `onlyNew` on.
- **Alert**: add a [webhook](https://docs.apify.com/platform/integrations/webhooks) on run success, or connect Slack, Gmail, Google Sheets, Make, n8n or Zapier through [Apify integrations](https://docs.apify.com/platform/integrations) and filter the dataset for `changed = true`.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2). The "Event history" dataset view gives one row per event for spreadsheets.
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, ChatGPT, Cursor or any MCP client, for example "where are these six containers and which ones will arrive late?".

### FAQ

**Do I need a carrier account or API key?** No. The Actor reads the same public tracking any visitor sees on the carrier's website, without login.

**How do I know which carrier a container belongs to?** You do not have to. The first four letters (owner code) say who owns the box; the Actor maps them to the carrier. Leased boxes are looked up at all four supported carriers.

**Why is a number `NOT_FOUND` when the container exists?** Carriers show a container only while it is on a booking with them, and for a short time after it is returned empty. A container on another carrier's booking, or one that has been idle for weeks, returns nothing.

**Why do COSCO and Evergreen rows have fewer fields?** Their public tracking by container number shows only the latest event. MSC and ONE show the full journey, so their rows carry ports, vessel and every milestone.

**Are dates in my time zone?** No: as the carrier publishes them, the local time at the place of the event. `isActual: false` marks planned milestones such as the estimated arrival.

**How does `onlyNew` work?** For each number the Actor keeps the fingerprint of the latest event, place, ETA and vessel delivered to you, in a key-value store in your account, and compares it on the next run.

**Is any personal data collected?** No. Shipper, consignee and notify parties are not part of the output; seal numbers are not returned.

**Something broke or a carrier is missing?** Open an issue on the Actor page; issues are answered within a day, and carrier requests decide what comes next.

### Limitations

- Four carriers in this version: MSC, COSCO Shipping, ONE and Evergreen. Bill of lading lookups work for MSC and ONE, booking lookups for ONE.
- A bill of lading or booking with many containers returns one row with the `containers` list and the event history of the first container; track the container numbers for full histories of each.
- Event wording, locations and container types are the carrier's own; they differ between carriers.
- Up to 1,000 numbers per run; split bigger lists across runs or schedules.

### Changelog

- **8 Nov 2026:** first version: MSC, COSCO, ONE and Evergreen in one run, carrier detection from the prefix, check digit validation, bills of lading (MSC, ONE) and bookings (ONE), event history, ETA, vessel and voyage, free error rows, `onlyNew` for schedules.

# Actor input Schema

## `trackingNumbers` (type: `array`):

One number per line: container numbers (MSCU5123452), MSC or ONE bills of lading (MEDU..., ONEY...) or ONE booking numbers. The carrier is detected from the prefix; leased containers (TGHU, TCLU, FSCU...) are looked up at every supported carrier. To pin a carrier on one line, write it before the number: ONE: TCLU1234567. Spaces and dashes are ignored. Up to 1,000 numbers per run.

## `carrier` (type: `string`):

Leave on Automatic for mixed lists. Pick a carrier to send every number to it, for example leased containers or booking numbers that you know belong to ONE.

## `onlyNew` (type: `boolean`):

For schedules: a number whose latest event, location, ETA and vessel are the same as in your previous run comes back as a short `unchanged` row instead of the full record. Each number tracked is still one check.

## `maxItems` (type: `integer`):

Cap on numbers tracked (charged) in this run; 0 = no cap. Numbers that do not fit come back as free NOT_REACHED rows.

## `proxyConfiguration` (type: `object`):

Apify Proxy is used by default and included in the price.

## Actor input object example

```json
{
  "trackingNumbers": [
    "MSCU5123452",
    "ONEU4743546",
    "CSNU1608166",
    "EGHU9691056"
  ],
  "carrier": "auto",
  "onlyNew": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "trackingNumbers": [
        "MSCU5123452",
        "ONEU4743546",
        "CSNU1608166",
        "EGHU9691056"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/container-tracking-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "trackingNumbers": [
        "MSCU5123452",
        "ONEU4743546",
        "CSNU1608166",
        "EGHU9691056",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/container-tracking-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "trackingNumbers": [
    "MSCU5123452",
    "ONEU4743546",
    "CSNU1608166",
    "EGHU9691056"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/container-tracking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/container-tracking-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wbHP2h8g3zYkHl6kL/builds/Mfr1TtfevHwzQcvgK/openapi.json
