# MSC Cargo Tracking — Containers, Bills of Lading & Bookings (`memo23/msc-cargo-tracking`) Actor

Track MSC containers, bills of lading and bookings in one list. Every recognised number returns the route, vessel, voyage, ETA, terminals and full movement history, one row per container. One charge covers every container on that number. Schedule it or export JSON or CSV.

- **URL**: https://apify.com/memo23/msc-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

## MSC Cargo Tracking

**MSC containers, bills of lading and bookings, one row per container.** Paste a container number, a bill of lading or a booking and each container comes back with its route, vessel, voyage, ETA, terminal and the full movement history. One charge covers every container on that number. Numbers MSC does not recognise are not charged.

### How it works

![How MSC Cargo Tracking works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-msc.png)

### Why use this actor

- **Any MSC number in one list.** Container, bill of lading and booking numbers can be mixed. The kind of number is detected, and a bill or booking returns every container on it.
- **One charge per number.** A bill of lading with eight containers is eight rows and a single charge. A number MSC has no record for is listed in the run summary and is not charged.
- **Route and vessel on every row.** Origin, destination, port of loading, port of discharge, vessel name, voyage, IMO number and flag.
- **The whole movement, oldest first.** Each event has the date, place, UN/LOCODE, terminal, vessel and voyage. Estimated moves are flagged, so a planned arrival is not stored as something that already happened.
- **Port calls when MSC publishes them.** The estimated-arrival move can include the calls in between, with arrival and departure times. Once the container is discharged, MSC often drops that schedule and the list is empty.
- **Ready for a daily check.** Save the input as a task and schedule it. Each run is a fresh status sheet.

### Overview

This actor tracks shipments on MSC (Mediterranean Shipping Company). You give it the numbers you already have from a booking confirmation or a carrier site, and it returns one dataset row per container. A container number returns that box. A bill of lading or a booking returns every container MSC lists on it, each as its own row, all covered by the one charge for that number.

It is built for freight forwarders keeping a status sheet, importers watching an inbound box, and anyone feeding a spreadsheet or a dashboard. The row is flat on purpose: ports, vessel and the latest move are columns, and the history sits in `events`.

### Supported inputs

| Input | What you enter | What comes back |
|---|---|---|
| **Container number** | An MSC box, for example `MSDU6871555` | That container |
| **Bill of lading** | The B/L number, for example `MEDUADV84846` | One row per container on the bill |
| **Booking number** | The booking reference | One row per container on the booking |

Spaces, dashes and dots in a number are ignored. Mix all three kinds in one list.

**Not supported:**

