Call it
curl https://api.peume.com/v1/call/chart-rising-markets \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"destination": "your destination"
}
}'const res = await fetch("https://api.peume.com/v1/call/chart-rising-markets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"destination": "your destination"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/chart-rising-markets",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"destination": "your destination"
}
},
)
print(res.json()["output"])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-rising-markets.
Parameters
destinationRequiredstringDestination selector `<Level>:<Code>`. Required for this endpoint.
departure_date_fromstringStart 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_tostringEnd of the departure window (YYYY-MM-DD). Supply together with departure_date_from; omit both for no departure-date filter.
traveler_typestringSolo · Couple · Group · Family
trip_typestringoneway · roundtrip
trip_duration_minstringtrip_duration_maxstringsearch_window_minstringsearch_window_maxstringtrend_windowintegerNumber 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).
granularitystringBucket size for the returned series: week (default), day, or month.
day · week · month
levelstringRanked output granularity: country (default) or city. Applies to destination/market (not audience).
country · city
limitintegerMaximum number of series (top-N keys). Default 10, max 50.
origin_countrystringOrigin country selector `Country:<code>` (e.g. `Country:US`). Optional and allowed ONLY together with level=city: it scopes the ranked origin markets to a single country so that country’s cities are ranked. Must be a country — a City selector is rejected.
