Polymarket Historical Data

Polymarket Historical Data API Documentation: Endpoints, Auth & Examples

Full API documentation for Polymarket historical data — endpoints, authentication, rate limits, and code examples. Free access via PolyHistorical.

This is the complete Polymarket historical data API documentation for PolyHistorical. Everything you need to start fetching prediction market order book data — for free.

Base URL

https://api.polyhistorical.com/v1

Authentication

Include your API key in the X-API-Key header with every request:

curl -H "X-API-Key: YOUR_API_KEY" \\
  https://api.polyhistorical.com/v1/markets?coin=BTC&limit=5

Get a free API key by signing up at PolyHistorical. No credit card required.

Endpoints

GET /v1/markets

List all markets with filtering and pagination. Returns markets sorted by start_time descending.

ParameterRequiredDescription
coinYesCryptocurrency: BTC, ETH, SOL
market_typeNoFilter by type: 5m, 15m, 1hr, 4hr, 24hr
resolvedNoFilter by resolution status (true/false)
limitNoResults to return, 1-100 (default 100)
offsetNoPagination offset (default 0)

GET /v1/markets/{slug}

Get detailed data for a single market by its slug.

GET /v1/markets/{slug}/snapshots

Fetch time-series snapshots for a specific market, including price data and optional order book depth.

ParameterRequiredDescription
limitNoSnapshots to return, 1-1000 (default 1000)
offsetNoPagination offset (default 0)
include_orderbookNoInclude full order book bids/asks (default false)

GET /v1/markets/by-market-id/{marketId}/snapshots

Same as above, but uses the Polymarket market ID instead of the slug. Useful when you have the market ID from Polymarket directly.

Rate Limits

PlanRequests/minRequests/day
Starter (Free)601,000
Pro ($11/mo)30050,000
EnterpriseCustomUnlimited

Market Access by Plan

Market TypeStarter (Free)Pro / Enterprise
BTC 5m & 15mLast 50 marketsAll
BTC 1h & 4hLast 24 marketsAll
BTC 24hLast 5 marketsAll
ETH 5m, 15m & 1hAll
SOL 5m, 15m & 1hAll

ETH and SOL markets require a Pro or Enterprise plan. All snapshots within an accessible market are included on every plan — no snapshot limits.

Get Started

Sign up for free, get your API key, and start querying Polymarket historical data in minutes. The free tier has no expiration — use it as long as you need.

Related Resources