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/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 4 268 calls
- Latency p50
- 2.8 sp95 14 s
- Last verified
- 28 juil. 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 onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
answers arrive in `best_flights` and `other_flights`; `price_insights` gives the typical price range.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
type | chaîne | Facultatif | 1 round trip (default) | 2 one way | 3 multi-city | 2 |
engine | chaîne | Obligatoire | google_flights | |
currency | chaîne | Facultatif | USD | |
arrival_id | chaîne | Obligatoire | destination airport/location code | AUS |
return_date | chaîne | Facultatif | YYYY-MM-DD, required when type=1 | |
departure_id | chaîne | Obligatoire | origin airport/location code | CDG |
outbound_date | chaîne | Obligatoire | YYYY-MM-DD | 2026-09-01 |
- Paramètres de requête
typechaîneFacultatif1 round trip (default) | 2 one way | 3 multi-city
Exemple :
2enginechaîneObligatoireExemple :
google_flightscurrencychaîneFacultatifExemple :
USDarrival_idchaîneObligatoiredestination airport/location code
Exemple :
AUSreturn_datechaîneFacultatifYYYY-MM-DD, required when type=1
departure_idchaîneObligatoireorigin airport/location code
Exemple :
CDGoutbound_datechaîneObligatoireYYYY-MM-DD
Exemple :
2026-09-01
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.015/success, frais de service inclus.