Stopover

v1.0.1
com.flystopover/stopover Checked 1 day ago Published 15 days ago

Plans 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…

ParameterTypeDescription
cities *arrayThe 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 *stringThe last day the trip may end (the day back home), YYYY-MM-DD.
home *stringWhere the trip starts, and ends unless end_at is set: a city name or airport code, like "Dallas" or "DFW".
start_date *stringThe first day the trip may start, YYYY-MM-DD.
airlines_onlybooleantrue: 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_airlinesarrayAirlines not to fly, as names or two letter codes, like ["Ryanair", "W6"].
end_atstringWhere the trip finishes when it is not back home, like "Chicago" for a trip that starts in Dubai.
fixed_orderbooleantrue: visit the cities in the order listed, and only choose dates and flights. Default false, which lets the planner choose the order.
flexiblebooleantrue (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_onlybooleantrue: 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_daysintegerThe longest the whole trip may be, in days, when the window is wider than the trip should be. Only with flexible dates.
max_layover_hoursintegerThe longest layover allowed on a flight, in hours, 1 to 24.
max_stopsintegerThe most stops one flight may make: 0 for nonstop only, 1 or 2.
modestringWhat to optimize: cheapest (lowest total price), balanced (price and travel time, the default) or fastest.
must_be_inarrayNights that must be spent in a given city, like a wedding in Paris on 2027-06-14: [{"city": "Paris", "date": "2027-06-14"}].
nightsobjectNights in each city, as a range, like {"min": 2, "max": 4}. Without it the planner uses 2 to 4.
nights_by_cityarrayNights for particular cities, overriding nights for those cities, like [{"city": "Paris", "min": 3, "max": 3}].
protected_onlybooleantrue: only tickets sold as one booking, so a missed connection is the airline's problem. Leaves out self-transfer combinations. Default false.
travelersintegerHow 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.

ParameterTypeDescription
plan_id *stringA Stopover plan id (16 letters and digits) or a full plan link like https://flystopover.com/plan/<id>.