Flight Listing
fetch-flightsFull Description
Fetch the flight listing for the given departure city and destination city
Parameters (4 required, 8 optional)
departureCityCodestringDeparture city code (e.g., DEL, BOM)
departureDatestringDeparture date in YYYYMMDD format (e.g., 20260116)
destinationCityCodestringDestination city code (e.g., DEL, BOM)
promptstringUser given prompt
adultsnumberNumber of adults
1cabinClassstringCabin class E is Economy, PE is Premium Economy, and B is Business (e.g., E, PE, B)
EchildrennumberNumber of children
0filtersobjectFilters to apply to flight search results. Do not include a filter if the user does not want to filter the flights or the user just wants to sort the results
infantsnumberNumber of infants
0isRoundTripbooleanWhether the flight is a round trip or one-way
FalsereturnDatestringReturn date in YYYYMMDD format (e.g., 20260116). Required only if the flight is a round trip. If not provided, the flight will be a one-way trip.
sorterstringSort order: Cheapest or Fastest. when asked for price, it is for cheapest and for duration, it is for fastest
CheapestFastestCheapest