# Yang Ming Container Tracking - YML Cargo Tracker (`pshivam/yang-ming-tracking-scraper`) Actor

Track Yang Ming (YML) containers in bulk: latest status, location, vessel and voyage, ETA at the destination port and the full event history. Paste container numbers, up to 20 per request. Only changed shipments on request. No proxy, no login. Export to Excel, CSV, JSON or API.

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

## Pricing

from $5.60 / 1,000 container 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/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

## Yang Ming Container Tracking - YML Cargo Tracker

**Track Yang Ming (YML) containers and bills of lading in bulk.** Paste a list of container or bill of lading numbers and get each shipment's **latest status, location, vessel and voyage, ETA at the destination port and the full event history** as clean data. The Actor asks Yang Ming's own cargo tracking service for up to 20 numbers at a time, about 200 containers per run (see Good to know). Get only the containers that moved since your last run. No proxy, no login. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-12. Every release passes 150+ automated tests, and Apify test-runs it every day.

### What can you use it for?

- **Track your containers every day.** Schedule the Actor on your list of containers and turn on **Only changed shipments** to get a row only when a container moved.
- **Plan arrivals.** Read the ETA, the vessel and the voyage for every container in transit, and the next port.
- **Feed a TMS, ERP or spreadsheet.** Send the result to Google Sheets, Make, Zapier, n8n or your own app.
- **Check detention and demurrage.** See when a container was discharged, delivered and returned empty, with every gate and rail move.
- **Forwarders and 3PLs.** Track the containers of many customers in one run and filter the result by status.

### What data do you get?

One row per container or bill of lading.

| Field | What it is |
|---|---|
| `trackingNumber`, `numberType`, `containerNumber` | The number as Yang Ming knows it, its type (`container`, `bill_of_lading`, `booking`) and the container number |
| `containerSize`, `containerType`, `containerTypeDescription` | Length in feet (20, 40, 45), type code (`DC`, `HQ`, `RF`) and the type in words |
| `bookingReference` | The booking number, when Yang Ming gives it |
| `status`, `statusAt`, `statusLocation` | The latest event, when it happened (local time of the place) and where. For a bill of lading: `Scheduled`, `In transit` or `Arrived`, worked out from its routing |
| `nextLocation` | Where the container goes next |
| `transportMode`, `vessel`, `voyage` | How it moves (`vessel`, `rail`, `truck`, `feeder`), the vessel and the voyage number |
| `eta`, `etaPort` | Estimated arrival and the port it is for |
| `firstEventAt`, `eventCount` | The oldest event and how many events there are |
| `events` | Every event, newest first: `sequence`, `at`, `event`, `location`, `toLocation`, `transportMode`, `vessel`, `voyage`, `eta`, `etaPort`, `bookingReference`, `isLatest` |
| `standardEvents` | The same history in the shipping industry's standard (DCSA) wording |
| `placeOfReceipt`, `portOfLoading`, `portOfDischarge`, `placeOfDelivery` | Bill of lading: where the cargo was received, loaded, will be discharged and delivered |
| `onBoardDate`, `containerSummary`, `serviceTerm` | Bill of lading: the on-board date, how many containers of which size, and the service term |
| `routing` | Bill of lading: the routing in order, each stop with `place`, `at`, `kind` (`actual`, `estimated`, `to_be_advised`) and `berth` |
| `shipment` | Bill of lading: Yang Ming's shipment details exactly as given (voyage code, weights, volumes) |
| `trackingUrl` | The result on Yang Ming's own tracking page |
| `checkedAt` | When the container was checked (UTC) |

#### Example result

