Skip to main content
POST
/
api
/
polymarket
/
markets
/
history
/polymarket/markets/history
curl --request POST \
  --url https://api.anysite.io/api/polymarket/markets/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "token_id": "<string>",
  "count": 2,
  "timeout": 300,
  "interval": "max",
  "fidelity": 2
}
'
[
  {
    "date_at": 123,
    "@type": "@polymarket_price_point",
    "price": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
token_id
string
required

Outcome token id of the market (one side of the outcome)

Minimum string length: 1
Example:

"21742633143463906290569050155826241533067272736897614950488156847949938836455"

count
integer
required

Maximum number of price points to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
interval
enum<string>
default:max

Time window of the price curve: 1h, 6h, 1d, 1w, 1m, or max

Available options:
1h,
6h,
1d,
1w,
1m,
max
fidelity
integer | null

Resolution of the curve in minutes per point. Higher values return coarser, longer-reaching history; required by the 1w and 1m intervals

Required range: x >= 1

Response

Successful Response

date_at
integer
required
@type
string
default:@polymarket_price_point
price
number | null