Show Flight Carousel
search_flightsFull Description
Purpose:
- Search for flights on EaseMyTrip with comprehensive filtering options including origin, destination, dates, passengers, cabin class, stops, time windows, and special fare types.
Parameters (Fields):
- origin (string, required): Origin airport IATA code. Examples: 'DEL' for Delhi, 'BOM' for Mumbai, 'BLR' for Bangalore.
- If You Donot have Airport code Ask From user.
- destination (string, required): Destination airport IATA code. Examples: 'BOM' for Mumbai, 'DEL' for Delhi, 'MAA' for Chennai.
- outboundDate (string, required): Outbound flight date in YYYY-MM-DD format. Example: '2024-12-25'.
- returnDate (string | null, optional): Return flight date in YYYY-MM-DD format for round-trip. Set null/omit for one-way. Example: '2024-12-30'.
- adults (integer, default: 1): Number of adults (12+). Range 1-9.
- children (integer, default: 0): Number of children (2-11). Range 0-8.
- infants (integer, default: 0): Number of infants (<2). Range 0-8; cannot exceed adults.
- cabin (string | null, optional): Cabin class 'economy', 'premium economy', 'business', 'first'.
- stops (integer | null, optional): Max stops: 0=non-stop, 1=max 1 stop, 2=max 2 stops. Omit for no preference.
- fastest (boolean | null, optional): true if user asks for fastest/shortest/quickest flights.
- refundable (boolean | null, optional): true to show only refundable options, false for non-refundable only; omit for all.
- departureTimeWindow (string, default '00:00-24:00'): Preferred departure range 'HH:MM-HH:MM'; accepts natural terms like morning/afternoon/evening/night/early morning or loose ranges like '6am-11am'.
- arrivalTimeWindow (string, default '00:00-24:00'): Preferred arrival range 'HH:MM-HH:MM'; accepts natural terms like morning/afternoon/evening/night/early morning or loose ranges like '5pm-9:30pm'.
- fareType (integer, default: 0): Special fare category. 0=Standard, 1=Defence/Armed Forces, 2=Student, 3=Senior Citizen (60+), 4=Doctor/Nurse.
Parameters (3 required, 13 optional)
destinationstringDestination airport code (e.g., 'BOM' for Mumbai, 'DEL' for Delhi)
originstringOrigin airport code (e.g., 'DEL' for Delhi, 'BOM' for Mumbai)
outboundDatestringOutbound flight date in YYYY-MM-DD format
adultsintegerNumber of adults (1-9). Cannot be null or None, defaults to 1.
1arrivalTimeWindowstringPreferred arrival time window in 24-hour format 'HH:MM-HH:MM'. Accepts natural phrases (morning/late morning/afternoon/evening/night/early morning) or loose inputs like '5pm-9:30pm'. Defaults to '00:00-24:00' (no restriction).
00:00-24:00cabinstringCabin preference like economy, premium economy, business, or first
nullchildrenintegerNumber of children (0-8). Cannot be null or None, defaults to 0.
0departureTimeWindowstringPreferred departure time window in 24-hour format 'HH:MM-HH:MM'. Accepts natural phrases (morning/late morning/afternoon/evening/night/early morning) or loose inputs like '6am-11am'. Defaults to '00:00-24:00' (no restriction).
00:00-24:00fareTypeintegerTake this necessary field for fare type selection if user has specified any preference- defence, student, senior citizen, doctor/nurse. Fare type code: 0 is standard (default), 1 is for <defence/armed forces (army people)>, 2 is for student traveller, 3 is for senior citizen (people above 60 year old), 4=doctor/nurse (basically healtcare professionals).
0fastestbooleanIf the user asks for fastest/shortest/quickest flights, set this to true, don't skip it otherwise
nullflightNamesarrayFilter by exact airline names (case-insensitive). Accepts a single name or list. Examples: <IndiGo>, <Air India Express>, <Air India>, SpiceJet, AkasaAir, Qatar Airways, Emirates Airlines, Etihad Airways.
nullinfantsintegerNumber of infants (0-8). Cannot be null or None, defaults to 0.
0pageintegerPage number for pagination (1-indexed)
1refundablebooleanSet true to show only refundable options, false for non-refundable. Omit for no preference.
nullreturnDatestringReturn flight date in YYYY-MM-DD format (optional for one-way)
nullstopsintegerFlight stop preference only if specified: 0(for non-stop), 1(stop), or 2(stops)
null