Polymarket order book

GET https://api.api.sh/polymarket/v1/orderbook
1 credit / call finance & crypto try it in the playground →

The live order book of one market outcome: every bid and ask level (price 0-1 and size in shares), best bid and ask, spread, midpoint, last trade price, tick size, minimum order size, level counts and total size per side, and the book's timestamp. Pick the market by slug/id/url plus outcome (default the first, usually Yes), or pass the outcome's token_id. A market that has finished returns an empty book with closed true.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
slug string Market slug (or id, url, token_id). Example: will-jd-vance-win-the-2028-us-presidential-election
id string Market id.
url string A polymarket.com event or market link.
token_id string The outcome's token id (from outcomes[].token_id of /polymarket/v1/market); replaces slug and outcome.
outcome string Outcome name, e.g. Yes, No, or a candidate name (default the first outcome).
depth integer Return only the best N levels per side (default all). Example: 10

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/polymarket/v1/orderbook?slug=will-jd-vance-win-the-2028-us-presidential-election" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.