flightdata

v0.1.0
io.github.CloudCorpRecords/flightdata Checked 2 days ago Published 23 days ago

Google Flights search as JSON: itineraries, prices, times, stops and emissions filters.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

hasdata_google_travel_flights_getGoogleFlights google_travel_flights: GET /

Get Google Flights Results Searches Google Flights for one-way, round-trip, or multi-city itineraries with passenger mix (adults, children, infants in-seat/on-lap), travel class, bags, max price, sort order (price, duration, emissions, departure/arrival time), stops, include/exclude airlines and connections, time windows, layover duration, and deep-search mode. Returns per-itinerary price, total duration, stops, flight legs with airline, flight number, aircraft, departure/arrival airports and times, CO2 emissions, plus booking and departure tokens for round-trip returns or booking options. Us…

ParameterTypeDescription
arrivalId *stringSpecifies the arrival airport code (IATA) or location kgmid. - **IATA Code**: A 3-letter uppercase code (e.g., `SFO` for San Francisco, `LHR` for London Heathrow). Search on [IATA](https://www.iata…
departureId *stringSpecifies the departure airport code (IATA) or location kgmid. - **IATA Code**: A 3-letter uppercase code (e.g., SFO for San Francisco, LHR for London Heathrow). Search on [IATA](https://www.iata.o…
outboundDate *stringThe outbound travel date in 'yyyy-MM-dd' format.
adultsnumberNumber of adult passengers (>= 1 if specified).
bagsnumberNumber of carry-on bags per passenger.
bookingTokenstringUsed to request booking options for selected flights. This token is found in the flight results and cannot be used with `departureToken`.
childrennumberNumber of child passengers.
currencystringParameter defines the currency of the returned prices Provide one exact documented value (71 allowed), e.g. `ALL`, `DZD`.
deepSearchbooleanEnable deep search. Returns the same results as Google Flights in a browser, but takes longer to respond. Default is `false`.
departureTokenstringUsed to select a flight and retrieve return flights for a round trip or the next leg of the itinerary for a multi-city trip.
excludeAirlinesstringA comma separated list of airline codes to exclude from results. You can search for airline codes on [IATA](https://www.iata.org/en/publications/directories/code-search). For example, `UA` is United A…
excludeConnectionsstringA comma separated list of specific airports to exclude as connections.
glstringThe two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`.
hlstringThe two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`.
includeAirlinesstringA comma separated list of airline codes to exclusively include in results. You can search for airline codes on [IATA](https://www.iata.org/en/publications/directories/code-search). For example, `UA` i…
includeConnectionsstringA comma separated list of specific airports to allow as connections.
infantsInSeatnumberNumber of infants occupying seats.
infantsOnLapnumberNumber of infants sitting on an adult's lap.
layoverDurationstringSet the maximum layover duration in minutes to filter flights. For example, `120, 360` filters layovers between 2 hours and 6 hours, while `45, 180` allows layovers from 45 minutes to 3 hours.
lessEmissionsbooleanPrefer flight options with lower carbon emissions.
maxDurationnumberThe maximum total flight duration in minutes.
maxPricenumberMaximum price limit for the flight search, in the selected currency.
multiCityJsonstringThis parameter specifies flight details for multi-city trips. It is a JSON string containing multiple flight objects. Each object must include the following fields: - **departureId** – The departur…
outboundTimesstringSet up to 4 time boundaries (2 for departure, 2 for arrival) to filter flights. Each number represents the start of an hour. Examples: - `6,20` → 6:00 AM - 9:00 PM departure - `1,15` → 1:00 A…
returnDatestringThe return travel date in 'yyyy-MM-dd' format. Required when **type** is `roundTrip`.
returnTimesstringSet up to 4 time boundaries (2 for departure, 2 for arrival) to filter return flights. Each number represents the start of an hour. Examples: - `6,20` → 6:00 AM - 9:00 PM departure - `1,15` →…
showHiddenbooleanIndicates whether to include hidden options in the results.
sortBystringSort the flight results based on price, departure time, arrival time, etc.
stopsstringRestrict the number of stops (layovers) in the flight itinerary.
travelClassstringThe travel class for the flight (Economy, Premium Economy, Business, or First).
typestringSpecifies the type of flight. Options: - `roundTrip` (default) - `oneWay` - `multiCity` (requires `multiCityJson` for flight details) For round trips, retrieve return flight details with a sep…