Related guides: For historical data overviews and downloads, see Polymarket historical data, crypto data, MCP server, and order book data.
Prerequisites
- A PolyOrderbooks account (free Starter tier)
curlor any HTTP client- Familiarity with ISO-8601 UTC timestamps
1. Create an account and API key
1
Sign up
Register at polyorderbooks.com/signup with email/password or Google.
2
Verify email
Password sign-ups must confirm email via the link we send. Google sign-ups are verified automatically.
3
Create a key
Open the dashboard → API keys → Create key. Copy the secret immediately — it is shown only once.
Authorization: Bearer pob_…. Dashboard session tokens from login do not work on data routes.
See Authentication for security guidance.
Official Python SDK
For Python projects, use the official client on PyPI instead of hand-rolling HTTP calls:- Package: pypi.org/project/polyorderbooks
- Source: github.com/polyorderbooks/polyorderbooks-python
- Runnable scripts: github.com/polyorderbooks/python-examples
POLYORDERBOOKS_API_KEY from the environment.
2. Confirm your API key
After creating a key, confirm it works and review your plan quota:3. Search the catalog
slug from the response for the next step.
4. Fetch order book history
ReplaceMARKET_SLUG with a value from step 3. 1s resolution works on every plan, including Starter; on Starter, history is limited to the last 3 days:
Yes, No, etc.) with timestamps in UTC.
5. Paginate long ranges
Whenmetadata.next_cursor is present, pass it on the next request (keep the same start_ts, end_ts, and resolution):
Python example
Next steps
Plans & limits
Starter, Pro, and Enterprise capabilities.
Discovery filters
Tags, date ranges, sorting, and market detail.
Historical data
Metrics, books, resolutions, and token-level endpoints.
Rate limits
Quotas, 429 handling, and efficient bulk access.
Python SDK
Install
polyorderbooks from PyPI.Python examples
Clone runnable scripts for books and backtests.