faregrid
v0.1.0Search 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…
| Parameter | Type | Description |
|---|---|---|
from_airport * | string | Origin 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_codes | Restricts the search to these airline codes, e.g. ["LY"]. | |
arrival_time_max | Latest arrival hour, 0-23. | |
arrival_time_min | Earliest arrival hour, 0-23. | |
currency | string | ISO currency code, default "usd". |
departure_date | Single departure date, "YYYY-MM-DD". | |
departure_date_from | First date of a departure range. | |
departure_date_to | Last date of a departure range. | |
departure_time_max | Latest departure hour, 0-23. | |
departure_time_min | Earliest departure hour, 0-23. | |
exclude_airline_codes | Airline codes left out of the results. | |
limit | integer | Maximum flights to return, after merging and sorting. |
max_price | Only flights at or below this price are returned. | |
max_searches | The 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_stops | Maximum stops per flight. 0 means non-stop only. | |
passengers | One 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_type | 1 economy, 2 premium economy, 3 business, 4 first. | |
sort_by | string | "best" (the default) and "price" both order by price, cheapest first; "duration" orders shortest first. Applied across all results. |
use_fallback | Default: 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… | |
verbose | boolean | Returns 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…
| Parameter | Type | Description |
|---|---|---|
from_airport * | string | Origin 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… | |
currency | string | ISO currency code, default "usd". |
departure_airline_codes | Restricts the outbound leg to these airlines. | |
departure_date | Single outbound date, "YYYY-MM-DD". | |
departure_date_from | First date of an outbound range. | |
departure_date_to | Last date of an outbound range. | |
limit | integer | Maximum trips to return, after merging and sorting. |
max_departure_stops | Maximum stops on the outbound leg. | |
max_price | Only trips at or below this total price are returned. | |
max_return_stops | Maximum stops on the return leg. | |
max_searches | The 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… | |
nights | Trip length in nights; a number, or a list like [5, 6, 7]. The return date is derived from each departure date. | |
passengers | One 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_codes | Restricts the return leg to these airlines. | |
return_date | Fixed return date. Mutually exclusive with `nights`. | |
returns_per_outbound | How 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_type | 1 economy, 2 premium economy, 3 business, 4 first. | |
sort_by | string | "best" (the default) and "price" both order by price, cheapest first; "duration" orders shortest first. Applied across all results. |
use_fallback | Default: 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… | |
verbose | boolean | Returns 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… |