- Other carriers. Maersk, CMA CGM, COSCO, ONE, HMM and Wan Hai are on [Container Tracking](https://apify.com/memo23/container-tracking-scraper), which accepts a mixed list.
- Numbers MSC has already dropped. A box that is off the tracking page comes back as not found, and it is not charged.

### Use cases

| Who | What they get |
|---|---|
| Freight forwarders | A status sheet for a book of MSC shipments |
| Importers | ETA and the latest move for every inbound container |
| Dashboards | Flat rows for a sheet, a TMS or a BI tool |
| Customs brokers | Vessel, voyage, IMO and the discharge port |

### How it works

1. Paste container, bill of lading or booking numbers.
2. Each number is looked up. A bill or a booking expands to its containers.
3. You get one row per container: route, vessel, ETA, terminal and the movement history.
4. Numbers with no record, and lookups that fail, are listed in the run's `SUMMARY` and are not charged.
5. Schedule the same input to refresh the sheet every day.

### Input configuration

| Field | Type | Default | What it does |
|---|---|---|---|
| `trackingNumbers` | string\[] | — | Container, bill of lading or booking numbers. Required. Example: `MSDU6871555`. |
| `maxItems` | integer | every number you pasted | How many numbers to track. Each recognised number is one charge. |
| `includeRaw` | boolean | `false` | Adds MSC's full tracking record under `raw`. |
| `maxConcurrency` | integer | `5` | How many numbers to track at once. From 1 to 10. |
| `proxy` | object | empty | Leave empty. The default works out of the box. Set this only to use proxies you pay for yourself. |

One container:

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

A bill of lading, capped at one number:

```json
{ "trackingNumbers": ["MEDUADV84846"], "maxItems": 1 }
```

A daily list:

```json
{
  "trackingNumbers": ["MSDU6871555", "MEDUADV84846"],
  "maxItems": 50
}
```

Free-plan runs track at most 10 numbers. On a paid plan the run stops when it reaches the maximum cost you set, and rows past that limit are not saved.

### Output overview

One dataset row per container. The number you submitted is `trackingNumber`. `numberType` says whether that number was a container, a bill of lading or a booking. Route fields are the ports MSC names. `latestStatus` is the newest move that has actually happened, not a planned one. `events` is the history, oldest first, and `isActual` is false on an estimate. `portCalls` lists intermediate calls when MSC still publishes them on an estimated arrival. `priceCalculationDate` is the date MSC prints for price calculation. It is indicative. Confirm it with MSC before you rely on it.

### Output sample

Container `MSDU6871555`, collected 24 November 2026. The history is shortened. The live row had six events.

```json
{
  "trackingNumber": "MSDU6871555",
  "carrier": "msc",
  "carrierName": "MSC",
  "numberType": "container",
  "containerNumber": "MSDU6871555",
  "containerType": "40' HIGH CUBE",
  "billOfLading": "MEDUADV84846",
  "bookingNumber": null,
  "origin": "QINGDAO, CN",
  "destination": "LOME, TG",
  "portOfLoading": "QINGDAO, CN",
  "portOfDischarge": "LOME, TG",
  "transshipments": [],
  "vessel": "MSC ROSA M",
  "voyage": "FY640A",
  "vesselImo": "9461398",
  "vesselFlag": "PANAMA",
  "eta": null,
  "priceCalculationDate": "2026-09-24",
  "latestStatus": "Import Discharged from Vessel",
  "latestLocation": "LOME, TG",
  "latestDate": "2026-11-20",
  "delivered": false,
  "portCalls": [],
  "eventCount": 6,
  "events": [
    {
      "date": "2026-09-14",
      "location": "QINGDAO, CN",
      "locationCode": "CNTAO",
      "description": "Empty to Shipper",
      "facility": "QINGDAO GANGLIANJIE INTERNATIONAL LOGISTICS CO.LTD",
      "isActual": true
    },
    {
      "date": "2026-11-20",
      "location": "LOME, TG",
      "locationCode": "TGLFW",
      "description": "Import Discharged from Vessel",
      "facility": "LCT - LOME CONTAINER TERMINAL",
      "vessel": "MSC ROSA M",
      "voyage": "FY640A",
      "isActual": true
    }
  ],
  "trackingUrl": "https://www.msc.com/en/track-a-shipment?trackingNumber=MSDU6871555"
}
```

`eta` is null on this row because the container had already been discharged. While it is still on the water, `eta` is the estimated arrival at the discharge port.

### Key output fields

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

### FAQ

**Does a bill of lading cost more than a container?** No. You are charged once for the number, whether it resolves to one container or many.

**What if MSC has no record?** The number is listed under `notFound` in the run's `SUMMARY` record and is not charged. The run fails only when every number is missing or every lookup fails, so a scheduled run does not report success on an empty sheet.

**What does `isActual: false` mean?** A planned move, such as an estimated arrival. `latestStatus` ignores those and shows the newest move that has happened.

**Why is `portCalls` empty?** MSC attaches the intermediate schedule to the estimated arrival. After the container is discharged that schedule is often gone. `events` still has the load and discharge.

**Why is `delivered` false after discharge?** MSC's own flag. Discharge at the port is not the same as the empty box being returned. Read `latestStatus` for the last move.

**Can I track Maersk or COSCO here?** No. Use [Container Tracking](https://apify.com/memo23/container-tracking-scraper) for a mixed list across Maersk, CMA CGM, MSC, COSCO, ONE, HMM and Wan Hai.

**Can I schedule it?** Yes. Save the input as a task and put it on a schedule.

### Support

- Issues: the Issues tab on this actor
- Website: [muhamed-didovic.github.io](https://muhamed-didovic.github.io/)
- Email: <muhamed.didovic@gmail.com>

### Additional services

Need a field this actor does not map, a private feed into your sheet, or the same tracking for another shipping line? Email <muhamed.didovic@gmail.com>.

### Explore more scrapers

- [**Container Tracking**](https://apify.com/memo23/container-tracking-scraper) — Maersk, CMA CGM, MSC, COSCO, ONE, HMM and Wan Hai in one list
- [**More actors**](https://apify.com/memo23) — the rest of the catalogue

### 🤖 For AI Agents & LLM Apps

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

**Purpose:** MSC shipment tracking. One dataset row per container, one charge per number that returns data.

**Minimal input:**

```json
{ "trackingNumbers": ["MSDU6871555"], "maxItems": 1 }
```

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

**Behaviors an agent should know:**

- Always set `maxItems`. Free plans are capped at 10 numbers.
- A bill of lading or booking expands to one row per container and is still one charge.
- Numbers with no MSC record are not charged. They are listed in the `SUMMARY` key-value record under `notFound`.
- The run fails when nothing was tracked, so an empty result is not reported as success.
- Other carriers are not accepted here.

### ⚠️ Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by MSC Mediterranean Shipping Company S.A. or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

It reads only shipment tracking information MSC publishes for anyone to look up. It does not log in, and it does not bypass any access control. You are responsible for using it in line with MSC's terms, applicable data-protection law (GDPR, CCPA and others), and your own contracts. Tracking dates are returned as MSC publishes them. Confirm anything time-critical with MSC.

### SEO Keywords

msc cargo tracking, msc container tracking, msc tracking scraper, msc bill of lading tracking, msc booking tracking, msc shipment tracking, msc vessel tracking, msc eta tracking, mediterranean shipping company tracking, msc container status, msc movement history, ocean freight tracking, container tracking api, bill of lading tracker, booking number tracking, shipping line tracking, freight forwarder tracking, import container tracking, vessel voyage tracking, port of discharge tracking, msc terminal tracking, container event history

# Actor input Schema

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

MSC container numbers (for example MSDU6871555), bill of lading numbers or booking numbers, one per line. Spaces and dashes are ignored.

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

How many numbers to track in this run. Leave empty to track every number you pasted. Each number MSC recognises is one charge, and every container on that number is included.

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

Adds MSC's full tracking record under raw, for fields that are not mapped into their own columns.

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

How many numbers to track at the same time. Default 5, maximum 10.

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

Leave empty. The default works out of the box. Set this only to use proxies you pay for yourself.

## Actor input object example

```json
{
  "trackingNumbers": [
    "MSDU6871555"
  ],
  "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": [
        "MSDU6871555"
    ]
};

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

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

```

## MCP server setup

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