Polymarket

List Polymarket price history

List the price history of a Polymarket outcome token.

GET/v1/polymarket/tokens/{tokenId}/price-history
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
7
tokenIdstringrequiredpath

Outcome token id: a market outcome's `tokenId`.

pattern: ^[0-9]{1,100}$

intervalstringoptionalquery

How far back to go: `1h`, `6h`, `1d`, `1w`, `1m` (one month), `max` or `all`. Default: `1w`. Ignored when `from` is given.

one of: 1h, 6h, 1d, 1w, 1m, max, all

fromintegeroptionalquery

Start of the range, unix seconds.

≥ 1 · ≤ 4102444800

tointegeroptionalquery

End of the range, unix seconds. Default: now.

≥ 1 · ≤ 4102444800

bucketSecondsintegeroptionalquery

Seconds per point, 60–86400. Default: chosen from the range.

≥ 60 · ≤ 86400

limitintegeroptionalquery

Items per page, 1–1000. Default: 500.

≥ 1 · ≤ 1000

cursorstringoptionalquery

Pass `page.nextCursor` from the previous response to get the next page. Keep the other filters the same.

min 1 chars · max 6000 chars

Response fields
14

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the token has no price history: unknown.

one of: found, not_found

datatokenId
string

The token id asked for.

Oldest first.

datapoints[]at
string

Start of the bucket (ISO-8601, UTC).

datapoints[]price
number

Price as a probability between 0 and 1.

datapoints[]bucketSeconds
integernullable

Length of the bucket in seconds.

Pagination state for the current page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

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/tokens/54533043819946592547517511176940999955633860128497669742211153063842200957669/price-history?interval=1w" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Polymarket price history.