Call it
curl https://api.peume.com/v1/call/polymarket-markets \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"market_slug": "your market slug",
"limit": 20,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/polymarket-markets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"market_slug": "your market slug",
"limit": 20,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/polymarket-markets",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"market_slug": "your market slug",
"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: polymarket-markets.
Parameters
market_slugRequiredstringPolymarket market slug (identifies a single Yes/No outcome). Discover slugs via /v1/search/prediction-market?platform=polymarket&q={keyword}. For a multi-outcome question (e.g. 'who wins the 2024 election'), use the /polymarket/events endpoint with event_slug instead. Example: will-bitcoin-dip-to-45000-by-december-31-2026-674-923-755-971-998-525-926-245-316-517-544-589-965-923-986-841-815-224.
limitintegerResults per page. Example: 20. Defaults to 20.
Example: 20
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
