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.

9 endpoints REST ยท MCP ยท CLI Real-time data All plans included

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

EndpointWhat It Returns
/api/polymarket/eventsFull event record by id or slug โ€” title, tags, all nested markets with prices, volumes, and lifecycle flags
/api/polymarket/events/commentsCommunity comments thread under an event
/api/polymarket/events/searchSearch and list active or resolved events by keyword, category tag, or featured flag
/api/polymarket/marketsSingle market record โ€” question, outcomes, Yes/No prices, bid-ask spread, volume, liquidity, price-change history
/api/polymarket/markets/bookLive order book snapshot for an outcome token โ€” bids, asks, spread, midpoint, last trade price
/api/polymarket/markets/historyPrice/probability time series for an outcome token โ€” configurable interval (1h to max) and resolution
/api/polymarket/markets/holdersTop position holders of a market โ€” wallet, pseudonym, amount held, outcome side
/api/polymarket/markets/tradesPublic trade feed โ€” transaction hash, price, size, trader identity, outcome side
/api/polymarket/tagsTopic-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

Search active prediction markets (REST)
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"}'
Fetch live order book for an outcome token (REST)
curl https://api.anysite.io/api/polymarket/markets/book   -H "access-token: YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455"}'
Via CLI
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.

PlanPriceBest for
MCP Unlimited$30/moUnlimited access via Claude, Cursor & ChatGPT (fair use)
Starter$49/moREST & CLI โ€” includes a 7-day trial
Growth$200/moProduction workloads
Scale ยท Pro ยท Enterprisefrom $300/moHigh volume & higher rate limits

Frequently Asked Questions

What data does the Polymarket API return?
The API returns the full public data layer from Polymarket: event records (title, tags, nested markets), real-time market prices and liquidity, live order book snapshots (bids/asks), probability history time series, top position holders, and the public trade feed โ€” all grounded on Polymarket's live platform data.
How do I find markets on a specific topic?
Use /api/polymarket/events/search with a keyword parameter (e.g. "election", "bitcoin") or a tag slug (e.g. "politics", "sports"). You can also call /api/polymarket/tags to enumerate all available topic categories.
Can I get historical probability data for a market?
Yes. Use /api/polymarket/markets/history with an outcome token's token_id. You can specify a time window (1h, 6h, 1d, 1w, 1m, or max) and a fidelity (minutes per data point) to get a probability curve at any resolution.
How do I get the live order book for a market?
Call /api/polymarket/markets/book with the outcome token's token_id (the CLOB token id found in any market or event response). It returns the current bid and ask depth, best bid/ask, spread, midpoint, and last trade price.
Is a Polymarket account required?
No. All Polymarket endpoints access public market data through the Anysite API โ€” no Polymarket account, wallet, or authentication is needed. You only need an Anysite API key.

Related Endpoints

Start Querying Polymarket

Access real-time prediction market data โ€” events, odds, order books, trade history โ€” through REST, MCP, or CLI.