Google Travel
Google Travel flights API
Call the Google Travel flights API to get url, currency and flights, as JSON or markdown. 3 credits.
POST
Search flights with prices and times
- Endpoint:
googletravel.flights - Returns:
datahasurl,currency,flights. - Cost: 3 credits. Failed calls cost nothing.
- Paging: No.
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
IATA airport code, e.g. JFK. Any case is accepted.
Pattern:
^[A-Za-z]{3}$IATA airport code, e.g. JFK. Any case is accepted.
Pattern:
^[A-Za-z]{3}$Pattern:
^\d{4}-\d{2}-\d{2}$Pattern:
^\d{4}-\d{2}-\d{2}$Required range:
1 <= x <= 9Required range:
0 <= x <= 8Available options:
economy, premiumEconomy, business, first Required range:
0 <= x <= 2BCP 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})?$