Search flights
search_flightsFind live public Google Flights fares by origin and destination across a date window or flexibility range, returning real priced itineraries for trip planning.
Instructions
Search live public Google Flights fares across a short date window.
origin and destination take an IATA code or a city name. Defaults are 1 adult, economy, CHF. A planner can ask for one day, a few days around that day, or a from/to window such as a week. The price is the integer Google returned. This tool does not invent a fare, a flight number, or a bag rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | Seat cabin. | economy |
| adults | No | Adults, 1 to 9. Children are not supported. | |
| nights | No | Stay length in nights. The return date is each departure plus this many days. Do not combine with return_date. | |
| origin | Yes | IATA airport or city code (ZRH, BCN, NYC) or a city or airport name (Zurich, Barcelona). | |
| nonstop | No | When true, only nonstop itineraries. | |
| currency | No | ISO 4217 currency Google Flights can price in. Default CHF. | CHF |
| depart_to | No | Last departure date of a window, inclusive. At most 7 dates are searched; a longer window is sampled and the rest are listed as not searched. | |
| depart_date | No | Departure date YYYY-MM-DD. Use this, optionally with flexibility_days. Do not combine it with depart_from and depart_to. | |
| depart_from | No | First departure date of a window, inclusive. Pair with depart_to. | |
| destination | Yes | IATA airport or city code (ZRH, BCN, NYC) or a city or airport name (Zurich, Barcelona). | |
| max_results | No | How many itineraries to return, at most 20. | |
| return_date | No | Fixed return date YYYY-MM-DD. Omit for one-way. Do not combine with nights. | |
| flexibility_days | No | Days before and after depart_date. 0 searches that day only. Not used with a from/to window. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| cabin | Yes | ||
| count | Yes | ||
| notes | Yes | ||
| picks | Yes | ||
| adults | Yes | ||
| cached | Yes | ||
| nights | Yes | Length of stay applied to each departure, when requested. | |
| origin | Yes | ||
| source | Yes | ||
| flights | Yes | ||
| nonstop | Yes | ||
| currency | Yes | ||
| depart_to | Yes | ||
| search_url | Yes | Google Flights search for the first date that was actually queried. | |
| depart_date | Yes | The depart_date argument when the search was anchored on one day, with or without flexibility. Null when the search used depart_from and depart_to. | |
| depart_from | Yes | ||
| destination | Yes | ||
| origin_name | Yes | ||
| return_date | Yes | Fixed return date, when one was requested. Null for one-way or when nights varies the return. | |
| dates_searched | Yes | ||
| destination_name | Yes | ||
| dates_not_searched | Yes | Dates inside the requested window that were not queried, because of the 7-date cap or the timeout. |