Polymarket APIs
Base URL for all API requests:Authentication
All endpoints require an API key passed in theX-API-Key header. See Authentication for details.
Request format
- All requests use standard query parameters
- Responses are JSON
- Prediction market timestamps are ISO 8601 format (UTC)
- Binance trade and snapshot timestamps are UTC epoch milliseconds
- Pagination uses
limitandoffsetparameters
Response format
All responses follow this structure: Success (market list):Common error codes
Endpoints
List Markets
Browse active and resolved prediction markets with filtering and pagination.
Get Market
Fetch one prediction market by slug.
Get Snapshots
Read time-series price and order book snapshots by market slug.
Replay Strategy
Backtest entry and exit rules against resolved historical markets.