faregrid

v0.1.0
io.github.CloudCorpRecords/faregrid Checked 4 days ago Published 1 month ago

Search one-way and round-trip flight fares across dates and destinations, with price verdicts.

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

search_oneway_flights FlightPowers: search one-way flights

FlightPowers one-way fare search: live prices read from Google Flights. Input: origin and destination IATA codes -- the destination may be several codes, as "BCN,LIS,ATH" or ["BCN","LIS","ATH"] -- plus either one departure date or a date range. Returns each flight's price, airline, duration, stops, a bookable buy_link, and Google's historical price range (price_insights_low / price_insights_high), the band that shows whether a fare is actually a good deal. Suited to any one-way fare question, including open-ended ones. One call accepts a date range and several destinations and searches every…

ParameterTypeDescription
from_airport *stringOrigin IATA code, e.g. "TLV". One origin per search; a second one is refused rather than searched.
to_airport *Destination airport. One IATA code ("BCN"), several separated by commas ("BCN,LIS,ATH"), or a list (["BCN","LIS","ATH"]) -- every shape is accepted and the destinations are compared in the same search…
airline_codesRestricts the search to these airline codes, e.g. ["LY"].
arrival_time_maxLatest arrival hour, 0-23.
arrival_time_minEarliest arrival hour, 0-23.
currencystringISO currency code, default "usd".
departure_dateSingle departure date, "YYYY-MM-DD".
departure_date_fromFirst date of a departure range.
departure_date_toLast date of a departure range.
departure_time_maxLatest departure hour, 0-23.
departure_time_minEarliest departure hour, 0-23.
exclude_airline_codesAirline codes left out of the results.
limitintegerMaximum flights to return, after merging and sorting.
max_priceOnly flights at or below this price are returned.
max_searchesThe searches this call may make, up or down. Unset is the normal behaviour: with the caller's own key the cap covers the request when the request is reasonable (a whole month at three trip lengths is…
max_stopsMaximum stops per flight. 0 means non-stop only.
passengersOne entry per traveller, not a count: 1 adult, 2 child (aged 2-11), 3 infant on lap, 4 infant in seat, e.g. [1, 1, 2] for two adults and a child. At least one adult, each infant on lap needs its own a…
seat_type1 economy, 2 premium economy, 3 business, 4 first.
sort_bystring"best" (the default) and "price" both order by price, cheapest first; "duration" orders shortest first. Applied across all results.
use_fallbackDefault: unset. Switches the search to a second, independent flight data source instead of the usual Google Flights page read. Unset already escalates to that source once, automatically, after a searc…
verbosebooleanReturns every field the upstream sends on each fare, and every fare that was selected, with no row bound. Off by default: a result carries the best rows by the requested sort_by in a compact shape (da…

search_roundtrip_flights FlightPowers: search round-trip flights

FlightPowers round-trip fare search: live prices read from Google Flights, priced as paired legs rather than two separate one-ways. Input: origin and destination IATA codes -- the destination may be several codes, as "BCN,LIS,ATH" or ["BCN","LIS","ATH"] -- a departure date or range, and either a return date or a trip length in nights. Returns the total price for both legs, per-leg airline, stops and duration, and a single bookable buy_link for the trip. Suited to any return-trip fare question. A flexible search is ONE call: departure_date_from / departure_date_to set the outbound range and `n…

ParameterTypeDescription
from_airport *stringOrigin IATA code, e.g. "TLV". One origin per search; a second one is refused rather than searched.
to_airport *Destination airport. One IATA code ("BCN"), several separated by commas ("BCN,LIS,ATH"), or a list (["BCN","LIS","ATH"]) -- every shape is accepted and the destinations are compared in the same search…
currencystringISO currency code, default "usd".
departure_airline_codesRestricts the outbound leg to these airlines.
departure_dateSingle outbound date, "YYYY-MM-DD".
departure_date_fromFirst date of an outbound range.
departure_date_toLast date of an outbound range.
limitintegerMaximum trips to return, after merging and sorting.
max_departure_stopsMaximum stops on the outbound leg.
max_priceOnly trips at or below this total price are returned.
max_return_stopsMaximum stops on the return leg.
max_searchesThe searches this call may make, up or down. Unset is the normal behaviour: with the caller's own key the cap covers the request when the request is reasonable (a whole month at three trip lengths is…
nightsTrip length in nights; a number, or a list like [5, 6, 7]. The return date is derived from each departure date.
passengersOne entry per traveller, not a count: 1 adult, 2 child (aged 2-11), 3 infant on lap, 4 infant in seat, e.g. [1, 1, 2] for two adults and a child. At least one adult, each infant on lap needs its own a…
return_airline_codesRestricts the return leg to these airlines.
return_dateFixed return date. Mutually exclusive with `nights`.
returns_per_outboundHow many return flights to pair with each outbound flight, 1 to 5 (default 2). Each date/destination combination searched still returns at most 10 trips; at 5 they are picked from up to 50 pairings in…
seat_type1 economy, 2 premium economy, 3 business, 4 first.
sort_bystring"best" (the default) and "price" both order by price, cheapest first; "duration" orders shortest first. Applied across all results.
use_fallbackDefault: unset. Switches the search to a second, independent flight data source instead of the usual Google Flights page read. Unset already escalates to that source once, automatically, after a searc…
verbosebooleanReturns every field the upstream sends on each fare, and every fare that was selected, with no row bound. Off by default: a result carries the best rows by the requested sort_by in a compact shape (da…