```json
{
  "trackingNumber": "YMMU6672524",
  "numberType": "container",
  "containerNumber": "YMMU6672524",
  "containerSize": "40",
  "containerType": "HQ",
  "containerTypeDescription": "9'6'' container",
  "status": "On Board",
  "statusAt": "2026-09-25T13:10:00",
  "statusLocation": "NINGBO - China Merchants International Container Terminals Co.,Ningbo Daxie",
  "nextLocation": "ANTWERPEN",
  "transportMode": "vessel",
  "vessel": "HMM ROTTERDAM",
  "voyage": "020W",
  "eta": "2026-11-23T19:00:00",
  "etaPort": "ANTWERPEN",
  "firstEventAt": "2026-09-18T04:48:00",
  "eventCount": 3,
  "events": [
    {"sequence": 1, "at": "2026-09-25T13:10:00", "event": "On Board", "vessel": "HMM ROTTERDAM", "voyage": "020W", "isLatest": true},
    {"sequence": 2, "at": "2026-09-21T14:47:00", "event": "Received at Origin", "isLatest": false},
    {"sequence": 3, "at": "2026-09-18T04:48:00", "event": "Empty to Shipper", "isLatest": false}
  ],
  "trackingUrl": "https://www.yangming.com/en/esolution/tracking/cargo_tracking?service=YMMU6672524&position=SEARCH"
}
```

### How to use it

1. Paste your container numbers into **Tracking numbers**: one per line, or separated by commas, spaces or semicolons.
2. Set **Maximum results** and press Start.

Container numbers with a wrong check digit are found before anything is sent to Yang Ming. They cost nothing and appear in the `NOT_FOUND` record with the reason `invalid_check_digit`.

#### Input options

| Input | What it does |
|---|---|
| `trackingNumbers` | Yang Ming container numbers and bill of lading numbers (`YMJAW192318623`). Repeats are checked once |
| `includeEvents` | Add the full event history to every result. On by default |
| `includeStandardEvents` | Add the history in standard (DCSA) wording. Off by default |
| `onlyNew` | Skip containers whose latest event is the same as in an earlier run of this list |
| `maxItems` | Stop after this many results |
| `maxConcurrency` | Requests to Yang Ming at the same time. 1 by default |
| `secondsBetweenRequests` | Pause between requests to Yang Ming. 3 seconds by default |

### How much does it cost?

You pay per container result, nothing else. Numbers Yang Ming does not know, numbers with a wrong check digit and numbers not checked cost nothing. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 results |
|---|---|
| Free | $8.00 |
| Bronze | $7.20 |
| Silver | $6.40 |
| Gold | $5.60 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/yang-ming-tracking-scraper").call(run_input={
    "trackingNumbers": ["YMLU3456786", "YMMU7658454", "YMMU6672524"],
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["trackingNumber"], row["status"], row["statusLocation"], row["eta"])
```

**Daily tracking.** Schedule the Actor in the Apify Console (Schedules), keep your container list (up to about 200 numbers) in the input and turn on **Only changed shipments**. Each run returns only the containers whose latest event is new.

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/yang-ming-tracking-scraper` and this input:

```json
{"trackingNumbers": ["YMLU3456786", "YMMU6672524"], "onlyNew": true}
```

### This scraper vs. the alternatives

| | This Actor | Yang Ming's website | Multi-carrier tracking services |
|---|---|---|---|
| Output | Rows for Excel, CSV, JSON, API | One page per search | JSON |
| Numbers per run | About 200 per run, then run again | 20 per search | Depends on the plan |
| Only changed shipments | Yes | No | Depends |
| Event history with vessel and voyage | Yes | Yes | Yes |
| Price | $8.00 per 1,000 results | Free to read | Monthly plans |

### Good to know

- **Containers and bills of lading are tested with real Yang Ming data.** A bill of lading has no event list at Yang Ming: its status comes from the routing (`Scheduled`, `In transit`, `Arrived`) and the event fields are empty. Booking numbers are sent as typed and read the same way.
- **About 200 containers per run.** Yang Ming's tracking service lets one address ask about 10 to 12 times, then blocks it for hours. The Actor sends 20 numbers per request, so a run checks about 200 to 240 numbers, keeps every result it has, and lists the others in the `NOT_FOUND` record with the reason `not_checked`. Run the Actor again later with those numbers. Each new run uses a new address. Turn on `onlyNew` so the numbers you already have are not charged again.
- **Times are local.** `statusAt`, `eta` and the event times are the local time of the place, without a time zone, as Yang Ming gives them.
- **ETA** is Yang Ming's estimate for the destination port of the latest event. It is empty when Yang Ming gives none, for example after discharge.
- **Independent tool.** Not affiliated with or endorsed by Yang Ming Marine Transport Corp. It reads the public tracking service of Yang Ming's website.

