search_deals
Search flight fares Sparkflights has already found and verified, ranked by cost per mile against each market's limit. Not a live fare search: an empty result means no current verified fare matches. Each result has the price text of its Sparkflights fare page; url, the fare page; route_url, the route page, which lists the route's live fares and price history; and feed_url, the route's JSON feed of new fares.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order: cpm (default; cost per mile against its market's CPM ceiling, lowest first) or recent (newest first) | |
| cabin | No | Cabin class, or a comma-separated list: economy, premium_economy, business, first | |
| limit | No | Max results, 1-25. Default 10. | |
| origin | No | Where the trip starts: an IATA airport code (JFK) for that airport, or a city (New York, new-york-city) for every airport the city's route pages cover | |
| low_cost | No | true returns only budget/low-cost carrier deals; overrides include_budget | |
| max_price | No | US dollars: only deals listed at or under this price | |
| destination | No | Where the trip goes: an IATA airport code (NRT) for that airport, or a city (Tokyo, london) for every airport the city's route pages cover | |
| depart_month | No | YYYY-MM: only deals whose first departure date is in that month | |
| origin_region | No | Departure region, or a comma-separated list, same values as destination_region. Default: the regions the deal board lists | |
| include_budget | No | Add budget/low-cost carrier deals (Spirit, Frontier, etc.) to the others. Default false — budget deals are on /flights/budget. | |
| destination_region | No | Destination region, or a comma-separated list: north_america, europe, asia, africa, oceania, south_america |