Flights Command Guide
Learn how to use the flights slash command to search for flight options
Using The Flights Command
The /flights
command helps you search for flights across multiple airlines and routes. Perfect for:
- Finding the best flight deals
- Comparing route options
- Checking flight schedules
- Planning multi-city trips
- Analyzing carbon emissions
Basic Usage
Just tell the command where and when you want to fly:
You can be flexible with how you say it - “leaving”, “depart”, “return”, “back” all work!
Required Parameters
from
: The city you’re departing fromto
: The city you’re traveling towhen
,date
, ordates
: When you want to travel- Specific date: May 15
- Day of week: next friday, this weekend
- Date range: May 1-7, next week
Optional Parameters
Trip Type and Dates
type
: Flight type1
: Round trip (default)2
: One way3
: Multi-city
outbound_date
: Departure date (YYYY-MM-DD)return_date
: Return date (YYYY-MM-DD), required for round trips
Passenger and Class Options
travel_class
: Cabin class1
: Economy (default)2
: Premium economy3
: Business4
: First
adults
: Number of adult passengers (default: 1)children
: Number of child passengers (default: 0)
Regional Settings
currency
: Currency code for prices (default: USD)gl
: Country code for search (e.g., us, uk)hl
: Language code (e.g., en)
Advanced Filters
Route Options
stops
: Stop preferences- Any number of stops (default)
- Nonstop only
- 1 stop or fewer
- 2 stops or fewer
max_duration
: Maximum flight duration in minutes
Airline and Price Filters
include_airlines
: Specific airlines to includeexclude_airlines
: Airlines to excludemax_price
: Maximum ticket price in specified currency
Note: For power users, you can also use airport codes (like JFK, LAX) or location IDs instead of city names.
Example Commands
Simple round trip:
One-way business class:
Advanced filtered search:
Response Information
The command returns comprehensive flight details including:
- Best flight options with pricing
- Alternative flight choices
- Price insights and typical ranges
- Carbon emissions data
- Airport and airline details
- Flight duration and layover information
- Travel class amenities
- Delay statistics
Each flight result includes:
- Detailed departure and arrival information
- Aircraft type and airline
- Class-specific features
- Carbon footprint comparison
- Price analysis
- Connection details (if applicable)
Tips for Best Results
- Use IATA codes when possible for more precise results
- Include dates for more accurate pricing
- Specify cabin class and passenger counts for proper availability
- Use advanced filters to narrow down options
- Consider using the stops parameter for routing preferences
- Check carbon emissions data for environmentally conscious booking
Error Resolution
If the command returns an error:
- Verify all required parameters are provided
- Check date formats (YYYY-MM-DD)
- Ensure IATA codes are valid
- Confirm return date is included for round trips
- Verify currency and country codes are valid