search_flights_flexible
Compare flight prices across a range of dates to find the cheapest day to fly. Enter departure and arrival airports and a date range to see daily prices sorted by cost.
Instructions
Search for flights across a range of dates to find the cheapest day to fly. Returns one result per date sorted by price — ideal for answering "When's the cheapest time to fly to Tokyo in April?".
Uses one API credit per date searched (capped at 30 days). Failures on individual dates are returned as errors rather than failing the whole request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Country code | |
| hl | No | Language code | |
| type | No | 1=Round trip, 2=One way (default) | |
| stops | No | 0=Any, 1=Nonstop only, 2=1 stop or fewer, 3=2 stops or fewer | |
| adults | No | Number of adults | |
| date_to | Yes | End of date range to search (YYYY-MM-DD, max 30 days from date_from) | |
| currency | No | Currency code (e.g. GBP, EUR, USD) | |
| date_from | Yes | Start of date range to search (YYYY-MM-DD) | |
| max_price | No | Maximum ticket price | |
| arrival_id | Yes | Arrival airport IATA code (e.g. EZE). Comma-separate for multiple. | |
| return_date | No | Fixed return date (YYYY-MM-DD) for round-trip. Omit for one-way. | |
| departure_id | Yes | Departure airport IATA code (e.g. LHR). Comma-separate for multiple. | |
| travel_class | No | 1=Economy, 2=Premium economy, 3=Business, 4=First |