API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
query_slice
A single journey search criteria (e.g., outbound or inbound).
Fields
originstring
required
IATA airport or city code of the origin
Length ≥ 3, ≤ 3 · Example
YULdestinationstring
required
IATA airport or city code of the destination
Length ≥ 3, ≤ 3 · Example
JFKdeparture_datestring · date
required
Departure date in YYYY-MM-DD format
Example
2026-06-01origin_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportdestination_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportExample
{
"origin": "YUL",
"destination": "JFK",
"departure_date": "2026-06-01",
"origin_type": "airport",
"destination_type": "airport"
}