PeumeAPI

Places & travel

Find Lowest Fares

List the cheapest cached fares between origins and destinations across a range of dates.

$0.003 per call

Call it

curl https://api.peume.com/v1/call/find-lowest-fares \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "origins": [],
    "trip_type": "oneway"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: find-lowest-fares.

Parameters

originsRequiredarray

IATA city or airport codes. See `origin_type` for how an untyped code is read.

destinationsarray

IATA city or airport codes. Omit for global discovery (`/flights/destinations`) or to scan every destination from the origins. See `destination_type` for how an untyped code is read.

origin_typestring

How to read the code: `city` searches every airport of the city, `airport` only that one airport. Omit it and the platform applies one rule: a code that names a multi-airport city is searched as the city; every other code is searched as the airport. Untyped NYC, LON or PAR is the city; untyped JFK, LHR or CDG is the airport; and untyped LAX, MIA or LAS — codes a city shares with its main airport — is the CITY, so results can land at any airport of that city. If the user named the airport, send `airport`; if they named the city, omit the field.

city · airport

destination_typestring

How to read the code: `city` searches every airport of the city, `airport` only that one airport. Omit it and the platform applies one rule: a code that names a multi-airport city is searched as the city; every other code is searched as the airport. Untyped NYC, LON or PAR is the city; untyped JFK, LHR or CDG is the airport; and untyped LAX, MIA or LAS — codes a city shares with its main airport — is the CITY, so results can land at any airport of that city. If the user named the airport, send `airport`; if they named the city, omit the field.

city · airport

departure_datesarray
departure_date_rangesarray
return_datesarray
return_date_rangesarray
stay_daysinteger
stay_days_rangeobject
trip_typeRequiredstring

oneway · roundtrip

cabin_classstring

economy · premium_economy · business · first

accuracystring

How strict the freshness check on cached fares is. `standard` (default) returns fares estimated to be at least 80% likely to still be available at the cached price; `high` raises that to 95%, so fewer fares come back.

standard · high

include_carriersarray

Keep only itineraries ticketed by these IATA carriers (the validating carrier, which issues the ticket). A codeshare segment marketed or operated by another airline does not change the match. Unlike `/flights/search`, which matches the marketing carrier of every segment.

exclude_carriersarray

Drop itineraries ticketed by these IATA carriers (the validating carrier). Must not overlap `include_carriers`.

max_totalnumber

Caps the cached fare's total. Cached fares are priced for one adult.

currencystring
localestring
limitinteger

What `limit` counts depends on the route; 1 to 100, default 20. On `/flights/calendar`, the maximum number of itineraries returned across the entire matching date range after `sort_by` is applied. This is a global result cap, not one itinerary per date pair: with the default `sort_by: lowest`, `limit: N` returns the cheapest N itineraries overall, so some matching date pairs may be absent. On `/flights/dates`, the maximum number of date pairs, each answered with its cheapest itinerary and spread across the requested departure window.

sort_bystring

The order of the results. `lowest`, the only order today, is cheapest first by the cached one-adult total; on `/flights/destinations` it orders destinations by their cheapest itinerary. Omit it for the same order.

lowest

max_stopsinteger

Maximum stops per leg: `0` non-stop, `1` one connection, `2` two. Applies to every leg of the trip. `1` and `2` need at least one code in `destinations`.

departure_time_rangeobject

Inclusive local time-of-day window, 24-hour "HH:MM". Either bound may be omitted: only `earliest` means "at or after", only `latest` means "at or before".

arrival_time_rangeobject

Inclusive local time-of-day window, 24-hour "HH:MM". Either bound may be omitted: only `earliest` means "at or after", only `latest` means "at or before".

return_departure_time_rangeobject

Inclusive local time-of-day window, 24-hour "HH:MM". Either bound may be omitted: only `earliest` means "at or after", only `latest` means "at or before".

return_arrival_time_rangeobject

Inclusive local time-of-day window, 24-hour "HH:MM". Either bound may be omitted: only `earliest` means "at or after", only `latest` means "at or before".

origin_radius_kmnumber

Also search every airport within this many kilometres (straight-line distance) of each origin code: an airport code is measured from that airport, a city code from the city. Widening only: the origins are always searched as well. Greater than 0, at most 500.

destination_radius_kmnumber

Also search every airport within this many kilometres of each destination code. Same rules as `origin_radius_km`; needs at least one code in `destinations`.

connection_time_min_minutesinteger

Shortest acceptable layover, in minutes, applied to every connection of every leg; a non-stop leg passes. Must not exceed `connection_time_max_minutes`. An itinerary whose connection times cannot be read is dropped. With either bound set, a response can hold fewer than `limit` itineraries even when more match.

connection_time_max_minutesinteger

Longest acceptable layover, in minutes, applied to every connection of every leg; a non-stop leg passes. Same rules as `connection_time_min_minutes`.

page_tokenstring

Reads the next page: the `next_page_token` of the previous response, sent with the same request (`limit` may change). The page starts right after the last itinerary of the previous page, so no itinerary is skipped when cached fares expire between pages. An itinerary whose price changes between two pages can appear on both or on neither, so deduplicate by `offer_token`. Keep reading until a response has no `next_page_token`.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.