Polymarket

Get Polymarket order books

Get the order books of up to 150 Polymarket outcome tokens in one request.

GET/v1/polymarket/books
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
tokenIdsarrayrequiredquery

Outcome token ids, 1–150. Repeat the parameter or separate ids with commas. Token ids are the `tokenId` of a market outcome.

depthintegeroptionalquery

Price levels returned per side, 1–200. Default: 20. Levels run from the best price outward.

≥ 1 · ≤ 200

Response fields
28

Endpoint-specific response payload.

One entry per requested token id, in request order.

dataresults[]tokenId
string

The token id as requested.

dataresults[]lookupStatus
string

`not_found` when the token has no order book: unknown, or its market has closed.

one of: found, not_found

An order book.

dataresults[]bookconditionId
stringnullable

Condition id of the market.

dataresults[]booktimestamp
stringnullable

Time of this book snapshot (ISO-8601, UTC).

dataresults[]bookhash
stringnullable

Hash identifying this version of the book.

Buy orders, best (highest) price first.

dataresults[]bookbids[]price
number

Price as a probability between 0 and 1.

dataresults[]bookbids[]shares
number

Shares available at this price.

Sell orders, best (lowest) price first.

dataresults[]bookasks[]price
number

Price as a probability between 0 and 1.

dataresults[]bookasks[]shares
number

Shares available at this price.

dataresults[]bookbidLevels
integer

Price levels on the bid side before trimming to `depth`.

dataresults[]bookaskLevels
integer

Price levels on the ask side before trimming to `depth`.

dataresults[]booklastTradePrice
numbernullable

Price of the last trade.

dataresults[]booktickSize
numbernullable

Smallest price step.

dataresults[]bookminOrderSize
numbernullable

Smallest order size in shares.

dataresults[]booknegRisk
booleannullable

Whether the market is part of a winner-takes-all group.

Counts across the batch.

datasummaryrequested
integer

Token ids requested.

datasummaryfound
integer

Token ids with data.

datasummarynotFound
integer

Token ids with no data: unknown, or the market has closed and no longer has an order book.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/polymarket/books?tokenIds=54533043819946592547517511176940999955633860128497669742211153063842200957669" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Polymarket order books.