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 freeGet a token's price history from the Data API v2 (cursor or time-window form).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
token_id | query | str | required | Outcome token id example: 88628571294043584642769521373166326587735244942541119761020769172384836921620 |
start | query | int | optional | Inclusive unix-seconds lower bound example: 1794900000 |
end | query | int | optional | Inclusive unix-seconds upper bound example: 1795028400 |
interval | query | str1m | 1h | 6h | 24h | 1w | 1m | max | optional | Price-history window (1m/1h/6h/24h/1w/1m/max) default: 1dexample: 1d |
bucket_seconds | query | int | optional | Bucket width in seconds |
as_of | query | int | optional | Single point-in-time observation (unix seconds) |
limit | query | int | optional | Page size (max 500 on gamma lists) default: 20example: 2 |
cursor | query | str | optional | Opaque 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"