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/successAt provider cost
- Success rate
- 100%Last 30 days · 4,268 calls
- Latency p50
- 2.8 sp95 14 s
- Last verified
- Jul 28, 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 onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
answers arrive in `best_flights` and `other_flights`; `price_insights` gives the typical price range.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
type | string | Optional | 1 round trip (default) | 2 one way | 3 multi-city | 2 |
engine | string | Required | google_flights | |
currency | string | Optional | USD | |
arrival_id | string | Required | destination airport/location code | AUS |
return_date | string | Optional | YYYY-MM-DD, required when type=1 | |
departure_id | string | Required | origin airport/location code | CDG |
outbound_date | string | Required | YYYY-MM-DD | 2026-09-01 |
- Query parameters
typestringOptional1 round trip (default) | 2 one way | 3 multi-city
Example:
2enginestringRequiredExample:
google_flightscurrencystringOptionalExample:
USDarrival_idstringRequireddestination airport/location code
Example:
AUSreturn_datestringOptionalYYYY-MM-DD, required when type=1
departure_idstringRequiredorigin airport/location code
Example:
CDGoutbound_datestringRequiredYYYY-MM-DD
Example:
2026-09-01
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.015/success, including the service fee.