Polymarket data API
Every level of the order book and every trade, recorded from Polymarket’s own websocket, served as files and JSON behind one key. The catalogue and the coverage ledger answer without one, so you can check what we hold before you sign up.
Get an API key
Accounts are free and need no card; while we are in alpha they open in batches from the waiting list at /login. Once yours is open a key is minted in seconds. It looks like pmd_ followed by an 8-character prefix and a 32-character secret, travels in the Authorization header, and is shown once: we store only a digest, so a lost key is revoked and replaced rather than recovered.
Keys for scripts are minted on the dashboard; signing out of the site revokes only that browser's key.
Authorization: Bearer pmd_a1b2c3d4_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
API docs
The reference lists every route with its access level: the catalogue and the ledger are open, the files need a key, the exports a plan. The OpenAPI document at /openapi.json is the contract, and the quickstart goes from no key to a downloaded file in a few commands.
Errors are deliberately distinct: 401 is the key, 402 the plan, 403 an hour not yet readable on the plan, 429 a ceiling - so client code can branch on the code instead of parsing messages.
API pricing
The unit is one market, bought once and kept: every level of the book and every trade from its first quote to its resolution. The price depends on the market's type and is on screen before you pay; there is no row meter.
Access levels change the rate, the licence and how fresh the data is, not which markets you can reach.
Free tier
300 markets a month on the free plan, every schema and format included, no card and no expiry. Data runs to the end of yesterday, UTC, and the licence is personal.
Rate limits
Signed URLs per day and requests per minute, per key, set by your access level and shown in your dashboard; they may change during alpha. Over the minute is 429 with Retry-After; the catalogue and pricing are not counted.
Clients: Python, MCP, Rust, C++
probnode-sdk for Python (pip install probnode-sdk) and probnode-mcp for AI agents; both read PROBNODE_API_KEY and PROBNODE_BASE_URL. Anything that speaks HTTP works today.
Errors you will meet
401 is the key - missing, malformed or revoked. 402 is the plan: the dataset or path is paid and the plan in force does not reach it, which includes a paid plan past its expiry; retrying never helps. 403 is an hour not yet readable on the plan; retry after the cutoff moves. 429 is a ceiling, with Retry-After when it is the per-minute one.
Files, not pages of rows
The data is delivered as files on signed links: POST /v1/data/urls signs up to a hundred object paths at once, each link valid for fifteen minutes, and a stable URL under /v1/files/... redirects to a fresh one, so curl -L downloads. A batch with one refused path is refused whole.
OpenAPI
The OpenAPI document at /openapi.json is the contract: generate a client in any language from it, or read it for the exact shape of every response.
A worked request: one market's trades as JSON
For a notebook cell or a chart, GET /v1/timeseries returns the rows of one market over a window without any files. It takes the dataset, the market's slug, a start and an end in UTC - at most seven days apart - and format=parquet (the default) or format=ndjson, one JSON object per line.
Rows come in token then time order and are filtered on the receive clock. Decimal prices and sizes arrive as strings in ndjson, so 0.5400 is not rounded the moment a client parses it. A window that holds more than 200,000 rows is refused with a 400 rather than cut short, because a truncated series reads as a complete one; for that window, take the market-day files instead.
curl -s -G https://probnode.com/v1/timeseries \ -H "Authorization: Bearer $PROBNODE_API_KEY" \ -d dataset=trades -d market=<market-slug> \ -d start=2026-11-18T00:00:00Z -d end=2026-11-19T00:00:00Z \ -d format=ndjson
What the API answers without a key
The whole catalogue is open: /v1/catalog/series, /v1/catalog/categories, /v1/catalog/taxonomy, /v1/catalog/markets and /v1/catalog/markets/{slug} with its tokens and resolution, the hourly sparkline of a market, /v1/catalog/count for how many markets a window holds, and /v1/catalog/schemas for the schema registry. So are /v1/data/datasets, /v1/samples, /v1/plans and /v1/billing/catalog, which lists every figure billing uses.
None of these count against a key's ceilings, so a script can map the catalogue, check coverage and price a selection as often as it needs before it signs a single file.
curl -s "https://probnode.com/v1/catalog/markets?series=btc-updown-5m&limit=3" curl -s https://probnode.com/v1/data/datasets
From a market slug to its token ids
Every file and the coverage ledger key on token_id, the outcome token as a decimal string, not on the market. GET /v1/catalog/markets/{slug} returns one market with its tokens and its resolution, keyless, and the free markets dataset holds the same map for every hour: one row per token, with the market it belongs to, its event, outcome, end time and metadata.
So a market's whole history assembles with one join: take its token ids from the catalogue, then filter the book, the trades and the ledger on them.
curl -s https://probnode.com/v1/catalog/markets/<market-slug>
What the API serves: the full book and the trades
Two datasets are the product. book_full is the order book: every change of every level of every token, with the trades in arrival order beside them, never throttled - the recorder's own event log, with a full-book checkpoint opening every five-minute block. trades is every trade the websocket delivered, with both clocks and the transaction it settled in. Both start on 2026-11-12; there is no earlier history of either.
Beside them, free, are gaps - the intervals the feed did not cover - and markets, the token map of each hour. The fills schema adds who traded: one row per OrderFilled log read from our own Polygon node, with the maker and taker wallets, joined to the trades on the transaction hash, token and size.
Two clocks on every row, and which one to join on
Hourly files carry ts_ms, when our recorder received the event, and ts_ex_ms, Polymarket's own timestamp for it, both in milliseconds since the Unix epoch, UTC. The market-day schemas carry the same pair as recv_ns and venue_ns, in nanoseconds. Every partition, bucket and freshness cutoff is on the receive clock, so the file layout never depends on a clock we do not control.
Join the book to the trades on the venue's clock. The two arrive on different websocket channels, so on receive time a trade can land before the book update that caused it.
Coverage per market-hour, from the API
GET /v1/catalog/coverage?token_id=... returns one row per hour for a token, with no key: recorded_ms, the milliseconds of the hour that were captured; gap_count, the websocket outages in it; uptime_pct, recorded time over the time the token existed in that hour; and era, the recorder version the hour came from.
An hour nothing touched is returned as implied - the whole hour, no gaps - rather than stored. derived_ms is missing time that no journal row states. Hours outside the token's span, or never ingested, are not returned at all: there we hold nothing, and the ledger says so by leaving them out rather than by filling them in.
The Polymarket data API from Python
pip install probnode-sdk, then probnode.Client() reads PROBNODE_API_KEY from the environment. files() lists a dataset's files for a window, download_all() fetches them and checks each against its sha256, and probnode.read() opens Probe, parquet, csv.gz or lp2 into a pyarrow Table - from there to_pandas() or polars.from_arrow() is one line.
import probnode # pip install probnode-sdk
pn = probnode.Client()
files = pn.files("gaps", "parquet",
"2026-11-12T12:00:00Z", "2026-11-12T14:00:00Z")
paths = list(pn.download_all(files, "data/"))
table = probnode.read(paths[0])
df = table.to_pandas()Count it and price it before you buy
GET /v1/catalog/count says how many markets a window holds, per series, and how many of them have holes - keyless. POST /v1/billing/quote returns what that selection costs after your allowance and anything you already own, so the figure is the one that will be charged. POST /v1/downloads buys it and queues the package.
The cart_id you send with the purchase makes it idempotent: a retried request lands on the same basket. A 402 there is not a failure - the basket is kept, the body says the shortfall, and topping up finishes it. A market recorded with holes is excluded at the till and reported as excluded_uncovered.
A historical API, not a live feed
There is no websocket and no streaming endpoint. You ask which files cover a window, the API signs them, and you read them from object storage. How recent the readable archive is depends on your access. An hour not yet readable on your access answers 403, and the same rows arrive later.
Free samples, no key
GET /v1/samples lists one market a day for the last three UTC days: every market-day schema of it as parquet and as csv.gz, with that day's hourly markets and gaps files. The market is the busiest one of the day the exporter could build. Each entry carries a stable URL that redirects to a signed link without a key, so curl -L downloads the real file, cut the way a subscriber gets it.
curl -s https://probnode.com/v1/samples | head -c 600