---
title: "Get ocean schedules and their CO₂e emissions for a port pair"
method: GET
path: "/itinerary/v2/execution"
tags: ["Schedules"]
---

# Get ocean schedules and their CO₂e emissions for a port pair

`GET /itinerary/v2/execution`

Gain the ability to choose the greenest or fastest option among upcoming vessel departures, selecting from the best available itineraries per carrier. 
This endpoint returns the possible itinerary and their CO₂e emissions in the near future, for a given carrier and a given port pair. 
The CO₂e emissions are returned in grams. 

### Input
Location of origin (`fromLocode`) and destination (`toLocode`), and carrier information (`carrierScac` or `carrierId`) are mandatory fields.

#### Dates

This endpoint takes two dates as input: `fromDate` and `toDate`. It represents the departure date range within which the endpoint will search for itineraries.
Passing the dates is optional. If no date is given, the endpoint will return itineraries sailing 7 days onwards after the current date.
Both dates should be passed using the ISO 8601 format.

#### Sorting
To get the results in order of preference, use the parameter `sortBy`. You can input `CO2` or `TRANSIT_TIME`, depending on your main interest.

### Response

The response is a list of `featureCollection`'s, where each feature collection is a possible itinerary.

The feature collection is made of:
- One or multiple features
A direct itinerary results in a feature collection made of only one feature.
An itinerary with transshipments results is a feature collection made of multiple features, each of it representing one leg.
- One hash
Each itinerary is associated to a unique fingerprint (called "hash") that you can use to retrieve the CO₂e breakdown and details of the itinerary via the /co2/v2/execution endpoint.
It will return the CO₂e breakdown (total, TTW, WTT, intensity values).

Each feature has its own properties, including details such as duration, departure and arrival dates, locations, distance, mode, service ID, asset (vessel) details, port of calls, total CO₂e emissions.

Results are given in the order of sorting requested (`CO2` or `TRANSIT_TIME`). If no `sortBy` is input, the sorting will be done on the CO₂e basis.

### Notes & considerations
- Hashes are not intended to be persisted or used as permanent references.

### Support endpoints and resources
- **Get CO₂e emissions for a given ocean schedule itinerary (by hash)**: use our [`/co2/v2/execution/{hash}`](/reference/getitineraryco2detailsbyhash) endpoint. 
- **Learn about our methodology**: visit the [Methodology for sea emissions calculation](/docs/co2-emissions-methodology) page.   
- **Understand how `weight` and `containerSizeTypeCode` impact calculations** across all transport modes: visit our [Weight and Container Guide](/docs/weight-and-containers-size-and-type).
- **Retrieve maritime carriers**: use our [Carriers endpoint](/reference/getcarrierbynameorscac) to search for carrier information based on SCAC codes or names.
- **Find locations**: access accurate data via our [Geocoding endpoint](/reference/getgeocodingall).
- **Explore the list of [Supported fields and values](/reference/container-size-type-codes)**.

## Query parameters

- `fromLocode` string, required
- `toLocode` string, required
- `carrierScac` string
- `carrierId` number
- `fromDate` string
- `toDate` string
- `nContainers` number
- `containerSizeTypeCode` string
- `weight` integer
- `sortBy` string

## Response `200`

OK

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.dev/searoutes/apis/geocoding.md) · [All operations](https://skmtc.dev/searoutes/apis/geocoding/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/searoutes/geocoding/revisions/59f769fc4f39/schema)
