Yang Ming Cargo Tracking Scraper — Container, B/L & Booking avatar

Yang Ming Cargo Tracking Scraper — Container, B/L & Booking

Pricing

from $2.75 / 1,000 results

Go to Apify Store
Yang Ming Cargo Tracking Scraper — Container, B/L & Booking

Yang Ming Cargo Tracking Scraper — Container, B/L & Booking

Track Yang Ming (YML) shipments by container, B/L or booking number: status, full move/event history, vessel and voyage, origin/destination ports, dates, containers, seals and weight. Keyless, no anti-bot.

Pricing

from $2.75 / 1,000 results

Rating

0.0

(0)

Developer

Haketa

Haketa

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

Yang Ming Cargo Tracking Scraper — Container, B/L & Booking Tracking

Apify Actor Platform Node Data Format Maintenance Delivery Speed

Track Yang Ming Marine Transport (YML) ocean cargo shipments in bulk by container number, Bill of Lading (B/L), or booking reference. This high-performance Yang Ming scraper transforms simple tracking lists into structured logistics records — live status, comprehensive move and event history, vessel and voyage details, port routing schedules with timestamps, seal numbers, container types, and verified gross weights.

Export effortlessly to JSON, CSV, Excel, XML, or connect directly via the Apify REST API.

Built for freight forwarders, Non-Vessel Operating Common Carriers (NVOCCs), third-party logistics providers (3PLs), customs brokers, importers, exporters, and supply chain visibility platforms that require reliable, automated container tracking data without tedious manual web portal lookups.


⚡ At a glance

FeatureSpecification
Target CarrierYang Ming Marine Transport (YML)
Supported IdentifiersContainer Number (YMLU...), Bill of Lading (N237...), Booking (M012...)
Output FormatsJSON, CSV, XML, Excel (XLSX), HTML Table, RSS
PerformanceUltra-fast pure HTTP (~2.3 seconds for demo, ~40s for 500+ shipments)
Scale & Capacity1,000+ tracking numbers per batch with configurable concurrency up to 50
Proxy RequirementApify Proxy (Datacenter default, ultra-low cost)
AuthenticationNone required (No carrier login or proprietary API key needed)
Data EnrichmentHTML tag stripping, whitespace normalization, ISO timestamping, deduplication

🔎 Why scrape Yang Ming tracking data?

Yang Ming Marine Transport (YML) is a premier global container shipping line, operating major transpacific, transatlantic, intra-Asia, and Asia-Europe maritime corridors. Every ocean container, Bill of Lading, and cargo booking records mission-critical milestones throughout its voyage:

  • Terminal Milestones: Empty container release, gate-in at departure terminal, loading onto vessel, transshipment discharge, onward loading, final import discharge, delivery to consignee, and empty return.
  • Vessel & Voyage Details: Dedicated vessel names, voyage numbers, and confirmed on-board departure dates.
  • Geographic Routing: Port of receipt, port of loading, port of discharge, port of delivery, and intermediate transshipment hubs with UN/LOCODE identifiers.
  • Cargo Specifications: Container size (20ft, 40ft, 40HC), equipment type (Dry cargo, Reefer), active seal numbers, package counts, and verified gross weights (VGM).

Accessing this operational data manually through the carrier's single-item web form is inefficient for modern logistics teams handling hundreds of active containers. This Yang Ming scraper delivers programmatic bulk lookups, enabling real-time exception management, automated client delivery notices, and seamless TMS (Transportation Management System) synchronization.

Common Logistics Use Cases

  1. Automated Freight Tracking: Ingest daily manifests of 500+ Yang Ming containers and update internal shipment statuses automatically.
  2. Milestone & ETA Monitoring: Track actual departure and arrival timestamps across maritime routing legs to identify transit delays early.
  3. Detention & Demurrage Mitigation: Flag containers discharged at destination ports to alert drayage teams before free time expires.
  4. Customs Brokerage Documentation: Automatically capture verified gross weights, package counts, seal numbers, and vessel schedules for customs declarations.
  5. Transshipment Exception Alerts: Detect planned transshipment vessel changes and route adjustments while cargo is in transit.
  6. Customer Portal Feeds: 3PLs and freight forwarders can embed live container status updates into customer-facing web dashboards.

