Google Flights 搜索 API
Search Google Flights between two airports on a date and get about 20 itineraries: price, airline, stops, total duration, CO2 emissions against the typical figure for the route, and every leg's airline code, flight number, airports, local departure and arrival times and duration, as normalized JSON. Filter by cabin class, stops, airlines and maximum price. One-way searches return the total fare for all passengers. With a returnDate, each result is an outbound option priced at the cheapest round trip that starts with it (priceType round_trip_starting); the return flights are not included.
价格与服务商
Google Flights 搜索 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-04 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
这个接口没有公开的字段。
响应
JSON,每个字段一个示例值。
这个接口没有公开的字段。
常见问题
关于 Google Flights 搜索 API
AnyAPI 的 Google Flights 搜索 API 只需一次 POST 请求 /v1/run/google_flights.search,就以统一格式的 JSON 返回 Google Flights 数据。Search Google Flights between two airports on a date and get about 20 itineraries: price, airline, stops, total duration, CO2 emissions against the typical figure for the route, and every leg's airline code, flight number, airports, local departure and arrival times and duration, as normalized JSON. Filter by cabin class, stops, airlines and maximum price. One-way searches return the total fare for all passengers. With a returnDate, each result is an outbound option priced at the cheapest round trip that starts with it (priceType round_trip_starting); the return flights are not included.AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Google Flights 搜索 API 调用中有 100.0% 成功,响应时间中位数为 5.6 秒,共测量 1 次调用。