Route historical data range

Endpoints for accessing historical demand data between specific origin-destination pairs.

Get Route Demand History

get
/traveldemand/{product_dimension}/routes/history/{time_resolution}/{origin}/{destination}

Retrieves historical data for a specific flight route based on product dimension and time resolution.

This endpoint focuses on providing historical data for a specified route, identified by its origin and destination. The data is filtered by the given product dimension (e.g., search date or travel date) and the specified time resolution (e.g., weekly, monthly).

Parameters

  • product_dimension: Specifies the type of date (search_date or travel_date) for which the historical data is retrieved.

  • time_resolution: The granularity of the historical data, such as weekly or monthly.

  • origin: The 3-letter IATA code representing the city of origin.

  • destination: The 3-letter IATA code representing the city of destination.

Returns

  • RouteHistoryResponse: A response object containing the historical data for the specified route.

Authorizations
x-api-keystringRequired
Path parameters
product_dimensionstring · enumRequired

Defines the target product dimension for history and prediction data points.

Attributes

SEARCH : str Represents the 'search_date' dimension, indicating interest in the period when travelers are searching for their flights.

TRAVEL : str Represents the 'travel_date' dimension, indicating interest in the period when travelers will board their flights.

Possible values:
time_resolutionstring · enumRequired

Defines the granularity of time for predictions or historical data.

Attributes

MONTHLY : str Represents a monthly granularity, providing predictions or historical data aggregated on a monthly basis.

WEEKLY : str Represents a weekly granularity, offering predictions or historical data aggregated on a weekly basis.

Possible values:
originstring · min: 3 · max: 3RequiredPattern: [A-Z]{3}
destinationstring · min: 3 · max: 3RequiredPattern: [A-Z]{3}
Responses
get
/traveldemand/{product_dimension}/routes/history/{time_resolution}/{origin}/{destination}

Last updated