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/successプロバイダー原価
- Success rate
- 100%Last 30 days · 4,268 calls
- Latency p50
- 2.8 sp95 14 s
- Last verified
- 2026/07/28Verified 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 online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
answers arrive in `best_flights` and `other_flights`; `price_insights` gives the typical price range.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
type | 文字列 | 任意 | 1 round trip (default) | 2 one way | 3 multi-city | 2 |
engine | 文字列 | 必須 | google_flights | |
currency | 文字列 | 任意 | USD | |
arrival_id | 文字列 | 必須 | destination airport/location code | AUS |
return_date | 文字列 | 任意 | YYYY-MM-DD, required when type=1 | |
departure_id | 文字列 | 必須 | origin airport/location code | CDG |
outbound_date | 文字列 | 必須 | YYYY-MM-DD | 2026-09-01 |
- クエリパラメータ
type文字列任意1 round trip (default) | 2 one way | 3 multi-city
例:
2engine文字列必須例:
google_flightscurrency文字列任意例:
USDarrival_id文字列必須destination airport/location code
例:
AUSreturn_date文字列任意YYYY-MM-DD, required when type=1
departure_id文字列必須origin airport/location code
例:
CDGoutbound_date文字列必須YYYY-MM-DD
例:
2026-09-01
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.015/success です。サービス料を含みます。