Skip to main content
POST
Search flights with prices and times
Searches flights with prices and times.

Request

origin, destination and departDate are required.

Response

If successful, the response body contains the standard envelope. data.results[] contains the flight options, each with its price, airlines, stops, times and legs. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

This method is not paginated. A single request returns the complete result.
  • Google Hotels: Accepts a leg’s destinationName as query. Searches Google Hotels with prices, ratings and Google’s own filters.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
origin
string
required

IATA airport code, e.g. JFK. Any case is accepted.

Pattern: ^[A-Za-z]{3}$
destination
string
required

IATA airport code, e.g. JFK. Any case is accepted.

Pattern: ^[A-Za-z]{3}$
departDate
string
required
Pattern: ^\d{4}-\d{2}-\d{2}$
returnDate
string
Pattern: ^\d{4}-\d{2}-\d{2}$
adults
integer
default:1
Required range: 1 <= x <= 9
cabin
enum<string>
default:economy
Available options:
economy,
premiumEconomy,
business,
first
stops
enum<string>
default:any

Google Flights' Stops filter.

Available options:
any,
nonstop,
oneStopOrFewer,
twoStopsOrFewer
airlines
string[]

Google Flights' Airlines filter, as airline codes like KQ or EK.

Maximum array length: 10
Pattern: ^[A-Z0-9]{2}$
carryOnBags
integer
default:0

Google Flights' Bags filter: prices include this many carry-on bags.

Required range: 0 <= x <= 1
checkedBags
integer
default:0

Google Flights' Bags filter: prices include this many checked bags.

Required range: 0 <= x <= 2
maxPrice
integer

Google Flights' Price filter, in USD for all adults.

Required range: x <= 9007199254740991
departureTime
object

Google Flights' Times filter for the outbound departure.

arrivalTime
object

Google Flights' Times filter for the outbound arrival.

maxDurationHours
integer

Google Flights' Duration filter.

Required range: 1 <= x <= 48

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required