Discover/CMA CGM API
live

CMA CGM APIcma-cgm.com

Access CMA CGM's 280+ shipping lines via 2 endpoints. Retrieve port-to-port rotations, vessel fleet data, service frequencies, and route schedules.

Endpoint health
verified 7d ago
get_all_routes
get_route_details
2/2 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the CMA CGM API?

The CMA CGM API exposes shipping route and schedule data across 280+ global service lines through 2 endpoints. The get_all_routes endpoint returns a filterable list of services with codes, names, and schedule URLs, while get_route_details delivers full port-to-port rotation sequences, vessel fleet details, and key service figures like frequency and total duration for any specific line.

Try it
Destination zone code to filter routes by arrival region.
Origin zone code to filter routes by departure region.
api.parse.bot/scraper/09df797a-76eb-4a09-9334-d60aa9bb95d8/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/09df797a-76eb-4a09-9334-d60aa9bb95d8/get_all_routes?zone_to=AFR&zone_from=AFR' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace cma-cgm-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.cma_cgm_shipping_routes_api import CmaCgm, Zone

client = CmaCgm()

# Search for routes from Asia to Europe
for summary in client.routesummaries.search(zone_from=Zone.ASIE, zone_to=Zone.WEUR):
    print(summary.service_code, summary.service_name, summary.description)

    # Get full route details including port rotation and vessels
    route = summary.details()
    print(route.title, route.description)

    for port in route.port_rotation:
        print(port.day, port.port, port.country_code, port.country)

    for vessel in route.vessels:
        print(vessel.vessel_name, vessel.flag)
All endpoints · 2 totalmissing one? ·

Get all CMA CGM shipping routes/lines. Optionally filter by origin and destination zones. Returns an empty list when no routes exist for the specified zone combination. Each route includes a service_code usable with the get_route_details endpoint for full port rotation and vessel data.

Input
ParamTypeDescription
zone_tostringDestination zone code to filter routes by arrival region.
zone_fromstringOrigin zone code to filter routes by departure region.
Response
{
  "type": "object",
  "fields": {
    "total": "integer - total number of routes returned",
    "routes": "array of route objects with service_code, service_name, description, schedule_code, type, schedule_url"
  },
  "sample": {
    "data": {
      "total": 9,
      "routes": [
        {
          "type": 3,
          "description": "North Europe - Middle East/India",
          "schedule_url": "/ebusiness/schedules/line-services/schedules/EPIC?zoneFromCode=ASIE&zoneToCode=WEUR",
          "service_code": "EPIC",
          "service_name": "Europe Pakistan India Consortium (EPIC)",
          "schedule_code": "EPIC"
        }
      ]
    },
    "status": "success"
  }
}

About the CMA CGM API

Route Discovery and Zone Filtering

The get_all_routes endpoint returns a list of CMA CGM shipping services, each containing a service_code, service_name, description, schedule_code, type, and schedule_url. You can narrow results using the zone_from and zone_to parameters, which accept standardized zone codes: AFR (Africa), ASIE (Asia), CARAIBES (Caribbean and Central America), WEUR (Western Europe), and others. When no routes exist for a given zone combination, the endpoint returns an empty list rather than an error, so callers can safely iterate across zone pairs.

Detailed Route Data

Passing a service_code (such as FAL, AMERIGO, or EGY3PF) to get_route_details returns the full rotation for that service. The port_rotation array lists each port stop with day, port, country, country_code, and port_code, giving a numbered sequence of calls in order. The vessels array includes each ship's vessel_name, imo, flag, and capacity_teu. The key_figures object surfaces structured metadata such as frequency, vessel fleet count, number of ports of call, and total service duration.

Coverage and Scope

Service codes required by get_route_details are obtained from get_all_routes, making the two endpoints complementary. The optional service_name and service_desc inputs on get_route_details improve matching accuracy when a service code maps to multiple candidate pages. The total field in get_all_routes responses confirms the count of routes returned for a given filter combination.

