get_flexible_date_prices
Compare flight prices for days surrounding your departure and return to see if shifting dates saves money. Use when you have specific dates and want cheaper alternatives nearby.
Instructions
Compare prices for the days around a departure and an optional return.
Use when the user already has dates and asks whether shifting a day either
way would be cheaper. For one exact date use search_flights; for the
cheapest day across a whole month use get_prices_calendar. This covers
roughly a week around both the outbound and the return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Number of adult passengers, 1-9 (default 1). | |
| market | No | 2-letter market whose price cache to read. Defaults to the server's configured market. | |
| origin | Yes | Origin IATA code. | |
| infants | No | Number of infants under 2, 0-8 (default 0). | |
| children | No | Number of children 2-11 years, 0-8 (default 0). | |
| currency | No | Price currency (3 letters). Defaults to the server's currency. | |
| trip_class | No | "economy", "comfort", "business" or "first" (default "economy"). | economy |
| depart_date | Yes | Intended departure date (YYYY-MM-DD). Required. | |
| destination | Yes | Destination IATA code. | |
| return_date | No | Intended return date (YYYY-MM-DD). Omit for one-way. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||