Container Tracking API: MSC Shipments as JSON
Track MSC containers, bills of lading and bookings, and read sailing schedules and the fleet, as clean JSON.
A container tracking API for MSC, the world's largest container shipping line. Pass a container number, bill of lading or booking number and get its current status, delivered flag, origin and destination, ports of loading, discharge and transshipment, ETA, and every event per container with date, place, UN/LOCODE, terminal, vessel, voyage and IMO number. Planned steps are marked as estimated. Sailing schedules return MSC sailings between two ports from a date (service, vessel, voyage, departure, arrival, transit time, cut-off dates, legs and CO2 footprint) or the port calls of one vessel, and the vessel list returns MSC ships with their IMO numbers. For live ship positions and port arrivals from any line, use the vessel tracking endpoints in the travel category.
- 2 platforms
- 10 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
Container tracking APIs on API.SH
Each platform has its own page with endpoints, example responses and prices. One API key works for all of them.
What teams build with container tracking data
Shipment visibility for importers
Track every open MSC container or bill of lading once or twice a day, store each new event and show customers where their goods are without logging in to the carrier site.
ETA change alerts
Compare the estimated arrival on each call with the last one, and alert your team when a vessel is delayed or a container is rolled to another sailing.
Booking and routing decisions
Read MSC sailings between two ports for the coming weeks, with transit times, cut-offs and transshipment legs, to choose the fastest or greenest option.
Freight forwarding tools
Feed tracking and schedule data into a forwarder's portal, TMS or spreadsheet, so operations staff check one screen instead of many carrier pages.
Popular container tracking endpoints
| platform | endpoint | per 1,000 calls |
|---|---|---|
| MSC | MSC fleet /msc/ | $1 1 credit |
| Correios | Correios international shipping quote /correios/ | $1 1 credit |
One request, clean JSON
MSC fleet from MSC: GET https://api.api.sh/msc/
curl "https://api.api.sh/msc/v1/vessels?q=gulsun" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/msc/v1/vessels",
params={"q": "gulsun"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() {"query": "gulsun","total": 1468,"count": 1,"vessels": [{"name": "MSC GULSUN","imo": "9839430"}],"cached": false,"credits_used": 1} Why API.SH for container tracking data
- Public data only: no logins, cookies or accounts on the source sites
- One key and one JSON shape across 2 container tracking platforms and 918 in all
- Blocks, retries and parsing handled for you: no scraper to maintain
- Pay per call; failed calls cost nothing
- Also in n8n, Zapier, Make, Google Sheets and AI agents (MCP)
Compared with other data APIs
Other providers sell each platform as a separate actor, scraper or subscription. On API.SH every container tracking platform is under one key and one balance, priced per call on the pricing page.
Container tracking API questions
Which numbers can I track?+
MSC container numbers, bill of lading numbers and booking numbers. The type is detected automatically, or you can set type to container, bl or booking.
Which carriers are covered?+
MSC today. For other lines' vessels, the vessel tracking endpoints in the travel category return ship positions, particulars and expected port arrivals; more carriers can be requested from the catalog.
Is there an official MSC API?+
MSC offers tracking and schedule APIs to registered customers and partners. API.SH returns the same public tracking and schedule information with one API key and no carrier account.
What happens with an unknown number?+
The API answers 404 and returns no invented data, so you can tell a mistyped number from a shipment that has not started moving.
How fresh is the tracking data?+
Each call reads MSC's tracking at that moment, so new events show up as soon as MSC publishes them. Most teams poll open shipments a few times a day.
Is there a free container tracking API?+
Every account gets 1,000 free credits each month, no card needed, which covers regular tracking of a small book of shipments. Larger volumes are billed from $1 per 1,000 calls.
Can I use it from Python or a spreadsheet?+
Yes. /msc/v1/track is a GET request that returns JSON, so it works from Python, JavaScript and curl, and the Google Sheets add-on can refresh a column of container numbers.
How do I start?+
Get a free key and call /msc/v1/track with a container or bill of lading number, or /msc/v1/schedule with two port codes and a date. A full sample tracking response is in the docs at api.sh/docs.