# CMA CGM Cargo Tracking Scraper (`muhammetakkurtt/cma-cgm-cargo-tracking-scraper`) Actor

Bulk CMA CGM container tracking and shipment tracking API. Enter container numbers or bill of lading references and get the complete tracking timeline — transport events, vessels, voyages, ports, facilities, and actual or estimated dates — as structured JSON, CSV, Excel, or XML. No coding required.

- **URL**: https://apify.com/muhammetakkurtt/cma-cgm-cargo-tracking-scraper.md
- **Developed by:** [Muhammet Akkurt](https://apify.com/muhammetakkurtt) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $5.00 / 1,000 tracking results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![CMA CGM Container Tracking and Shipment Data Scraper](https://i.postimg.cc/RVfg9R5L/cma-cgm-banner.png)

## CMA CGM Cargo Tracking Scraper

### What does CMA CGM Cargo Tracking Scraper do?

**CMA CGM Cargo Tracking Scraper** is a bulk container tracking and shipment tracking API for CMA CGM cargo. Enter container numbers or bill of lading references and receive the complete CMA CGM tracking timeline as structured data, including shipment events, vessels, voyages, ports, facilities, and actual or estimated dates.

Use it to automate CMA CGM container tracking, monitor international shipments, build logistics dashboards, or connect carrier status data to your supply chain workflow. No coding is required: paste your references, click **Start**, and download the results as JSON, CSV, Excel, XML, or another dataset format.

The Actor checks CMA CGM shipment references in parallel and saves one dataset item for every reference that returns tracking data. It supports common logistics workflows such as:

- 📦 **CMA CGM container tracking** for individual containers or bulk reference lists
- 📄 **Bill of lading tracking** without manually checking each shipment
- 🚢 **Vessel and voyage monitoring** from the carrier event timeline
- 🌍 **Port and facility tracking** across origin, transshipment, and destination locations
- 🕒 **Actual and estimated event dates** for operational monitoring
- 🔌 **CMA CGM tracking API integration** through the Apify API
- ⏰ **Scheduled shipment checks** for recurring status updates

The scraper retries temporary failures and can rotate proxy IPs when the upstream tracking service limits or blocks a request.

### Why scrape CMA CGM shipment data?

Checking containers one by one is slow when you manage many bookings, customers, or trade lanes. Structured CMA CGM cargo tracking data can help freight forwarders, importers, exporters, logistics platforms, and analysts:

- Keep transport management systems and customer portals current
- Detect newly reported shipment milestones
- Compare estimated and actual event times
- Monitor multiple CMA CGM containers in a single run
- Feed carrier events into dashboards, alerts, and exception workflows
- Export historical tracking snapshots for analysis and reporting

### What data can you extract from CMA CGM?

Each result contains the submitted tracking number and the event objects returned by the CMA CGM tracking service.

| Data field | Description |
|---|---|
| `tracking_number` | Container or B/L reference submitted in the input |
| `eventType` | Event category, such as transport or equipment activity |
| `transportEventTypeCode` | Carrier transport-event code when available |
| `eventClassifierCode` | Indicates whether the event is actual, estimated, or planned |
| `eventDateTime` | Date and time reported for the event |
| `eventCreatedDateTime` | Time the carrier created the event record |
| `transportCall` | Vessel, voyage, location, facility, and transport-call details |
| `carrierSpecificData` | CMA CGM-specific labels, phases, and internal location information |
| `references` | References associated with the event |

Available fields can vary by shipment and event type. The Actor preserves the carrier response so downstream systems can use all available details.

### Ready-to-Run Examples

Get started in seconds — open the example in the Apify Console and click **Run**:

- **[Track CMA CGM Containers by Container Number](https://apify.com/muhammetakkurtt/cma-cgm-cargo-tracking-scraper/examples/track-cma-cgm-containers-by-container-number)** — enter a container number and get its full event timeline with vessels, ports, locations, and actual or estimated dates.

### How to track CMA CGM shipments step by step

1. Open the Actor in Apify Console.
2. Add container or bill of lading references under **Tracking Numbers**, one per line.
3. Click **Start**.
4. Review the event timeline in the **Output** tab.
5. Download the dataset or retrieve it through the Apify API.

#### Example input

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

#### CMA CGM tracking input parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `trackingNumbers` | Array of strings | Yes | CMA CGM container or bill of lading references; enter one per line |

### CMA CGM Cargo Tracking Scraper output example

One successful tracking reference produces one dataset item:

```json
{
  "tracking_number": "MAGU5661754",
  "events": [
    {
      "eventType": "TRANSPORT",
      "eventClassifierCode": "ACT",
      "eventDateTime": "2026-07-01T06:18:55Z",
      "transportEventTypeCode": "ARRI",
      "transportCall": {
        "UNLocationCode": "TRMER",
        "modeOfTransport": "VESSEL"
      }
    }
  ]
}
```

The example is shortened. Actual results can contain additional references, vessel data, voyage numbers, facilities, locations, and carrier-specific fields. References with no tracking data are skipped and do not create a `tracking-result` charge event.

### Integrations and CMA CGM tracking API

The Actor runs on the [Apify platform](https://apify.com/), so CMA CGM tracking can be integrated into existing logistics systems without maintaining scraper infrastructure.

- **API access** — call the Actor from Python, JavaScript, cURL, or any HTTP client
- **Schedules** — run tracking checks hourly, daily, or at another interval
- **Webhooks** — notify a system when a run succeeds or fails
- **Integrations** — send results to Google Sheets, Slack, Zapier, Make, or other services
- **Dataset exports** — download JSON, CSV, Excel, XML, HTML, or RSS

### Frequently asked questions

#### Is it legal to scrape CMA CGM?

The Actor retrieves shipment tracking information using references supplied by the user. Only track shipments you are authorized to access, and ensure your use complies with applicable laws and carrier terms. This Actor is independent and is not affiliated with or endorsed by CMA CGM.

#### Can I track multiple shipments at once?

Yes. Add multiple references to `trackingNumbers`; the Actor processes them in parallel batches.

#### What types of tracking numbers are supported?

The Actor accepts CMA CGM container numbers and bill of lading references. Enter each reference as a separate item.

#### What if a tracking number is not found?

The Actor logs a warning and skips that reference. It does not save an empty dataset item or create a result charge.

#### How do I get support or report issues?

Use the **Issues** tab on the Actor page and include the run ID, the type of reference used, and the relevant non-sensitive log lines. Do not post API tokens or confidential shipment information.

# Actor input Schema

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

The numbers to track — one per line. Container numbers and B/L numbers are both accepted.

## Actor input object example

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

# Actor output Schema

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

Collected CMA CGM shipment tracking data, one item per tracking number

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammetakkurtt/cma-cgm-cargo-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammetakkurtt/cma-cgm-cargo-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/DX3F3lBsqkgJfemx4/builds/qHOybZaXodPjG2QBD/openapi.json
