search_price_calendar
Compare outbound and return date combinations to find the cheapest week to fly. Input your departure and return date ranges to get sorted flight prices.
Instructions
Search a grid of outbound + return date combinations to find the cheapest week to fly. Answers "What's the cheapest combination of July departure and August return for LHR-JFK?".
Generates all (outbound, return) pairs from two date ranges (return must be after outbound), capped at 30 combinations searched in parallel. Returns results sorted by cheapest price with trip_days calculated.
Uses 1 API credit per date combination (max 30).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Country code | |
| hl | No | Language code | |
| stops | No | 0=Any, 1=Nonstop only, 2=1 stop or fewer, 3=2 stops or fewer | |
| adults | No | Number of adults | |
| currency | No | Currency code (e.g. GBP, EUR, USD) | |
| max_price | No | Maximum ticket price | |
| arrival_id | Yes | Arrival airport IATA code (e.g. JFK). Comma-separate for multiple. | |
| 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 | |
| return_date_to | Yes | End of return date range (YYYY-MM-DD) | |
| outbound_date_to | Yes | End of outbound date range (YYYY-MM-DD) | |
| return_date_from | Yes | Start of return date range (YYYY-MM-DD) | |
| outbound_date_from | Yes | Start of outbound date range (YYYY-MM-DD) |