# Maersk Container Tracking — B/L, Status & ETA (`muhammadafzal/maersk-container-tracking-scraper`) Actor

Track Maersk containers, bills of lading and bookings in bulk. Get status, latest event, vessel, planned events and arrival date (ETA) as JSON.

- **URL**: https://apify.com/muhammadafzal/maersk-container-tracking-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (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 $6.40 / 1,000 maersk shipment trackeds

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

## Maersk Container Tracking — B/L, Status & ETA

Maersk Container Tracking looks up Maersk container numbers, bill of lading (B/L) numbers and booking numbers in bulk and returns each shipment's route, current status, latest event, vessel and voyage, planned next events and arrival date (ETA) as JSON, CSV or Excel. It costs **USD 8 per 1,000 shipments found** plus a USD 0.005 start fee per run, and numbers Maersk shows no results for are free.

It is built for importers, exporters, freight forwarders, customs brokers and logistics teams who ship with Maersk and need the status of many containers in a spreadsheet, a database or an AI agent instead of checking maersk.com one number at a time.

### What does Maersk container tracking return?

Each Maersk number with results becomes one record. A bill of lading with several containers is one record with every container listed.

| Field | What it means |
|---|---|
| `trackingNumber`, `numberType` | The number you entered, and whether it is a `container`, a `bill_of_lading` (B/L or booking, 9 characters) or a 7-digit `reference` number |
| `shipmentStatus` | The latest actual event, as Maersk names it: `Gate in`, `Load`, `Vessel departure`, `Discharge`, `Gate out for delivery`, `Empty container return` and so on |
| `latestEvent` | That event's location, terminal, local time, vessel and voyage, and which container it belongs to |
| `nextEvent` | The next planned event (for example the next vessel departure or arrival) with Maersk's estimated local time; `null` when nothing is planned |
| `origin`, `destination` | Start and end city, country and two-letter country code |
| `departureDate`, `departureTerminal` | When and where the cargo departs (date in `YYYY-MM-DD`) |
| `arrivalDate`, `arrivalTerminal` | Arrival date at the port of discharge, Maersk's ETA until the vessel arrives, and the terminal |
| `containerCount`, `containers` | Number of containers, and for each one: container number, size and type (`40' Dry High`), departure and arrival, last update, next expected update, latest event, planned events, and how many earlier events Maersk has completed |
| `trackingUrl`, `checkedAt` | The public maersk.com tracking page and when this run read it (UTC) |

All event times are local times at the event's location, exactly as Maersk prints them. Maersk's tracking page lists the latest event and the remaining planned events; earlier completed events are counted in `completedEventsCount` but are not listed one by one.

### How do I track Maersk containers in bulk?

Paste your numbers into **Container, B/L or booking numbers**, one per row, and start the run. Container numbers have 4 letters and 7 digits (`MSKU0078257`); Maersk bill of lading and booking numbers have 9 characters (`258765432`). Maersk tracking links work too. A list pasted into one row with commas or line breaks is split for you, spaces and dashes inside a number are removed, and duplicates are dropped.

Input example:

```json
{
    "trackingNumbers": ["MSKU0078257", "258765432"]
}
```

One run takes up to 100 numbers (20 on the free Apify plan). A number with results usually takes 15 to 30 seconds, and about a minute longer when Maersk's page has to be checked again. Two numbers are tracked at a time, so 100 numbers finish in roughly 15 to 30 minutes. A number without results takes about 3 minutes to confirm, because it is checked three times (see the FAQ).

Every run also writes an `OUTPUT` record with the outcome (`data`, `partial`, `empty`, `blocked`, `failed` or `rejected`), the numbers without Maersk results, numbers that could not be rechecked before the run ended, cancelled shipments, numbers that could not be read, and the page count.

### What does the output look like?

An in-transit container, with two of its four planned events:

