Search Flights (Aviasales)
aviasales.flights.searchSearch for flights between airports using IATA codes, with optional filters for destination, date, direct flights, and currency.
Instructions
Search for flights between airports
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Departure city or airport IATA code (e.g. MOW, JFK, BKK) | |
| destination | No | Arrival IATA code (omit to search all destinations) | |
| departure_date | No | Departure date in YYYY-MM-DD format (filters results to this date and later) | |
| direct_only | No | Only show non-stop flights (default false) | |
| currency | No | Currency code for prices (default usd) | |
| limit | No | Max number of results to return (default 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |