Skip to main content
Related guides: For historical data overviews and downloads, see Polymarket historical data, crypto data, MCP server, and order book data.
This guide walks through account setup, API key creation, discovery, and a historical books request on the hosted API.

Prerequisites

  • A PolyOrderbooks account (free Starter tier)
  • curl or 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 dashboardAPI keysCreate key. Copy the secret immediately — it is shown only once.
Export your key:
All data requests use:
You may also send 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:
The SDK wraps the same REST endpoints documented here and reads POLYORDERBOOKS_API_KEY from the environment.

2. Confirm your API key

After creating a key, confirm it works and review your plan quota:
Example response:

3. Search the catalog

Save a slug from the response for the next step.

4. Fetch order book history

Replace MARKET_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:
The response groups book snapshots by outcome label (Yes, No, etc.) with timestamps in UTC.

5. Paginate long ranges

When metadata.next_cursor is present, pass it on the next request (keep the same start_ts, end_ts, and resolution):
See Pagination for discovery list cursors.

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.
Related reading: Polymarket API guide — official Polymarket endpoints, rate limits, and when a historical archive helps. Or download a free BTC 5-minute L2 sample to inspect the data shape before you write any code.