compare_airport_prices
Compare flight prices from all major airports near a location to determine the cheapest departure airport for your trip. Get a price-sorted list to decide which airport to fly from.
Instructions
Find the cheapest departure airport for a trip by searching from all major airports near a location in parallel. Answers "Should I fly from East Midlands, Birmingham, or Manchester to Buenos Aires?".
Uses one API credit per airport searched (default 5, max 10). Results are sorted by cheapest price.
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 | |
| currency | No | Currency code (e.g. GBP, EUR, USD) | |
| location | Yes | Departure city or region to find nearby airports (e.g. 'Nottingham', 'Manchester', 'London') | |
| max_price | No | Maximum ticket price | |
| arrival_id | Yes | Arrival airport IATA code (e.g. EZE, SCL). Comma-separate for multiple. | |
| return_date | No | Return date for round-trips (YYYY-MM-DD) | |
| max_airports | No | How many nearby airports to compare (default 5) | |
| travel_class | No | 1=Economy, 2=Premium economy, 3=Business, 4=First | |
| outbound_date | Yes | Outbound date (YYYY-MM-DD) |