Call it
curl https://api.peume.com/v1/call/token-rankings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sort_by": "market_cap",
"order": "desc",
"limit": 20,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/token-rankings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sort_by": "market_cap",
"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/token-rankings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sort_by": "market_cap",
"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: token-rankings.
Parameters
sort_bystringField to sort by. market_cap sorts by total market capitalisation, change_24h sorts by 24-hour price change percentage (fetches top 250 by market cap then sorts client-side), volume_24h sorts by 24-hour trading volume. Example: market_cap. Defaults to "market_cap".
market_cap · change_24h · volume_24h
Example: market_cap
orderstringSort order: desc (default, highest first) or asc (lowest first). Example: desc. Defaults to "desc".
asc · desc
Example: desc
categorystringOptional token category filter. When provided, results are limited to coins in that category. Supported values: MEME, AI, AI_AGENTS, L1, L2, DEFI, GAMING, STABLECOIN, RWA, DEPIN, SOL_ECO, BASE_ECO, LST. Example: MEME.
MEME · AI · AI_AGENTS · L1 · L2 · DEFI · GAMING · STABLECOIN · RWA · DEPIN · SOL_ECO · BASE_ECO …
limitintegerResults per page. Example: 20. Defaults to 20.
Example: 20
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
