# Container Tracking — MSC, COSCO & ONE in One Actor (`memo23/container-tracking-scraper`) Actor

Track shipping containers, bills of lading and bookings across MSC, COSCO and Ocean Network Express in one run. Mix carriers in one list; the carrier is detected from the number. Returns route, vessel, voyage, ETA, latest status and the full event history per container.

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

## Pricing

from $1.00 / 1,000 tracked containers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 — Maersk, CMA CGM, MSC, COSCO, ONE, HMM & Wan Hai

Track shipping containers, bills of lading and bookings across **Maersk**, **CMA CGM**, **MSC**, **COSCO Shipping**, **Ocean Network Express (ONE)**, **HMM** and **Wan Hai** in one run. Paste numbers from any of these carriers in one list; the carrier is picked from the number itself.

| Input you give it | Rows you get back |
|---|---|
| Container number (`MSKU7001426`, `MSDU6871555`) | One row for that container |
| Bill of lading | One row per container on the B/L |
| Booking number (`NB6BS4513400`) | One row per container on the booking |

### Why use this actor

- **Seven carriers, one list.** No separate actor per shipping line, no carrier field to fill in for each number.
- **Route and vessel in every row:** port of loading, port of discharge, vessel, voyage, ETA and, for MSC, the vessel's IMO number.
- **Full event history** per container, oldest first, with estimated moves flagged so you can tell planned from actual.
- **You only pay for results.** Each container row is one charge; Maersk rows carry a small surcharge because Maersk lookups take a browser. Numbers no carrier recognises are listed in the run's `SUMMARY` record and are not charged.

### Use cases

| Who | What they get |
|---|---|
| Freight forwarders | One status sheet for a mixed-carrier book of shipments |
| Importers & e-commerce | ETA and latest move for every inbound container, on a schedule |
| Logistics dashboards | Clean JSON rows to feed a TMS, sheet or BI tool |
| Customs brokers | Vessel, voyage and discharge port per container |

### Input

| Field | Type | Notes |
|---|---|---|
| `trackingNumbers` | string\[] | Container, B/L or booking numbers. Spaces and dashes are ignored. |
| `carrier` | enum | `auto` (default), `maersk`, `cma`, `msc`, `cosco`, `one`, `hmm`, `wanhai`. Set it for leased containers (TGHU, FSCU, TCNU…) whose prefix doesn't name a line. |
| `includeRaw` | boolean | Adds the carrier's full tracking data under `raw`. |
| `maxConcurrency` | integer | Numbers tracked in parallel (1–10, default 5). |
| `proxy` | object | Optional. Leave empty. |

```json
{
  "trackingNumbers": ["MSKU7001426", "MSDU6871555", "ONEU0024740", "CSNU1036292", "NB6BS4513400"]
}
```

### Output

One row per container. Sample (MSC, shortened):

```json
{
  "trackingNumber": "MSDU6871555",
  "carrier": "msc",
  "carrierName": "MSC",
  "numberType": "container",
  "containerNumber": "MSDU6871555",
  "containerType": "40' HIGH CUBE",
  "portOfLoading": "QINGDAO, CN",
  "portOfDischarge": "LOME, TG",
  "vessel": "MSC ROSA M",
  "voyage": "FY648R",
  "vesselImo": "9461398",
  "eta": "2026-11-25",
  "latestStatus": "Export Loaded on Vessel",
  "latestLocation": "QINGDAO, CN",
  "latestDate": "2026-09-26",
  "eventCount": 6,
  "events": [
    { "date": "2026-09-14", "location": "QINGDAO, CN", "description": "Empty to Shipper", "isActual": true },
    { "date": "2026-11-25", "location": "LOME, TG", "description": "Estimated Time of Arrival", "vessel": "MSC ROSA M", "isActual": false }
  ]
}
```

#### Key fields