```json
{
    "trackingNumber": "MSKU0078257",
    "numberType": "container",
    "shipmentStatus": "Gate in",
    "latestEvent": {
        "name": "Gate in", "vessel": null, "voyage": null,
        "location": "HAIPHONG - LACH HUYEN", "terminal": "HATECO HAIPHONG INTL CNTR TML",
        "dateTime": "2026-11-05T02:53", "isPlanned": false, "containerNumber": "MSKU0078257"
    },
    "nextEvent": {
        "name": "Vessel departure", "vessel": "GSL KALLIOPI", "voyage": "645E",
        "location": "HAIPHONG - LACH HUYEN", "terminal": "HATECO HAIPHONG INTL CNTR TML",
        "dateTime": "2026-11-10T00:00", "isPlanned": true, "containerNumber": "MSKU0078257"
    },
    "origin": { "city": "HAIPHONG - LACH HUYEN", "country": "VIETNAM", "countryCode": "VN" },
    "destination": { "city": "BRASELTON", "country": "UNITED STATES", "countryCode": "US" },
    "departureDate": "2026-11-10",
    "departureTerminal": "HATECO HAIPHONG INTL CNTR TML",
    "arrivalDate": "2026-12-17",
    "arrivalTerminal": "SAVANNAH GARDEN CITY TERMINAL L738",
    "containerCount": 1,
    "containers": [
        {
            "containerNumber": "MSKU0078257",
            "containerType": "40' Dry High",
            "lastUpdated": "18 hours ago",
            "nextUpdateExpected": "10 Nov",
            "completedEventsCount": 1,
            "plannedEvents": [
                { "name": "Vessel departure", "vessel": "GSL KALLIOPI", "voyage": "645E", "location": "HAIPHONG - LACH HUYEN", "terminal": "HATECO HAIPHONG INTL CNTR TML", "dateTime": "2026-11-10T00:00", "isPlanned": true },
                { "name": "Vessel arrival", "vessel": "GSL KALLIOPI", "voyage": "645E", "location": "SAVANNAH", "terminal": "SAVANNAH GARDEN CITY TERMINAL L738", "dateTime": "2026-12-17T06:00", "isPlanned": true }
            ]
        }
    ],
    "trackingUrl": "https://www.maersk.com/tracking/MSKU0078257",
    "checkedAt": "2026-11-05T12:00:00.000Z"
}
```

Each container entry also carries `departure`, `arrival` and `latestEvent` objects; they are left out above to keep the example short.

### How much does Maersk tracking cost?

You pay per Maersk shipment saved to the dataset, plus a small start fee. Numbers Maersk shows no results for, cancelled shipments, invalid entries and duplicates are never charged. Platform usage is included in the price.

| Apify plan tier | Per shipment found | Per 1,000 shipments | Start fee per run |
|---|---|---|---|
| Free | USD 0.008 | USD 8.00 | USD 0.005 |
| Bronze (2.5% off) | USD 0.0078 | USD 7.80 | USD 0.005 |
| Silver (5% off) | USD 0.0076 | USD 7.60 | USD 0.005 |
| Gold, Platinum, Diamond (20% off) | USD 0.0064 | USD 6.40 | USD 0.005 |

The start fee is charged once per started GB of allocated memory; the default 256 MB run pays it once. Worked totals on the Free tier: 1 shipment costs USD 0.013, and 100 shipments cost USD 0.805. Set a maximum cost on the run and the Actor stops saving records when it is reached. Free Apify plans track up to 20 numbers per run.

### Which Maersk numbers work?

Ocean shipments carried by Maersk work with a container number (Maersk prefixes such as MAEU, MSKU, MRKU, MRSU and MNBU) or a 9-character bill of lading or booking number. A bill of lading can list containers with other prefixes, and each of them is returned. Maersk's tracking page also accepts 7-digit numbers, and they are looked up the same way. A container number returns that container's most recent Maersk shipment. Maersk air, LCL and parcel numbers are not supported. A new booking appears only after Maersk registers it, and shipments Maersk lists as cancelled are reported in `OUTPUT` without a record.

### When should I use it, and when not?