✨ Key features

  • Automatic Identifier Detection: Seamlessly accepts mixed lists of Container numbers, B/L numbers, and Booking references. The scraper automatically determines the tracking type from carrier data.
  • Complete Event History: Extracts chronological move logs (often dozens of events per container) with timestamp, event description, facility location, and transport mode.
  • High-Concurrency Batch Processing: Track up to 50 shipments in parallel for rapid processing of enterprise-scale tracking manifests.
  • Built-in HTML Sanitization: Automatically strips inline carrier web markup (<br>, <img>, font tags) to deliver clean, normalized plaintext strings.
  • Zero Duplicates Guarantee: Cleanses, standardizes (stripping hyphens and spaces), and deduplicates all input tracking numbers before query execution.
  • Zero Browser Overhead: Pure HTTP pipeline runs with minimal memory footprint (256-512 MB) and zero headless browser resource consumption.
  • Graceful Error Handling: Clearly distinguishes between active shipments and obsolete/unfound numbers with informative carrier status messages.

📥 Input parameters

The actor takes simple, flexible input parameters. All settings are optional with sensible defaults.

ParameterTypeDefaultDescription
trackingNumbersarray[]List of tracking numbers (one per line). Container (e.g. YMLU3560471), B/L (e.g. N237068499), or Booking reference. Empty runs a demo.
maxConcurrencyinteger10Parallel lookup workers (1 to 50). Higher values accelerate large batches.
proxyConfigurationobject{ "useApifyProxy": true }Datacenter proxy configuration to maintain reliable network rotation.

Example Input

{
"trackingNumbers": [
"YMLU3560471",
"N237068499",
"M0123456"
],
"maxConcurrency": 10,
"proxyConfiguration": {
"useApifyProxy": true
}
}

📤 Output data fields

The actor produces structured JSON records stored in the default dataset. Below is an emoji-grouped breakdown of all output fields with expected coverage indicators:

📦 Shipment Identification

FieldTypeCoverageDescription
trackingNumberstring🟢 High (100%)The queried tracking identifier as submitted.
foundstring🟢 High (100%)"true" if shipment data exists, "false" otherwise.
trackTypestring🟢 High (100%)Detected category: Container No, B/L No, or Booking.
returnTrackNostring🟢 High (100%)Normalized tracking number as returned by the carrier.
bkgRefstring🟡 Conditional (B/L)Carrier booking reference associated with the shipment.
blTypestring🟡 Conditional (B/L)Type of Bill of Lading (e.g., (Seaway Bill), Original B/L).
blnoListstring🟡 Conditional (Cntr)Associated B/L numbers linked to this container.

📍 Status & Movement Timeline

FieldTypeCoverageDescription
currentStatusstring🟢 High (100%)Current operational status or transshipment plan summary.
statusCodestring🟡 Conditional (75%)Internal carrier milestone code.
latestEventstring🟡 Conditional (Cntr)Summary of the most recent move event with facility and timestamp.
eventCountstring🟡 Conditional (Cntr)Total number of recorded chronological move events.
eventsstring🟡 Conditional (Cntr)Full pipe-delimited history of all move events, locations, and modes.

🚢 Vessel, Route & Cargo Specifications

FieldTypeCoverageDescription
originstring🟡 Conditional (B/L)Place of receipt / port of loading with UN/LOCODE.
destinationstring🟡 Conditional (B/L)Port of discharge / place of delivery with UN/LOCODE.
vesselNamestring🟡 Conditional (B/L)Operating vessel name executing the primary maritime leg.
voyagestring🟡 Conditional (B/L)Voyage code or common vessel identifier.
onboardDatestring🟡 Conditional (B/L)Confirmed vessel loading and departure date (YYYY/MM/DD).
routingstring🟡 Conditional (B/L)Detailed schedule of port calls with actual/estimated dates.
containerSizestring🟡 Conditional (Cntr)Nominal container length in feet (e.g. 20, 40).
containerTypestring🟡 Conditional (Cntr)ISO container equipment description (e.g. Dry cargo container).
containerCountstring🟢 High (100%)Total container units tied to the queried document.
containersstring🟡 Conditional (B/L)Summary list of all container numbers, sizes, seals, and statuses.
sealNostring🟡 Conditional (80%)Primary high-security bolt seal number affixed to the container.
packagesstring🟡 Conditional (B/L)Total package piece count declared on the manifest.
grossWeightstring🟡 Conditional (B/L)Total verified gross weight including measurement unit (e.g. 3255.4 KGS).
responseMessagestring🟡 Conditional (NotFound)Error explanation when shipment reference is not found.
scrapedAtstring🟢 High (100%)ISO 8601 UTC timestamp when the record was extracted.

📋 Comprehensive Output Examples

1. Container Move Record (YMLU3558010)

