PeumeAPI

Places & travel

Chart Route Demand

Get the flight-search volume over time for origin and destination pairs.

$0.0075 per call

Call it

curl https://api.peume.com/v1/call/chart-route-demand \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "origins": "your origins",
    "destinations": "your destinations"
  }
}'

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: chart-route-demand.

Parameters

originsRequiredstring

Comma-separated origin selectors `<Level>:<Code>` (e.g. `Country:US,Country:CA`). v1: at most one of origins/destinations may have more than one entry.

destinationsRequiredstring

Comma-separated destination selectors `<Level>:<Code>` (e.g. `Country:FR`).

departure_date_fromstring

Start of the departure window (YYYY-MM-DD). Supply together with departure_date_to; omit both (recommended) for no departure-date filter — each bucket then counts searches for all departure dates. A window anchored at the query date counts only long-advance-purchase searches in old buckets and near-departure searches in recent ones, ramping the curve artificially.

departure_date_tostring

End of the departure window (YYYY-MM-DD). Supply together with departure_date_from; omit both for no departure-date filter.

traveler_typestring

Solo · Couple · Group · Family

trip_typestring

oneway · roundtrip

trip_duration_minstring
trip_duration_maxstring
search_window_minstring
search_window_maxstring
trend_windowinteger

Number of buckets N, in the chosen granularity unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12). The series spans the last N complete buckets, excluding the in-progress one (day: last N days ending yesterday; week: last N full Monday-Sunday weeks; month: last N full calendar months).

granularitystring

Bucket size for the returned series: week (default), day, or month.

day · week · month

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.