search_flights
Search for one-way or round-trip flights between airports with filters for dates, cabin class, stops, and price. Returns flight options with total fares.
Instructions
Search Google Flights (via SerpAPI) between two airports.
Args:
departure_id: Origin IATA airport code, e.g. "SEA". Multiple origins may
be comma-separated, e.g. "SEA,PDX".
arrival_id: Destination IATA airport code, e.g. "NRT".
outbound_date: Departure date as YYYY-MM-DD.
return_date: Return date as YYYY-MM-DD. Required when trip_type is
"round_trip"; ignored for "one_way".
trip_type: "round_trip" (default) or "one_way".
travel_class: Cabin class.
adults, children, infants_in_seat, infants_on_lap: Passenger counts.
stops: Filter by number of stops.
max_price: Maximum total price in currency.
currency: ISO 4217 currency code (default USD).
max_results: Cap on options returned per bucket (best / other).
deep_search: Slower, but matches google.com/travel/flights more precisely.
For a round trip, each option's price is the total round-trip fare and its
departure_token can be passed to get_return_flights to see return options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stops | No | any | |
| adults | No | ||
| children | No | ||
| currency | No | USD | |
| max_price | No | ||
| trip_type | No | round_trip | |
| arrival_id | Yes | ||
| deep_search | No | ||
| max_results | No | ||
| return_date | No | ||
| departure_id | Yes | ||
| travel_class | No | economy | |
| outbound_date | Yes | ||
| infants_on_lap | No | ||
| infants_in_seat | No |