# Cma Cgm — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Track shipping routes and vessel schedules across CMA CGM's 280+ shipping lines, including detailed port-to-port rotations, fleet information, and service specifics. Search for specific routes or browse complete shipping schedules to plan logistics and monitor maritime transportation options.

**Category:** Other | **Website:** [www.cma-cgm.com/ebusiness/schedules/line-services](https://www.cma-cgm.com/ebusiness/schedules/line-services) | **Docs:** [parse.bot/marketplace/bedb9477-455b-48c9-a681-cb0bc538bfa6/cma-cgm-com-api](https://parse.bot/marketplace/bedb9477-455b-48c9-a681-cb0bc538bfa6/cma-cgm-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-cma-cgm-com-api-bedb9477/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_routes

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.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `zone_from` | string | No | Origin zone code to filter routes by departure region. |
| `zone_to` | string | No | Destination zone code to filter routes by arrival region. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cma-cgm-com-api-bedb9477/get_all_routes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"zone_from":"<string>","zone_to":"<string>"}'
```

### get_route_details

Get detailed information for a specific shipping route, including full port-to-port rotation sequence with day numbers, vessel fleet, and key figures such as frequency and duration. The service_code is obtained from get_all_routes. Each port in the rotation includes day offset from route start, port name, and country. Vessel fleet lists all ships assigned to the service.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `service_code` | string | Yes | Service code of the route (e.g. 'FAL', 'AMERIGO', 'EGY3PF'). Obtain codes from the get_all_routes endpoint. |
| `service_desc` | string | No | Service description for better page matching. |
| `service_name` | string | No | Full service name for better page matching. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cma-cgm-com-api-bedb9477/get_route_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"service_code":"<string>","service_desc":"<string>","service_name":"<string>"}'
```
