Find the cheapest dates
search_flexible_datesScan a range of departure dates to compare prices and find the cheapest day to fly.
Instructions
Scan a range of departure dates and report the cheapest fare on each, to find when to fly. Runs one search per date, so keep ranges modest (a 14-day scan takes several minutes). For a single date with ±flexibility, use search_flights with flexDays instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | Minimum cabin. Default COACH. | |
| adults | No | ||
| origin | Yes | ||
| youths | No | ||
| endDate | Yes | Last departure date, YYYY-MM-DD. | |
| routing | No | Routing code applied to every leg. | |
| seniors | No | ||
| children | No | ||
| currency | No | ISO 4217, e.g. "USD", "EUR". | |
| maxDates | No | Cap on dates to probe. Default 10. | |
| maxStops | No | Stops allowed RELATIVE TO the minimum possible for the route (Matrix semantics), not absolute. 0 = only the shortest-hop routings. Default 1. | |
| salesCity | No | IATA city code for point of sale. Changes which fares are filed and offered — useful for finding cheaper origin-country pricing. | |
| startDate | Yes | First departure date, YYYY-MM-DD. | |
| destination | Yes | ||
| infantsInLap | No | ||
| infantsInSeat | No | ||
| tripLengthDays | No | Nights away for a round-trip. Omit or 0 for one-way. |