Call it
curl https://api.peume.com/v1/call/polymarket-markets-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20
}
}'const res = await fetch("https://api.peume.com/v1/call/polymarket-markets-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/polymarket-markets-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20
}
},
)
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: polymarket-markets-3.
Parameters
page_tokenstringPage token for `markets`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds 20 markets and counts as one call. A token is valid for 24 hours; the last page has no `next_page_token`. You can page through at most the first 300 markets.
limitintegerMaximum number of results, 1 to 100 (default 20). For some actions it counts pages or items per parent rather than final rows.
Example: 20
sortstringOrder of the list. `markets`: volume (default), open_interest, price_desc, price_asc, expiration, created, volume_1d, volume_7d, trades_1d. `events`: created (default), start_date, end_date, volume_1d, volume_7d, volume_all_time, open_interest, trades_1d. One of: created, expiration, open_interest, price_asc, price_desc, trades_1d, volume, volume_1d, volume_7d.
created · expiration · open_interest · price_asc · price_desc · trades_1d · volume · volume_1d · volume_7d
keywordstringWords to find in market or event titles, at least 3 characters, such as `bitcoin` or `election`; leave it out to list everything by the chosen order.
statusstringopen (still trading) or closed (finished); leave it out for both. One of: closed, open.
closed · open
