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

origin
string
required

IATA airport or city code of the origin

Length ≥ 3, ≤ 3 · Example YUL
destination
string
required

IATA airport or city code of the destination

Length ≥ 3, ≤ 3 · Example JFK
departure_date
string · date
required

Departure date in YYYY-MM-DD format

Example 2026-06-01
origin_type
string enum

Whether a location code refers to an airport or a city. Defaults to airport.

Values airportcity · Default "airport" · Example airport
destination_type
string enum

Whether a location code refers to an airport or a city. Defaults to airport.

Values airportcity · Default "airport" · Example airport
Example
{
  "origin": "YUL",
  "destination": "JFK",
  "departure_date": "2026-06-01",
  "origin_type": "airport",
  "destination_type": "airport"
}