Search return flights
search_return_flightsUse after search_flights when the traveler wants a specific return, or the next leg of a multi-city trip (once per remaining leg). Takes an outbound itinerary_id; returns complete itineraries with the trip total, needs_leg false once the trip is whole. Filters apply to the leg being chosen. Not needed for an outbound watch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Order of results. | price |
| airlines | No | Only these marketing carriers, as IATA codes or names. | |
| max_stops | No | Most stops allowed: 0 nonstop, 1, or 2. | |
| max_results | No | How many results to return, 1-50. | |
| arrive_after | No | HH:MM, local time at that airport. | |
| depart_after | No | HH:MM, local time at that airport. | |
| itinerary_id | Yes | An outbound (or partial multi-city) itinerary_id from search_flights or a previous call. | |
| arrive_before | No | HH:MM, local time at that airport. | |
| depart_before | No | HH:MM, local time at that airport. | |
| max_price_usd | No | Highest fare to show, USD, as the TOTAL for all travelers together: for a per-person budget, multiply by travelers (2 people at $300 each = 600). Unlike bucket lists, whose price bar is per traveler. | |
| max_duration_hours | No | Longest itinerary to show, in hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | On an error: a machine-readable kind, e.g. unknown_place | |
| note | No | Guidance on totals and next step | |
| field | No | On unknown_place: which argument (origin, destination, ...) | |
| counts | No | priced, matching_filters, returned integers | |
| search | No | Route dict plus search_key, outbound_itinerary_id; multi-city adds leg_number, legs_total | |
| status | No | ok | no_data | error | sign_in_required | |
| filters | No | Filters as the caller gave them | |
| message | No | Error or sign-in message from the server wrapper | |
| outbound | No | Leg shape: airlines, stops, duration_minutes, segments, layovers | |
| track_url | No | Outbound handoff tracking link (round-trip path only) | |
| highlights | No | The spread over every matching return: cheapest, cheapest_nonstop, fastest, earliest, latest | |
| search_url | No | slicktrip.com search page link | |
| itineraries | No | Items: itinerary_id, price, return (round trip) or next_leg (multi-city) leg object, needs_leg | |
| legs_chosen | No | Multi-city only: leg objects chosen so far | |
| suggestions | No | On unknown_place: places to offer the traveler, each with code, name, kind (airport, all airports in the city, nearby airport), city, country | |
| places_assumed | No | Place names this call resolved on its own, e.g. 'Portland = Portland, OR (PDX)'; tell the traveler |