Stopover
v1.0.1Plans multi-city trips: the cheapest order of cities, the dates, and flights or trains for each leg.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plan_trip Plan a multi-city trip
Use this when someone asks which order to visit several cities in, the cheapest way to see them, or the cheapest dates and flights for a multi-city trip (for example: Dallas to Lisbon, Madrid and Paris in May, what order?). Plans a multi-city trip with Stopover. Given a home city, 2 to 7 cities to visit and a date window, it prices every order of the cities and finds the one that costs least (or balances price and travel time, or is fastest), with the dates and the flight or train for each leg. Fares come from free sources (Kiwi.com, Ryanair and recently seen fares) and are estimates at the ti…
| Parameter | Type | Description |
|---|---|---|
cities * | array | The 2 to 7 cities to visit, as city names or airport codes, like ["Lisbon", "Madrid", "Paris"]. Any order unless fixed_order is true. |
end_date * | string | The last day the trip may end (the day back home), YYYY-MM-DD. |
home * | string | Where the trip starts, and ends unless end_at is set: a city name or airport code, like "Dallas" or "DFW". |
start_date * | string | The first day the trip may start, YYYY-MM-DD. |
airlines_only | boolean | true: book with airlines only. Leaves out fares sold by booking sites like Kiwi.com, so every ticket is bought from the airline and no link goes to a booking site. Default false. |
avoid_airlines | array | Airlines not to fly, as names or two letter codes, like ["Ryanair", "W6"]. |
end_at | string | Where the trip finishes when it is not back home, like "Chicago" for a trip that starts in Dubai. |
fixed_order | boolean | true: visit the cities in the order listed, and only choose dates and flights. Default false, which lets the planner choose the order. |
flexible | boolean | true (the default): the trip may start and end on any days inside the window, chosen for price. false: leave on start_date and come back on end_date exactly. |
flights_only | boolean | true: flights only, no trains or buses between cities. Default false, which lets a train or bus take a leg when it is the better buy. |
max_days | integer | The longest the whole trip may be, in days, when the window is wider than the trip should be. Only with flexible dates. |
max_layover_hours | integer | The longest layover allowed on a flight, in hours, 1 to 24. |
max_stops | integer | The most stops one flight may make: 0 for nonstop only, 1 or 2. |
mode | string | What to optimize: cheapest (lowest total price), balanced (price and travel time, the default) or fastest. |
must_be_in | array | Nights that must be spent in a given city, like a wedding in Paris on 2027-06-14: [{"city": "Paris", "date": "2027-06-14"}]. |
nights | object | Nights in each city, as a range, like {"min": 2, "max": 4}. Without it the planner uses 2 to 4. |
nights_by_city | array | Nights for particular cities, overriding nights for those cities, like [{"city": "Paris", "min": 3, "max": 3}]. |
protected_only | boolean | true: only tickets sold as one booking, so a missed connection is the airline's problem. Leaves out self-transfer combinations. Default false. |
travelers | integer | How many people travel together on the same flights, 1 to 9. Default 1. Prices are given per person and for the group. |
get_plan Get a saved Stopover plan
Looks up a Stopover trip plan by its plan id or flystopover.com plan link and returns the same summary plan_trip gives: the order, dates, total per person, each leg with booking links, and the plan page link. Read only: it never starts a new search. When the plan is still being priced it waits up to a minute for it.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | A Stopover plan id (16 letters and digits) or a full plan link like https://flystopover.com/plan/<id>. |