GET /v2/prices-history

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/polymarket/v2/prices-historyCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Get a token's price history from the Data API v2 (cursor or time-window form).

Parameters

nameintypedescription
token_idquerystrrequiredOutcome token id
example: 88628571294043584642769521373166326587735244942541119761020769172384836921620
startqueryintoptionalInclusive unix-seconds lower bound
example: 1794900000
endqueryintoptionalInclusive unix-seconds upper bound
example: 1795028400
intervalquerystr
1m | 1h | 6h | 24h | 1w | 1m | max
optionalPrice-history window (1m/1h/6h/24h/1w/1m/max)
default: 1d
example: 1d
bucket_secondsqueryintoptionalBucket width in seconds
as_ofqueryintoptionalSingle point-in-time observation (unix seconds)
limitqueryintoptionalPage size (max 500 on gamma lists)
default: 20
example: 2
cursorquerystroptionalOpaque keyset cursor from pagination.next_cursor — omit on the first page

Response

type: object
pagination: cursor
sample: {
  "data": "array[223]",
  "pagination": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/polymarket/v2/prices-history?token_id=88628571294043584642769521373166326587735244942541119761020769172384836921620&start=1794900000&end=1795028400&interval=1d&limit=2"