get_general_flights_info
Retrieve comprehensive flight information for any route, including multiple flight options with details on prices, stops, and durations. Specify origin, destination, departure date, and preferences to get tailored results.
Instructions
Get general/comprehensive flight information for N flights for a given origin, destination, and departure date. If the user wants to do a round-trip, you will need to make two one-way trip calls.
Args:
origin (str): The origin airport IATA code (ex: "ATL", "SCL", "JFK").
destination (str): The destination airport IATA code (ex: "DTW", "ICN", "LIR").
departure_date (str): The departure date in YYYY-MM-DD format.
trip_type (str, optional): The type of trip ("one-way" or "round-trip" only). Defaults to "one-way".
seat (str, optional): The type of seat ("economy", "premium-economy", "business", or "first" only). Defaults to "economy".
adults (int, optional): The number of adults. Defaults to 1.
children (int, optional): The number of children. Defaults to 0.
infants_in_seat (int, optional): The number of infants in a seat. Defaults to 0.
infants_lap (int, optional): The number of infants on a lap. Defaults to 0.
n_flights (int, optional): The number of flights to return. Defaults to 25.
Returns:
list[str]: A list of flight information strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | ||
| destination | Yes | ||
| departure_date | Yes | ||
| trip_type | No | one-way | |
| seat | No | economy | |
| adults | No | ||
| children | No | ||
| infants_in_seat | No | ||
| infants_on_lap | No | ||
| n_flights | No |