get_prices_calendar
Compare fares by day or month for a known route to identify low-cost travel dates, one fare per day or month. Use it before booking to see which travel dates cost less.
Instructions
Get grouped calendar prices for a route, one fare per day or per month.
Use when the user asks which day or month is cheapest to fly a known route.
For fares on one specific date use search_flights; for a few days either
side of dates already chosen use get_flexible_date_prices. Codes are
IATA; use lookup_cities to resolve a name first.
Prices are per adult (cached); passenger parameters are encoded into each booking_link.
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 (e.g. "us", "ru"). Defaults to the server's configured market. | |
| origin | Yes | Origin IATA code. | |
| infants | No | Number of infants under 2, 0-8 (default 0). Cannot exceed the number of adults; the excess is trimmed. | |
| children | No | Number of children 2-11 years, 0-8 (default 0). Adults plus children cannot exceed 9; the excess is trimmed. | |
| currency | No | Price currency (3 letters). Defaults to the server's currency. | |
| group_by | No | Group results by "departure_at" or "month" (default "departure_at"). | departure_at |
| return_at | No | Return month (YYYY-MM). Optional. | |
| trip_class | No | "economy", "comfort", "business" or "first" (default "economy"). | economy |
| destination | Yes | Destination IATA code. | |
| departure_at | No | Departure month (YYYY-MM). Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||