Reliability & maintenanceVerified

The CMA CGM API is a managed, monitored endpoint for cma-cgm.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when cma-cgm.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official cma-cgm.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a port-pair transit time lookup tool using port_rotation day numbers from get_route_details.
  • Monitor vessel fleet composition and TEU capacity per service line using the vessels array.
  • Identify all CMA CGM services connecting Asia (ASIE) to Africa (AFR) using zone filters on get_all_routes.
  • Aggregate service frequency data from key_figures across all routes to analyze trade lane coverage.
  • Generate a full list of ports served on a specific rotation using port_code and country_code fields.
  • Track which flags and IMO numbers are assigned to vessels operating on a given service.
  • Enumerate all active service codes for integration with freight booking or TMS platforms.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does CMA CGM offer an official developer API for schedule data?+
CMA CGM offers an eBusiness portal at cma-cgm.com/ebusiness for customers, but there is no publicly documented REST API for schedule and route data that developers can access without a commercial account. This Parse API provides structured access to the same schedule information.
What does `get_route_details` return beyond port names?+
It returns the full ordered port rotation as an array of stops, each with a day number, port name, port_code, country, and country_code. It also returns the vessels array with IMO numbers, flags, and TEU capacities, plus a key_figures object with fields like Frequency, Duration, and Ports of Call.
Does the API return real-time vessel position or AIS tracking data?+
No. The API covers scheduled port rotations, service metadata, vessel fleet assignments, and key service figures. Real-time vessel positions and AIS tracking are not part of the response. You can fork this API on Parse and revise it to add an endpoint pulling from an AIS data source.
Can I retrieve historical schedule changes or archived rotations?+
The API returns current published schedule data. Historical rotation changes are not exposed. You can fork the API on Parse and revise it to store and diff successive responses if you need a change history.
What happens if I filter `get_all_routes` with a zone combination that has no services?+
The endpoint returns an empty routes array and a total of 0. It does not return an error, so you can safely loop over zone code pairs without additional error handling for empty results.
Page content last updated . Spec covers 2 endpoints from cma-cgm.com.
Related APIs in OtherSee all →
maersk.com API
Track your Maersk shipping containers in real-time, monitor vessel schedules and locations, and discover available routes between ports and countries. Access comprehensive port data, search for specific locations, and view detailed shipping route information to plan your logistics more effectively.
marinetraffic.com API
Track maritime vessels in real-time by searching for ships by name, MMSI, or IMO number, viewing their current positions and navigational status, and accessing detailed specifications and photos. Filter vessels by type to get the maritime intelligence you need for shipping, logistics, or maritime awareness.
portofrotterdam.com API
Track live vessel movements and monitor port performance metrics including container throughput and anchorage statistics for the Port of Rotterdam. Access nautical notices and search detailed port information to stay updated on shipping operations and port conditions.
royalcaribbean.com API
Search and compare Royal Caribbean cruises by destination, ship, itinerary, and price. Access detailed sailing information including port schedules, voyage durations, and fares across all global routes and departure dates.
ncl.com API
Browse Norwegian Cruise Line's fleet of ships, search available cruises by destination and sail dates, and view detailed itineraries with ports of call for any sailing. Plan your cruise vacation by comparing ship names, departure dates, and complete port schedules all in one place.
flexport.com API
Get real-time air and ocean freight rates, search shipping routes, and access logistics service information to compare pricing and plan international shipments. Discover popular routes and retrieve freight rate quotes for any origin-destination pair.
chrobinson.com API
Search available freight loads, get real-time load board statistics, and explore C.H. Robinson's logistics services across carriers and industries. Use location autocomplete to quickly find shipping origins and destinations while discovering the full range of freight and carrier services available through the platform.
citymapper.com API
Get real-time transit information including live stop arrivals, service status, and line details across major cities worldwide. Search for nearby transit options and stay informed with service alerts to plan your commute efficiently.