- **Identity:** `trackingNumber`, `carrier`, `numberType`, `containerNumber`, `containerType`, `billOfLading`, `bookingNumber`
- **Route:** `origin`, `destination`, `portOfLoading`, `portOfDischarge`, `transshipments`
- **Voyage:** `vessel`, `voyage`, `vesselImo`, `eta`
- **Status:** `latestStatus`, `latestLocation`, `latestDate`, `delivered`
- **History:** `events[]` with `date`, `location`, `locationCode`, `description`, `facility`, `vessel`, `voyage`, `isActual`

### FAQ

**Which carriers are covered?** Maersk (including Sealand and Hamburg Süd boxes), CMA CGM, MSC, COSCO Shipping, Ocean Network Express (ONE), HMM and Wan Hai. More lines are being added.

**Why are Maersk, CMA CGM, HMM and Wan Hai slower?** The first number at each of them takes 30 to 60 seconds, every further one a few seconds (about ten for Wan Hai, which returns the full movement history per container). Other carriers answer in about a second each, and they run in parallel with Maersk.

**Why did a number come back "not found"?** The carrier has no live record for it. MSC, for example, stops showing containers that are off service, and Wan Hai keeps tracking data for about 90 days. The run's `SUMMARY` record lists every number that returned nothing.

**What does `isActual: false` mean?** A planned move, such as an estimated arrival.

**Can I schedule it?** Yes. Save your list as a task and schedule it on Apify to get a fresh status sheet every day.

### Support

Open an issue on the actor's Issues tab for bugs or carrier requests.

### ⚠️ Disclaimer

This actor reads publicly available shipment tracking information published by A.P. Møller - Mærsk A/S, CMA CGM S.A., MSC Mediterranean Shipping Company S.A., COSCO SHIPPING Lines Co., Ltd., Ocean Network Express Pte. Ltd., HMM Co., Ltd. and Wan Hai Lines Ltd. It is not affiliated with or endorsed by any of them, and all trademarks belong to their owners. Use it in line with each carrier's terms and applicable law. Tracking data is returned as the carriers publish it; confirm critical dates with the carrier.

### SEO Keywords

container tracking, container tracking api, maersk container tracking, maersk tracking scraper, cma cgm container tracking, cma cgm tracking scraper, hmm container tracking, hyundai merchant marine tracking, wan hai container tracking, wan hai lines tracking, msc container tracking, msc tracking scraper, cosco container tracking, cosco shipping tracking, one container tracking, ocean network express tracking, bill of lading tracking, booking number tracking, shipment tracking api, ocean freight tracking, vessel eta tracking, multi carrier container tracking, freight forwarder tracking tool, shipping line tracking, container status api, container event history

# Actor input Schema

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

Container numbers (e.g. <code>MSKU7001426</code>), bills of lading or booking numbers. Mix carriers freely; spaces and dashes are ignored. Maersk lookups take about 30 seconds for the first number, then a few seconds each.

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

Leave on Auto-detect unless every number belongs to one carrier, or a leased container (TGHU, FSCU, TCNU…) should be checked at a specific line.

## `includeRaw` (type: `boolean`):

Adds the carrier's untouched tracking data under <code>raw</code>, for fields this actor does not map.

## `maxConcurrency` (type: `integer`):

How many numbers to track at the same time.

## `proxy` (type: `object`):

Leave empty. The actor uses its own residential proxy at no extra cost. Set this only to use your own proxies.

## Actor input object example

```json
{
  "trackingNumbers": [
    "MSKU7001426",
    "MSDU6871555",
    "ONEU0024740",
    "CSNU1036292"
  ],
  "carrier": "auto",
  "includeRaw": false,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "MSKU7001426",
        "MSDU6871555",
        "ONEU0024740",
        "CSNU1036292"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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": [
        "MSKU7001426",
        "MSDU6871555",
        "ONEU0024740",
        "CSNU1036292",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/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": [
    "MSKU7001426",
    "MSDU6871555",
    "ONEU0024740",
    "CSNU1036292"
  ]
}' |
apify call memo23/container-tracking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/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/NAOIgQXjjNtytYfrm/builds/YaGisjPBpdhWFZBsG/openapi.json