### FAQ

#### How do I track a Yang Ming container?

Paste the container number (four letters and seven digits, for example `YMLU3456786`) or the bill of lading number into Tracking numbers and press Start. The Actor returns the latest status, the place, the vessel and voyage, the ETA and the full event history.

#### How many containers can I track at once?

About 200 per run. Yang Ming limits how many requests one address may send. When the limit is reached the Actor keeps the results it has and lists the other numbers in the `NOT_FOUND` record as `not_checked`. Run it again with those numbers.

#### Can I track a bill of lading number?

Yes. A bill of lading such as `YMJAW192318623` returns the vessel and voyage, the ports of loading and discharge, the on-board date, the number and size of containers and the routing with actual and estimated times.

#### How do I get a daily update only for containers that moved?

Schedule the Actor with the same list and turn on `onlyNew`. A new latest event makes a new result, and only new results are returned and charged.

#### Do I pay for numbers that are not found?

No. Numbers Yang Ming does not know and numbers with a wrong check digit are listed in the `NOT_FOUND` record and are free.

#### Do I need a proxy or an account?

No. The Actor reads Yang Ming's public tracking service and needs no proxy, no login and no account.

#### Is it legal to use this data?

The Actor reads the public tracking service of Yang Ming's website. You are responsible for how you use the results, and Yang Ming's terms apply to your use of its service.

# Actor input Schema

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

Yang Ming container numbers (YMLU3456786). Add them one by one or use bulk edit to paste a list: one per line, or separated by commas, spaces or semicolons. Bill of lading numbers work too (YMJAW192318623). Repeats are checked once.

## `includeEvents` (type: `boolean`):

Adds every event Yang Ming lists for a container (gate in, load, discharge, rail, truck) to each result. Turn off for a smaller result.

## `includeStandardEvents` (type: `boolean`):

Adds the same history in the shipping industry's standard event wording (DCSA), for systems that read it.

## `onlyNew` (type: `boolean`):

Skip containers whose latest event is the same as in an earlier run of this same list, so you pay only when something moved. The first run works as usual and remembers what it returned, in your key-value store 'yang-ming-tracking-scraper-only-new'.

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

Stop after this many results. You are charged per result. Numbers Yang Ming does not know are free.

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

Requests to Yang Ming at the same time, each with up to 20 numbers. 1 is the safe default: Yang Ming blocks addresses that connect too often.

## `secondsBetweenRequests` (type: `integer`):

Pause between requests to Yang Ming, each with up to 20 numbers. Yang Ming blocks addresses that connect too often: 3 seconds checks about 400 numbers a minute. After a 'too many requests' answer the Actor doubles the pause for the rest of the run.

## Actor input object example

```json
{
  "trackingNumbers": [
    "YMLU3456786",
    "YMMU7658454",
    "YMMU6672524"
  ],
  "includeEvents": true,
  "includeStandardEvents": false,
  "onlyNew": false,
  "maxItems": 20,
  "maxConcurrency": 1,
  "secondsBetweenRequests": 3
}
```

# Actor output Schema

## `status` (type: `string`):

One row per container: latest event, place and ETA.

## `vessel` (type: `string`):

Vessel, voyage, next location and ETA for each container.

## `notFound` (type: `string`):

Numbers Yang Ming does not know, numbers with a wrong check digit and numbers not checked (NOT_FOUND record). Not charged.

## `runStats` (type: `string`):

Requests made, time spent and number of results for this run (RUN_STATS record).

# 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": [
        "YMLU3456786",
        "YMMU7658454",
        "YMMU6672524"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/yang-ming-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": [
        "YMLU3456786",
        "YMMU7658454",
        "YMMU6672524",
    ],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/yang-ming-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": [
    "YMLU3456786",
    "YMMU7658454",
    "YMMU6672524"
  ],
  "maxItems": 20
}' |
apify call pshivam/yang-ming-tracking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pshivam/yang-ming-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/ozXbHImWe942E7yor/builds/2BjinTJsyY3ljvjOB/openapi.json
