Skip to main content

Flights query object

The query object is used when querying the flights autosuggest endpoint.

Layout

query object
├── market
├── locale
├── searchQuery
├── limit
├── isDestination
├── includedEntityTypes

Description

Market and locale are the only required parameters.

Omitting the searchQuery will return a list of popular results. Including the query will return a list of places matches the input query string.

ParameterDescriptionExampleDefault
marketThe market/country your user is inUKRequired
localeThe locale you want the results in (ISO locale)en-GBRequired
searchQueryThe query string you wish to search forGBPn/a
limitThe number of entities in response, default is 10, min is 1, max is 502010
isDestinationWhether to sort the results for origin or for destinationtruefalse
includedEntityTypesFilter the results by one or all of [Nation, Territory, City, Airport] (array input, case sensitive)[Nation, Territory, City, Airport]All included

For includedEntityTypes note that an array input is required.

Here is a sample of a query object:

{
"market": "UK",
"locale": "en-GB",
"searchQuery": "united",
"limit": 10,
"includedEntityTypes": ["Nation", "City"],
"isDestination": true
}