Call it
curl https://api.peume.com/v1/call/prediction-market-analytics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"time_range": "30d",
"top_n": 10,
"sort_by": "volume_7d",
"order": "desc",
"limit": 20,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/prediction-market-analytics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"time_range": "30d",
"top_n": 10,
"sort_by": "volume_7d",
"order": "desc",
"limit": 20,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/prediction-market-analytics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"time_range": "30d",
"top_n": 10,
"sort_by": "volume_7d",
"order": "desc",
"limit": 20,
"offset": 0
}
},
)
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: prediction-market-analytics.
Parameters
categorystringCategory to analyze. Omit to get platform-wide totals across all categories.
crypto · culture · economics · financials · politics · stem · sports
platformstringFilter to one platform.
polymarket · kalshi
time_rangestringWindow for category trends: 7d, 30d, 90d, 180d, or 1y. Bucket size is fixed at 1 day — this endpoint uses time_range only and does NOT accept interval. Defaults to "30d".
7d · 30d · 90d · 180d · 1y
Example: 30d
top_nintegerNumber of top markets to include. Defaults to 10.
Example: 10
sort_bystringSort field for momentum markets. Defaults to "volume_7d".
volume_7d · whale_flow_net_7d · price_change_7d · oi_change_7d
Example: volume_7d
orderstringSort direction. Defaults to "desc".
asc · desc
Example: desc
limitintegerLimit for momentum markets list. Defaults to 20.
Example: 20
offsetintegerPagination offset for momentum markets. Defaults to 0.
Example: 0
