dates command searches for the cheapest dates to fly between two airports within a specified date range. Perfect for flexible travelers looking for the best deals.
Syntax
Required arguments
ORIGIN- Departure airport IATA code (e.g., JFK, LAX, LHR)DESTINATION- Arrival airport IATA code
Options
Date range
Trip duration
Round-trip toggle
Airlines
Maximum stops
ANY(default) - Any number of stops0orNON_STOP- Non-stop flights only1orONE_STOP- Maximum one stop2+orTWO_PLUS_STOPS- Two or more stops
Cabin class
ECONOMY(default)PREMIUM_ECONOMYBUSINESSFIRST
Sort by price
Day of week filters
Filter results to only show flights departing on specific days of the week.Departure time window
START-END (e.g., 6-20 for 6 AM to 8 PM).
Default: Any time
Example:
Examples
Basic date search
Specific date range
Weekend getaway
Business class week-long trip
Non-stop flights sorted by price
Midweek departures with specific airlines
Morning flights for a long trip
Complete example with all filters
- Round-trip flights from JFK to LAX
- 5-day trips in October 2025
- Economy class, non-stop only
- American, Delta, or United only
- Friday or Saturday departures
- Daytime flights (8 AM - 6 PM)
- Results sorted by price
Output format
The command displays results with a price trend chart followed by a detailed table:- Departure date and day of week
- Price
- Return date and day of week
The price trend chart helps visualize the best times to fly within your date range.
Understanding results
One-way vs round-trip
One-way searches return individual departure dates with their prices. Round-trip searches return departure dates paired with return dates based on your specified duration. For example, with--duration 7, a departure on October 1st will show a return on October 8th.
Day filters
Day of week filters apply to the departure date only. For round-trip searches, the return date is automatically calculated based on the duration.Sorting
By default, results are shown in chronological order (earliest departure first). Use--sort to see the cheapest options first, regardless of date.