{
"trackingNumber": "YMLU3558010",
"found": "true",
"trackType": "Container No",
"returnTrackNo": "YMLU3558010",
"bkgRef": "",
"blType": "",
"currentStatus": "Empty Returned @ANTWERPEN",
"statusCode": "ER",
"containerSize": "20",
"containerType": "Dry cargo container",
"sealNo": "YMAV279733",
"origin": "",
"destination": "",
"vesselName": "",
"voyage": "",
"onboardDate": "",
"packages": "",
"grossWeight": "",
"containerCount": "1",
"containers": "",
"routing": "",
"latestEvent": "Empty Returned @ANTWERPEN - NOORDZEE TERMINAL 913 (AIT) (2026/10/23 11:52)",
"eventCount": "6",
"events": "2026/10/23 11:52: Empty Returned @ANTWERPEN - NOORDZEE TERMINAL 913 (AIT) [Truck] | 2026/10/23 07:41: Full to Consignee @ANTWERPEN - NOORDZEE TERMINAL 913 (AIT) [Truck] | 2026/10/22 03:59: Discharged @ANTWERPEN [Vessel] | 2026/08/31 02:38: On Board @YANTIAN - YICT [ONE FUTURE (009W)] | 2026/08/29 14:15: Gate In @YANTIAN - YICT [Truck] | 2026/08/25 09:30: Empty Pick Up @SHENZHEN DEPOT [Truck]",
"blnoList": "N237068499",
"responseMessage": "",
"scrapedAt": "2026-11-10T13:36:00.000Z"
}

2. Bill of Lading Record (N237068499)

{
"trackingNumber": "N237068499",
"found": "true",
"trackType": "B/L No",
"returnTrackNo": "N237068499",
"bkgRef": "N237068499",
"blType": " (Seaway Bill)",
"currentStatus": "Cargo Discharged and Delivered",
"statusCode": "CD",
"containerSize": "",
"containerType": "",
"sealNo": "YMAV279733",
"origin": "SHANGHAI, SH (CNSHA)",
"destination": "ROTTERDAM (NLRTM)",
"vesselName": "HMM DUBLIN",
"voyage": "018W",
"onboardDate": "2026/02/15",
"packages": "538",
"grossWeight": "3255.4 KGS",
"containerCount": "1",
"containers": "YMLU3560471(20 YMAV279733): Empty Returned @ROTTERDAM - CETEM",
"routing": "SHANGHAI: 2026/02/15 11:30 (Actual); ROTTERDAM: 2026/04/05 12:15 (Actual)",
"latestEvent": "",
"eventCount": "",
"events": "",
"blnoList": "",
"responseMessage": "",
"scrapedAt": "2026-11-10T13:36:00.000Z"
}

⚓ Milestone & Event Code Reference

Yang Ming reports standardized lifecycle event descriptions throughout container moves:

Milestone DescriptionTransport ModeTypical StageMeaning
Empty Pick UpTruck / RailOriginShipper picked up empty container from carrier depot
Gate InTruck / RailOrigin TerminalLoaded container arrived at the port terminal
Loaded on VesselVesselOrigin TerminalBox was hoisted and stowed aboard the container ship
On BoardVesselDeep Sea TransitVessel departed origin; container is actively transiting
DischargedVesselTransshipment / PodContainer was offloaded at an intermediate hub or POD
Full to ConsigneeTruck / RailDestinationContainer gated out for delivery to the consignee's warehouse
Empty ReturnedTruck / RailDestination DepotDe-stuffed container returned to carrier yard, ending liability

💻 Code examples & integrations

