Polymarket API endpoint
Returns public CLOB midpoints for up to 25 Polymarket token ids. This does not require a Polymarket user token, wallet signature, cookies, or personal account authentication.
/polymarket/tokens/midpointsBody parameters:
token_ids: required array of Polymarket CLOB token ids. Maximum 25 ids.Notable response behavior:
missing when at least one requested token returns data.Example request:
{
"token_ids": [
"81927025054404355287140018940169293739219157042658469116956164881873598220211"
]
}
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| body (body) | object | Yes | Token ids request body | ||
| x-api-key (header) | string | Yes | API key required |
curl -X POST "https://api.crawlora.net/api/v1/polymarket/tokens/midpoints" \
-H "x-api-key: $CRAWLORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token_ids":["string"]}'{
"token_ids": [
"string"
]
}{
"code": 200,
"msg": "OK",
"data": {
"token_ids": [
"81927025054404355287140018940169293739219157042658469116956164881873598220211"
],
"midpoints": [
{
"token_id": "81927025054404355287140018940169293739219157042658469116956164881873598220211",
"midpoint": 0.285
}
]
}
}Request schema
#/definitions/polymarket.BatchTokenMidpointsOption
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| token_ids | array | Yes |
Response schema
#/definitions/polymarket.batchTokenMidpointsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | polymarket.BatchTokenMidpointsResponse | No | ||||
| data.fetched_at | string | No | 2026-06-07T11:00:00Z | Time the data was fetched, in UTC (RFC 3339). | ||
| data.midpoints | array | No | Midpoints for the requested tokens, one item per token found. | |||
| data.midpoints[].midpoint | number | No | 0.285 | Midpoint between the best bid and best ask for the token. | ||
| data.midpoints[].token_id | string | No | 81927025054404355287140018940169293739219157042658469116956164881873598220211 | Token id of the outcome. | ||
| data.missing | array | No | Requested token ids for which no midpoint was returned. | |||
| data.source_url | string | No | https://clob.polymarket.com/midpoints | URL the data was read from. | ||
| data.token_ids | array | No | Token ids that were requested. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X POST "https://api.crawlora.net/api/v1/polymarket/tokens/midpoints" \
-H "x-api-key: $CRAWLORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token_ids":["string"]}'