# CMA CGM Cargo Tracking — Containers, B/L and ETA (`memo23/cma-cgm-cargo-tracking`) Actor

Track CMA CGM containers, bills of lading and booking references in bulk. Each result is one container: loading port, discharge port, transshipments, vessel, voyage, ETA, latest status and the full move history. Export as JSON, CSV or Excel. No carrier account or login is required.

- **URL**: https://apify.com/memo23/cma-cgm-cargo-tracking.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (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 $4.00 / 1,000 tracked numbers

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

## CMA CGM Cargo Tracking

Track CMA CGM containers, bills of lading and booking references in one run. Each dataset row is one container: where it loaded, where it discharges, the vessel and voyage, the ETA, and every move from empty pickup to the latest event.

Paste a list, start the run, and download JSON, CSV or Excel. No CMA CGM account.

![How CMA CGM cargo tracking turns a list of references into container rows](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-cma-cgm.png)

### Why use this scraper?

- One row per container, with the route filled in, instead of a flat list of events you have to reassemble
- Container numbers, bills of lading and booking references in the same list
- A bill of lading or booking returns every container on that reference
- Loading port, discharge port, transshipment ports, vessel, voyage and ETA on the row itself
- The full move history, oldest first, with estimated moves marked
- Numbers that match nothing are not billed
- Schedule it. The same list, checked every morning, is a working exception report

### Overview

This actor is for freight forwarders, importers, NVOCCs and anyone who already has CMA CGM references and wants them as rows. It covers the public tracking record: the commercial move history a visitor sees for a container, bill of lading or booking. It does not log in, so it does not include documents, invoices or inland moves that CMA CGM shows only to a booking party.

A reference with several containers produces several rows, one per container. A reference with no record produces none.

### Supported inputs

| Input | Example | Result |
|---|---|---|
| Container number | `MAGU5661754` | That container |
| Bill of lading | the B/L printed on the shipment | Every container on that bill |
| Booking reference | the booking number | Every container on that booking |

Spaces and dashes are ignored, so `MAGU 5661754` and `magu-5661754` are the same number.

Not accepted: vessel names, port schedules, and anything behind a CMA CGM login.

### Use cases

| Who | What they do with the rows |
|---|---|
| Freight forwarders | Refresh a customer portal from the latest status and ETA |
| Importers | See which boxes are still on the water and which are at the terminal |
| Operations | Catch a missed transshipment or a vessel change from the move list |
| Platforms | Store one snapshot per run and alert when `latestStatus` changes |

### How it works

1. Paste container numbers, bills of lading or booking references under **Tracking numbers**.
2. Start the run. Each number usually returns in a few seconds.
3. Open the dataset. One row per container.
4. Download JSON, CSV or Excel, or call the Apify API.
5. Numbers with no tracking record are listed in the run summary and are not billed.

### Input configuration

| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Tracking numbers | list of text | yes | `MAGU5661754` | Container, bill of lading or booking references, one per line |
| Include the full carrier record | yes/no | no | off | Adds the carrier's full record under `raw` |

On the free plan, only the first 10 numbers are tracked.

#### One container

```json
{
  "trackingNumbers": ["MAGU5661754"]
}
```

#### A list

```json
{
  "trackingNumbers": ["MAGU5661754", "CMAU1234567"]
}
```

### Output overview

Each row is one container. The top fields are the shipment as a whole: origin, destination, the two ocean ports, any transshipment ports, the vessel and voyage from the latest move that names one, and the ETA at the discharge port. `events` is the move list, oldest first. `isActual` is false on a move that has not happened yet. `delivered` is true when the latest actual move is the container reaching the consignee, or the empty box back in a depot.

A container that has been back in the depot for more than about 15 days no longer appears. That reference comes back as not found, not as an error.

### Output sample

Container `MAGU5661754`, looked up on 24 November 2026. The run returned 6 events. Two are included here.

```json
{
  "trackingNumber": "MAGU5661754",
  "numberType": "container",
  "containerNumber": "MAGU5661754",
  "containerType": "40HC (45 G1)",
  "origin": "QINGDAO (CN)",
  "destination": "JAKARTA (ID)",
  "portOfLoading": "QINGDAO (CN)",
  "portOfDischarge": "JAKARTA (ID)",
  "transshipments": [],
  "vessel": "CMA CGM FORT DIAMANT",
  "voyage": "KCS060S89",
  "eta": "2026-12-08T21:00:00",
  "latestStatus": "Container in transit for export",
  "latestLocation": "JIAOZHOU, 37",
  "latestDate": "2026-11-21T13:47:00",
  "delivered": null,
  "eventCount": 6,
  "events": [
    {
      "date": "2026-11-21T07:53:00",
      "location": "JIAOZHOU, 37",
      "locationCode": "CNJZH",
      "description": "Empty delivered to shipper",
      "facility": "JIAOZHOU",
      "vessel": null,
      "voyage": null,
      "isActual": true
    },
    {
      "date": "2026-12-08T21:00:00",
      "location": "JAKARTA",
      "locationCode": "IDJKT",
      "description": "Planned Vessel Arrival",
      "facility": "JICT-UTC 1",
      "vessel": "CMA CGM FORT DIAMANT",
      "voyage": "KCS070N89",
      "isActual": false
    }
  ]
}
```

### Key output fields

**The reference**

