GET /price
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/polymarket/priceCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeGet the best price for one outcome token and side.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
token_id | query | str | required | CLOB outcome token id (clobTokenIds entry of a market) example: 36088210133441631881314822267289702467350647371635978758429075305586609425677 |
side | query | strBUY | SELL | required | Order-book side for the price lookup example: BUY |
Response
type: object
pagination: none
sample: {
"price": "str"
}
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/price?token_id=36088210133441631881314822267289702467350647371635978758429075305586609425677&side=BUY"