Search flights
search_flightsSearch Google Flights for named routes and dates, compare fares, filter stops, cabins, and airlines, and return prices with booking links.
Instructions
Google Flights search for named routes and dates. Each routes entry is ORIGIN-DEST:YYYY-MM-DD. Use search_dates for the cheapest week and search_flex for +/-N days. fetch=detail needs the browser extra and Chromium. Currency is currency, or inferred from a named origin's owned country; if unproven, ask. Viajante does not convert. Do not invent a bag fee. max_stops is 0, 1 or 2. Metro codes (LON, NYC) expand on one-way and rt routes. One-way searches send clock bounds, max_duration, max_layover, price_cap, less_emissions and hide_separate_tickets to the page, and check each one locally. exclude_basic_economy is refused. nearby_days (default 0, off) adds a ±N cheapest-fare grid on that search; round trips shift both dates and keep the trip length. The grid reuses the date calendar and does not change offers. A successful query carries price_insight when the page states a level (low, typical, or high) that matches its heading. That level is Google's label for the current price against its typical range, not a forecast. include_price_history adds the page's own price history and is off by default. A successful query may carry recommendation: evidence, not a verdict. Check relaxed_requirements before calling it a match. After a named hub or leisure trunk, search_hidden_city may run once with the same route and date, never when bags were named. Rules and wording: get_guide.
deadline_seconds stops starting queries after that many seconds; unfinished
queries are error code deadline (not loaded, not empty). See get_guide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| via | No | ||
| bags | No | ||
| sort | No | ranked | |
| trip | No | one-way | |
| cabin | No | economy | |
| fetch | No | auto | |
| proxy | No | ||
| adults | No | ||
| nearby | No | ||
| routes | Yes | ||
| country | No | ||
| airlines | No | ||
| alliance | No | ||
| carry_on | No | ||
| children | No | ||
| currency | No | ||
| max_stops | No | ||
| price_cap | No | ||
| exclude_via | No | ||
| max_layover | No | ||
| min_layover | No | ||
| nearby_days | No | ||
| arrive_after | No | ||
| depart_after | No | ||
| max_duration | No | ||
| no_overnight | No | ||
| arrive_before | No | ||
| depart_before | No | ||
| depart_window | No | ||
| baggage_buffer | No | ||
| infants_on_lap | No | ||
| less_emissions | No | ||
| infants_in_seat | No | ||
| deadline_seconds | No | ||
| exclude_airlines | No | ||
| exclude_airports | No | ||
| exclude_alliance | No | ||
| include_airports | No | ||
| require_overnight | No | ||
| exclude_basic_economy | No | ||
| hide_separate_tickets | No | ||
| include_price_history | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| empty_note | Yes | ||
| error_code | Yes | ||
| observed_at | Yes | ||
| retry_after | Yes | ||
| completeness | Yes | ||
| empty_reason | Yes | ||
| observed_at_basis | Yes | ||
| retry_after_seconds | Yes |