Use it when your cargo moves with Maersk and you want container status, vessel, ETA and next planned move in a spreadsheet, a database, a scheduled report or an AI agent. Schedule it on Apify to refresh open containers once or twice a day; Maersk updates most containers a few times per voyage.

Do not use it for other ocean carriers, or for parcels and courier shipments. For those:

- Parcels with many carriers: [17TRACK Package Tracking Scraper](https://apify.com/muhammadafzal/17track-package-tracking-scraper)
- DHL parcels: [DHL Tracking Scraper](https://apify.com/muhammadafzal/dhl-package-tracking-scraper)
- US import records by company: [ImportYeti Scraper](https://apify.com/muhammadafzal/importyeti-scraper)

It reads only what Maersk's public tracking page shows to anyone: no customer names, addresses, documents or truck driver details.

### Can I use it from an AI assistant?

Yes. Claude, ChatGPT, Cursor and any other MCP client can run it through Apify's MCP server at `https://mcp.apify.com/?tools=muhammadafzal/maersk-container-tracking-scraper`. Connect that URL, then ask something like: "Track these Maersk containers and tell me which ones arrive after 15 December." The assistant sees the input field, the price per shipment and the output fields before it runs.

### How do I call it from code?

JavaScript:

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/maersk-container-tracking-scraper').call({
    trackingNumbers: ['MSKU0078257', '258765432'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => `${i.trackingNumber}: ${i.shipmentStatus}, ETA ${i.arrivalDate}`));
```

Python (apify-client 3.x):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("muhammadafzal/maersk-container-tracking-scraper").call(
    run_input={"trackingNumbers": ["MSKU0078257", "258765432"]}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["trackingNumber"], item["shipmentStatus"], item["arrivalDate"])
```

### FAQ

**How do I track a Maersk bill of lading (B/L)?**
Enter the 9-character B/L number from your bill of lading, for example `258765432`. The record lists every container on that B/L with its own latest event, planned events and arrival date.

**Can I track a Maersk booking number?**
Yes. Maersk booking numbers use the same 9-character format as its bills of lading and are entered the same way.

**Where is the ETA?**
`arrivalDate` is the arrival date at the port of discharge, and `nextEvent` gives the next planned move with its estimated local time. Both are Maersk's estimates until the event happens; `plannedEvents` on each container lists the full remaining plan through final delivery when Maersk has one.

**Why does my number show no results?**
Maersk has no public tracking for it yet, the number has a typo, or the cargo was not carried by Maersk. Maersk's page briefly shows the same "no results" message when it fails to load, so the Actor checks such a number three times over about two minutes before listing it under `notFound` in `OUTPUT`. It is not charged. If the run ends before the last check, the number is listed under `noResultsUnconfirmed` instead; run it again. Container numbers whose check digit does not match are listed under `containerNumbersWithBadCheckDigit`, which usually means a typo.

**Does it show the full event history?**
It shows what Maersk's tracking page lists: the latest event and every planned event still ahead. Maersk folds earlier completed events away on its page, so they are counted in `completedEventsCount` but not listed.

**Is there a free Maersk tracking option?**
Apify's free plan includes monthly credit, which covers this Actor's per-shipment price; free-plan runs track up to 20 numbers each. Numbers without results are always free.

**How fresh is the data?**
Each run reads Maersk's tracking page at the time of the run. `lastUpdated` shows how long ago Maersk itself last updated the container, and `nextUpdateExpected` when Maersk expects the next update.

Last verified: 2026-11-05

# Actor input Schema

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

Use this to list the Maersk numbers to track, one per row: container numbers (4 letters and 7 digits, for example MSKU0078257), bill of lading or booking numbers (9 characters), or maersk.com tracking links. Up to 100 per run, 20 on the free Apify plan; pasted lists separated by commas or line breaks are split, spaces and dashes inside a number are removed, and duplicates are dropped.

## Actor input object example

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

# Actor output Schema

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

One record per Maersk number found, with route, status, latest event, planned events and containers.

## `summary` (type: `string`):

Outcome, numbers without results, numbers that could not be read, page counts and charges.

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

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

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

```

## MCP server setup

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