Call it
curl https://api.peume.com/v1/call/retrieve-a-filtered-paginated-page-of-earn-pools \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"chain": "your chain",
"protocol": "your protocol"
}
}'const res = await fetch("https://api.peume.com/v1/call/retrieve-a-filtered-paginated-page-of-earn-pools", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"chain": "your chain",
"protocol": "your protocol"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/retrieve-a-filtered-paginated-page-of-earn-pools",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"chain": "your chain",
"protocol": "your protocol"
}
},
)
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: retrieve-a-filtered-paginated-page-of-earn-pools.
Parameters
chainstringChain slug (lowercase). Repeat the parameter to match any of several chains, e.g. chain=ethereum&chain=arbitrum (at most 20 values)
protocolstringProtocol slug (lowercase, e.g. aave-v3). Repeat the parameter to match any of several protocols (at most 20 values)
stablecoinbooleantrue keeps only pools whose assets are all stablecoins, false only the rest
min_tvlnumberMinimum pool TVL in USD (inclusive)
single_asset_exposurebooleantrue keeps only pools exposed to a single asset, false only the rest
impermanent_loss_riskbooleantrue keeps only pools with impermanent loss risk, false only the rest
limitintegerPage size between 1 and 300; default 100. Values above 300 are rejected, not clamped
pageinteger1-based page number; default 1