- `trackingNumber` is what you submitted. `numberType` says whether it matched a container, a bill of lading or a booking.
- `containerNumber`, `containerType`, `billOfLading`, `bookingNumber` come from the shipment. A bill of lading lookup fills `billOfLading` and still has one row per container.

**The route**

- `origin`, `destination`, `portOfLoading`, `portOfDischarge`, `transshipments`
- `vessel`, `voyage`, `eta`
- `latestStatus`, `latestLocation`, `latestDate`, `delivered`

**The moves**

- `events[]` with `date`, `location`, `locationCode`, `description`, `facility`, `vessel`, `voyage`, `isActual`
- `eventCount`, `trackingUrl`, `scrapedAt`
- `raw`, only when the full carrier record is turned on

### FAQ

**Does a bill of lading cost more than a container number?**
No. One charge covers every container on that reference. A bill of lading with four containers is four rows and a single charge. A number that matches nothing is not charged.

**Why was my container not found?**
The number may be wrong, it may belong to another line, or the empty box was returned more than about 15 days ago. Those show in the run summary under not found. A run where the carrier does not answer at all fails, so you can retry it.

**Can I track Maersk or MSC here?**
No. This actor is CMA CGM only. For several lines in one list, use [Container Tracking](https://apify.com/memo23/container-tracking-scraper).

**Do I need a CMA CGM API key or login?**
No.

**What is not included?**
No bills of lading PDF, no freight invoices, no release status, and no rail or barge moves that the carrier shows only to the booking party.

### Support

- Open an issue on the Issues tab of this actor
- Email: <muhamed.didovic@gmail.com>
- Website: <https://muhamed-didovic.github.io/>

### Additional services

- A private build that posts each status change to your own webhook or sheet: <muhamed.didovic@gmail.com>
- The same row shape for other ocean carriers, in one actor: [Container Tracking](https://apify.com/memo23/container-tracking-scraper)

### Explore more scrapers

- [Container Tracking](https://apify.com/memo23/container-tracking-scraper) for Maersk, CMA CGM, MSC, COSCO, ONE, HMM and Wan Hai in one list
- More actors: [memo23 on Apify](https://apify.com/memo23)

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/cma-cgm-cargo-tracking`).

**Purpose:** CMA CGM public tracking. One dataset row per container, with route, vessel, ETA and the move list.

**Minimal input:**

```json
{ "trackingNumbers": ["MAGU5661754"] }
```

**Output:** one row per container. Fields: `trackingNumber`, `numberType`, `containerNumber`, `containerType`, `billOfLading`, `bookingNumber`, `origin`, `destination`, `portOfLoading`, `portOfDischarge`, `transshipments[]`, `vessel`, `voyage`, `eta`, `latestStatus`, `latestLocation`, `latestDate`, `delivered`, `events[] {date, location, locationCode, description, facility, vessel, voyage, isActual}`, `eventCount`, `trackingUrl`, `scrapedAt`.

**Behaviors an agent should know:**

- Always pass `trackingNumbers`. There is no search by port or vessel name.
- A bill of lading or booking can return several rows and is still one charge.
- Free plan: first 10 numbers only. Missing numbers are not charged and are listed in the key-value record `SUMMARY`.
- Billed once per reference that returns a container, plus a small start fee. `delivered: null` means the latest move is not a delivery or an empty return.
- No login fields. Moves the carrier shows only to the booking party are absent. A container back in the depot for more than about 15 days is not found.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by CMA CGM S.A. or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

The scraper accesses only publicly available shipment tracking pages. No authenticated endpoints, paid features, or content behind the cma-cgm.com login wall. Users are responsible for ensuring their use complies with cma-cgm.com's Terms of Service, applicable data-protection law (GDPR, CCPA, etc.), and any contractual obligations of their own organization.

### SEO Keywords

CMA CGM container tracking, CMA CGM cargo tracking, CMA CGM bill of lading tracking, CMA CGM booking tracking, CMA CGM shipment status, CMA CGM ETA, CMA CGM vessel tracking, CMA CGM container number search, track CMA CGM container, CMA CGM tracking API, ocean freight tracking, container tracking data, bill of lading status, shipping container ETA, freight forwarder tracking, import container status, NVOCC shipment tracking, transshipment tracking, container move history, supply chain visibility, logistics tracking export, port of discharge ETA, container arrival date, CMA CGM ANL APL CNC tracking

# Actor input Schema

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

Container numbers (for example MAGU5661754), bills of lading or booking references, one per line. Spaces and dashes are ignored. A few seconds per number. On the free plan only the first 10 numbers are tracked. A container returned to the depot more than about 15 days ago no longer shows.

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

Adds the carrier's full tracking record under raw, for fields this actor does not map into columns.

## Actor input object example

```json
{
  "trackingNumbers": [
    "MAGU5661754"
  ],
  "includeRaw": false
}
```

# 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": [
        "MAGU5661754"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/cma-cgm-cargo-tracking").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": ["MAGU5661754"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/cma-cgm-cargo-tracking").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": [
    "MAGU5661754"
  ]
}' |
apify call memo23/cma-cgm-cargo-tracking --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/cma-cgm-cargo-tracking"
        }
    }
}
```

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/h7DADiGMEYwIflFf5/builds/cKm4LIQQBvAXt5apt/openapi.json
