plan_multi_stop_trip
Plan multi-leg itineraries for holidays by searching each leg in parallel. Automatically resolves each stop to nearby airports and shows the cheapest flight per leg with alternatives.
Instructions
Plan a multi-leg trip by searching each leg in parallel. Ideal for internal/domestic routing within a multi-country holiday: "I'll be in Buenos Aires on Oct 17, want to visit Patagonia on Oct 23, then end in Santiago on Oct 28 — what are the cheapest flights?"
Each stop is resolved to nearby airports automatically (e.g. "Patagonia" → BRC, USH, FTE, PUQ, BBA). Uses 1 API credit per leg (N-1 credits for N stops). Returns the cheapest flight per leg plus up to 3 alternatives so you can compare specific airport options (e.g. cheapest into Patagonia might be BRC, but you can see FTE/El Calafate options too).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Country code | |
| hl | No | Language code | |
| trip | Yes | Ordered list of stops. Each stop needs a location and a departure date. The last stop is the final destination (its date is unused). | |
| stops | No | Connection stops filter: 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 price per leg | |
| travel_class | No | 1=Economy, 2=Premium economy, 3=Business, 4=First | |
| max_airports_per_stop | No | Max airports to consider per stop when resolving location names (default 4) |