search_flights
Search real-time flight prices and schedules from 800+ airlines between two cities. Filter by date, cabin class, stops, and passengers to find and compare airfares.
Instructions
Search airline flights / airfares between two cities by date, cabin class (economy / premium economy / business / first), and number of passengers. Returns available flights from 800+ airlines (Duffel) with real-time pricing, schedules, and stops. Uses IATA airport codes (e.g., MIA, JFK, LAX, LHR). Use this when the user wants to book a flight, fly somewhere, find airfare, or compare airlines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | IATA origin airport code (e.g., 'MIA', 'JFK', 'LAX') | |
| destination | Yes | IATA destination airport code | |
| departure_date | Yes | Departure date (YYYY-MM-DD) | |
| return_date | No | Return date for round-trip (YYYY-MM-DD). Omit for one-way. | |
| passengers | No | Number of passengers (1-9, default: 1) | |
| cabin_class | No | Cabin class (default: economy) | |
| max_price_usd | No | Maximum total price in USD | |
| nonstop_only | No | Only show nonstop flights (default: false) |