Polymarket API
Access live prediction market data โ events, real-time odds, order books, trade history, and top position holders from the world's largest on-chain prediction market platform.
What Is Polymarket?
Polymarket (polymarket.com) is the world's largest on-chain prediction market, where traders buy and sell Yes/No outcome tokens on real-world events โ elections, economic indicators, sports outcomes, crypto prices, geopolitical developments, and more. Market prices reflect crowd-sourced probability: a contract trading at $0.72 implies a 72% chance the event resolves Yes.
Anysite's Polymarket endpoints give you programmatic access to the full public data layer: search and filter events, fetch real-time market prices and liquidity, pull live order book depth, chart probability curves over time, surface top position holders, and stream the public trade feed โ without managing authentication or rate-limit complexity.
All Polymarket Endpoints
| Endpoint | What It Returns |
|---|---|
/api/polymarket/events | Full event record by id or slug โ title, tags, all nested markets with prices, volumes, and lifecycle flags |
/api/polymarket/events/comments | Community comments thread under an event |
/api/polymarket/events/search | Search and list active or resolved events by keyword, category tag, or featured flag |
/api/polymarket/markets | Single market record โ question, outcomes, Yes/No prices, bid-ask spread, volume, liquidity, price-change history |
/api/polymarket/markets/book | Live order book snapshot for an outcome token โ bids, asks, spread, midpoint, last trade price |
/api/polymarket/markets/history | Price/probability time series for an outcome token โ configurable interval (1h to max) and resolution |
/api/polymarket/markets/holders | Top position holders of a market โ wallet, pseudonym, amount held, outcome side |
/api/polymarket/markets/trades | Public trade feed โ transaction hash, price, size, trader identity, outcome side |
/api/polymarket/tags | Topic-category tags used to organize and discover Polymarket events |
What You Can Build
Probability Dashboards
Pull real-time market prices and historical probability curves to build live dashboards showing how crowd-sourced odds on elections, economic events, or sports outcomes have moved over time.
AI Research Agents
Feed prediction market odds into AI pipelines alongside news and social data. Use /events/search to discover active markets on a topic and /markets/history to surface probability shifts that signal emerging narratives.
Market Intelligence Tools
Stream /markets/trades and /markets/holders to track how informed traders are positioning โ who holds the largest stakes and when large trades are executed on high-volume markets.
Sentiment and Signal Analytics
Correlate prediction market probabilities with news, social mentions, or financial prices. Polymarket prices are a crowd-sourced leading indicator: use them as a feature in forecasting models or editorial alert systems.
Quick Start
curl https://api.anysite.io/api/polymarket/events/search -H "access-token: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"count": 10, "keyword": "election", "status": "active"}'
curl https://api.anysite.io/api/polymarket/markets/book -H "access-token: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455"}'
anysite api /api/polymarket/events/search count=10 keyword="election" status="active"
Plans
Every Polymarket endpoint is included in all Anysite plans โ there's no per-endpoint pricing to track. Start with MCP Unlimited at $30/mo for flat-rate access through your AI tools, or use a credit plan for REST & CLI at scale.
| Plan | Price | Best for |
|---|---|---|
| MCP Unlimited | $30/mo | Unlimited access via Claude, Cursor & ChatGPT (fair use) |
| Starter | $49/mo | REST & CLI โ includes a 7-day trial |
| Growth | $200/mo | Production workloads |
| Scale ยท Pro ยท Enterprise | from $300/mo | High volume & higher rate limits |
Frequently Asked Questions
Related Endpoints
Start Querying Polymarket
Access real-time prediction market data โ events, odds, order books, trade history โ through REST, MCP, or CLI.