Google Flights itineraries by route and date — prices
serpapi.x.google-flightsLive Google Flights results — best/other flights, price insights, for a route and date
- Price
- $0.015/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 4.268 calls
- Latency p50
- 2.8 sp95 14 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.x.google-flights?type=2&engine=google_flights&arrival_id=AUS&departure_id=CDG&outbound_date=2026-09-01PreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
answers arrive in `best_flights` and `other_flights`; `price_insights` gives the typical price range.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
type | string | Opcional | 1 round trip (default) | 2 one way | 3 multi-city | 2 |
engine | string | Obrigatório | google_flights | |
currency | string | Opcional | USD | |
arrival_id | string | Obrigatório | destination airport/location code | AUS |
return_date | string | Opcional | YYYY-MM-DD, required when type=1 | |
departure_id | string | Obrigatório | origin airport/location code | CDG |
outbound_date | string | Obrigatório | YYYY-MM-DD | 2026-09-01 |
- Parâmetros de consulta
typestringOpcional1 round trip (default) | 2 one way | 3 multi-city
Exemplo:
2enginestringObrigatórioExemplo:
google_flightscurrencystringOpcionalExemplo:
USDarrival_idstringObrigatóriodestination airport/location code
Exemplo:
AUSreturn_datestringOpcionalYYYY-MM-DD, required when type=1
departure_idstringObrigatórioorigin airport/location code
Exemplo:
CDGoutbound_datestringObrigatórioYYYY-MM-DD
Exemplo:
2026-09-01
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.x.google-flights?type=2&engine=google_flights&arrival_id=AUS&departure_id=CDG&outbound_date=2026-09-01' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.x.google-flights?type=2&engine=google_flights&arrival_id=AUS&departure_id=CDG&outbound_date=2026-09-01",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/serpapi.x.google-flights?type=2&engine=google_flights&arrival_id=AUS&departure_id=CDG&outbound_date=2026-09-01", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.015/success, incluindo a taxa de serviço.