Node.js (Apify Client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const run = await client.actor('haketa/yangming-scraper').call({
trackingNumbers: ['YMLU3560471', 'N237068499'],
maxConcurrency: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Successfully tracked ${items.length} Yang Ming shipments:`);
for (const item of items) {
if (item.found === 'true') {
console.log(`[${item.trackType}] ${item.trackingNumber}: Status -> ${item.currentStatus} (${item.latestEvent || item.vesselName})`);
} else {
console.log(`[NOT FOUND] ${item.trackingNumber}: ${item.responseMessage}`);
}
}

Python (apify-client) & Pandas Analysis

import os
import pandas as pd
from apify_client import ApifyClient
client = ApifyClient(os.getenv('APIFY_TOKEN'))
run_input = {
"trackingNumbers": [
"YMLU3560471",
"N237068499"
],
"maxConcurrency": 15
}
run = client.actor("haketa/yangming-scraper").call(run_input=run_input)
# Convert dataset directly into a Pandas DataFrame
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
df = pd.DataFrame(items)
print(f"Loaded {len(df)} tracking records into DataFrame.")
print(df[["trackingNumber", "trackType", "currentStatus", "origin", "destination"]])

cURL (Apify API)

curl "https://api.apify.com/v2/acts/haketa~yangming-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"trackingNumbers": ["YMLU3560471", "N237068499"],
"maxConcurrency": 10
}'

💼 Logistics Workflows & Tips

  • Container Number Format: Yang Ming container numbers follow ISO 6346 standards, typically starting with YMLU or YMMU followed by 7 digits. The scraper automatically trims spaces and hyphens.
  • Handling Multi-Container B/Ls: When tracking by Bill of Lading, multiple containers tied to the master manifest are summarized inside containers and counted in containerCount. To get individual multi-move histories for each box, pass the extracted container numbers into a second pass.
  • Scheduled Transit Monitoring: Set up an hourly or daily scheduled Apify run targeting your active shipment manifest. Compare successive run datasets to pinpoint movement changes, vessel arrivals, or gate-out milestones.
  • Webhook Alerts for Exceptions: Configure an Apify Webhook that triggers when a run finishes. Send data to Make or Zapier to automatically notify clients via Slack or email when a container arrives at the discharge terminal.
  • Avoiding Stale Data: Yang Ming maintains active tracking histories for voyages over recent months. If you need historical records for tax, customs, or audit purposes, export datasets to CSV or database storage upon discharge.

❓ Frequently Asked Questions (FAQ)

Do I need a Yang Ming account or login?

No. This actor accesses Yang Ming's public cargo tracking service directly. No user login, carrier account, or proprietary API subscription is necessary.

Can I track 1,000+ numbers in a single execution?

Yes. The actor easily handles hundreds or thousands of tracking numbers in a single job. Concurrency can be set up to 50 parallel workers for rapid completion.

How does the scraper tell containers apart from Bills of Lading?

You do not need to specify the identifier type. The actor queries Yang Ming's tracking engine and parses the returned JSON payload to automatically identify whether the record is a Container, B/L, or Booking reference.

What happens if a tracking number is invalid or too old?

If a number is mistyped or represents a voyage completed years ago that has been archived by the carrier, the record will return found: "false" along with Yang Ming's official explanation in responseMessage (e.g. No data found or Invalid reference).

Can I export tracking updates directly to Google Sheets or Excel?

Yes. Output datasets can be downloaded directly from the Apify Console as Excel (XLSX), CSV, or JSON files. You can also automate live syncing to Google Sheets via Apify integrations.

Does the scraper support automated notifications?

Yes. Using Apify Webhooks or third-party workflow automation (Zapier, Make, n8n), you can trigger downstream alerts whenever a container reaches milestone stages such as Discharged or Gate In.

Can I track reefer or special equipment containers?

Yes. Yang Ming transports refrigerated, open-top, flat-rack, and tank containers alongside standard dry cargo boxes. Equipment classification appears inside the containerType field (e.g., Reefer container, High cube dry).

What network proxies are required?

The actor uses standard Apify Datacenter proxies by default. Because Yang Ming's tracking endpoints do not impose aggressive IP firewalls, datacenter proxies provide an optimal balance of blistering lookup speed and negligible computing cost.

What happens if carrier servers experience temporary downtime?

The scraper incorporates automated exponential backoff with multi-attempt request retries. If an individual request encounters a 429 rate limit or 5xx server hiccup, it automatically pauses and retries via an alternate IP.


Explore complementary maritime and logistics tools from Haketa:


📋 Changelog

Version 1.2 (2026-11)

  • High-Concurrency Batch Scaling: Upgraded concurrency settings up to 50 workers, optimizing 1,000+ shipment tracking runs.
  • Input Sanitization & Deduplication: Added automatic deduplication set to avoid redundant requests for duplicate manifest entries.
  • Build & Metadata Standardization: Added explicit buildTag: latest configuration and standardized memory boundaries (256 - 1024 MB).
  • HTML Cleanup Enhancement: Refined entity decoding and regex tag removal across carrier transshipment notes and vessel schedules.
  • Documentation Expansion: Added detailed logistics workflow guides, milestone code tables, comprehensive JSON response samples, and code integration templates.

Version 1.1

  • Added automatic B/L routing schedule parsing with date qualifier support.
  • Added full multi-event container chronological move history extraction.
  • Standardized string typing across all output schema properties.

Version 1.0

  • Initial release featuring unified Container, Bill of Lading, and Booking lookup.
  • Fast pure HTTP transport with automatic carrier response classification.