PeumeAPI

Places & travel

Discover Destinations by Fare

Rank the places you can fly to from an origin by their lowest cached fare.

$0.003 per call

Call it

curl https://api.peume.com/v1/call/discover-destinations-by-fare \
  -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: discover-destinations-by-fare.

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

direct_onlyboolean

Only direct flights: non-stop on every leg.

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

The maximum number of destinations returned, 1 to 100, default 20. It counts destinations, not itineraries: each destination carries up to `flights_per_destination` itineraries.

offsetinteger
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

flights_per_destinationinteger

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.