Call it
curl https://api.peume.com/v1/call/project-defi-metrics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"metric": "tvl",
"limit": 20,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/project-defi-metrics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"metric": "tvl",
"limit": 20,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/project-defi-metrics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"metric": "tvl",
"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: project-defi-metrics.
Parameters
idstringSurf project UUID. PREFERRED — always use this when available from a previous response (e.g. project_id from /fund/portfolio or id from /search/project). Takes priority over q. Example: 25c6612a-395c-4974-94eb-3b5f9f4b2ed7.
qstringFuzzy entity name search. Only use when 'id' is not available. May return unexpected results for ambiguous names. Example: uniswap.
metricstringMetric to query. Can be volume, fees (or fee alias), revenue, tvl, or users. Defaults to tvl. Example: tvl. Defaults to "tvl".
volume · fee · fees · revenue · tvl · users
Example: tvl
fromstringStart of time range. Accepts Unix seconds (1704067200) or date string (2024-01-01). Example: 2024-01-01.
tostringEnd of time range. Accepts Unix seconds (1706745600) or date string (2024-02-01). Example: 2024-02-01.
chainstringFilter by chain. Can be ethereum,, bsc, arbitrum, optimism, base, avalanche, fantom, or solana. Example: ethereum.
ethereum · polygon · bsc · arbitrum · optimism · base · avalanche · fantom · solana
limitintegerResults per page. Example: 20. Defaults to 20.
Example: 20
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
