Skip to main content
POST
Search flights with prices and times
  • Endpoint: googletravel.flights
  • Returns: data has url, currency, flights.
  • Cost: 3 credits. Failed calls cost nothing.
  • Paging: No.

Example

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
children
integer
default:0
Required range: 0 <= x <= 8
cabin
enum<string>
default:economy
Available options:
economy,
premiumEconomy,
business,
first
maxStops
integer
Required range: 0 <= x <= 2
currency
string
default:USD
language
string
default:en

BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.

Pattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,4})?$

Response

The data, and the credits this call used.

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