# Polymarket — Get a token's price history

Get Polymarket Token Price History v2 data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as interval, limit, token_id, and retrieve structured data including observation timestamp, observed token price, resolution seconds, opaque continuation cursor, and response page-size context for versioned charts, and fixed-window collection.

Documentation: https://openany.si/polymarket/polymarket-get-a-token-s-price-history/a8b5eda6-9dce-4a8d-b962-94ea3ed58930/
API ID: a8b5eda6-9dce-4a8d-b962-94ea3ed58930
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/v2/prices-history
Page update time: 2026-12-03T02:49:29.364Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:28.650Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Token Price History v2 API

Provide token\_id explicitly. data contains price, timestamp and resolution\_seconds records; pagination provides has\_more and next\_cursor. Choose an explicit start/end window, an interval or as\_of point-in-time read without combining incompatible time modes.

## What You Can Build

- **Versioned charts**: Store prices with their returned resolution\_seconds.
- **Fixed-window collection**: Page a bounded time window without moving its end.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data[].timestamp` | Observation timestamp |
| `data[].price` | Observed token price |
| `data[].resolution_seconds` | Resolution of the returned observation in seconds |
| `pagination.has_more` | Whether another page is available |
| `pagination.next_cursor` | Opaque continuation cursor |
| `pagination.limit` | Response page-size context |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get a token's price history request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "token_id": {
          "type": "string",
          "description": "Outcome token id (the CLOB asset id the chart is keyed by). Required.\n`tokenId` is an accepted alias. This execution profile requires an explicit non-null value. The original optional/nullable OpenAPI declarations remain in officialOperation."
        },
        "start": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Window start, epoch seconds, INCLUSIVE. Alone it means \"up to the\npresent\", and is capped at 15 days back from now.\n\nPass `end` too when paging: a window that tracks the present keeps\ngrowing at the tip, and the 15-day cap is re-checked on every page, so a\nwalk that starts near the cap can outlive it."
        },
        "end": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Window end, epoch seconds, EXCLUSIVE. Requires `start`; on its own it\nwould ask for every point ever recorded up to `end`."
        },
        "interval": {
          "type": [
            "string",
            "null"
          ],
          "description": "Relative window INSTEAD of `start`/`end`: `max`, `all`, `1m`, `1w`,\n`1d`, `6h`, `1h`, matched case-sensitively. An empty `interval=` is a\nmalformed value, not an absent one.\n\n`max`/`all` serve the market's WHOLE life (back to 2022 for the oldest\nmarkets) at 12-hour buckets by default; at `bucket_seconds` of 10800 or\n43200 the window is unbounded, while finer widths keep a 30-day window.\nThe other intervals take a width sized to their own span when\n`bucket_seconds` is omitted (`1h`/`6h`/`1d` 60, `1w` 300, `1m` 1800), and\neach still floors an explicit value: 600 for `max`/`all`/`1m`, 300 for\n`1w`."
        },
        "bucket_seconds": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Bucket width in SECONDS (60…86400). `bucketSeconds` is an accepted alias.\n\nOMIT it and the server sizes the width to the window: the finest tier\ngrain (60, 300, 1800, 10800, 43200) that keeps the series under ~2,500\npoints, except that an explicit window wider than 12 hours never\ndefaults to the 60s grain (send `bucket_seconds=60` when you want\nsecond-by-minute detail over a longer window), and coarsened further if\nthat grain no longer reaches the window's start.\nSo a window up to 12 hours keeps 1-minute detail, half a day through a\nweek defaults to 300, fifteen days to 1800; interval presets keep their\nown span-derived defaults (`1d` 60s, `1w` 300, `1m` 1800, and the\nunbounded `max`/`all` 43200).\n\nSEND it and it is served exactly as asked, which for a window older than\nthat resolution's retention means an empty page rather than a silent\nsubstitution. An explicit value is also floored per interval: 600 for\n`max`/`all`/`1m`, 300 for `1w`."
        },
        "as_of": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Point-in-time read, epoch seconds, INCLUSIVE: the latest observation at\nor before this instant. Cannot be combined with a window. `asOf` is an\naccepted alias."
        },
        "limit": {
          "type": [
            "integer",
            "null"
          ],
          "description": "First-page size; defaults to the cap (10,000). Ignored when `cursor` is\nsupplied (the cursor's size wins).",
          "minimum": 0,
          "maximum": 10000
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque pagination cursor from a prior response's `next_cursor`."
        }
      },
      "required": [
        "token_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "price": {
            "type": "number"
          },
          "resolution_seconds": {
            "type": "integer"
          },
          "timestamp": {
            "type": "integer"
          }
        }
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "limit": {
          "type": "integer"
        },
        "next_cursor": {
          "type": "string"
        },
        "offset": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/v2/prices-history?interval=1d&limit=2&token_id=20006732765674855733524007935991362439352594042415161039767275461950712817548' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "data": [
    {
      "price": 0.475,
      "resolution_seconds": 60,
      "timestamp": 1793196240
    },
    {
      "price": 0.475,
      "resolution_seconds": 60,
      "timestamp": 1793196300
    }
  ],
  "pagination": {
    "has_more": true,
    "limit": 2,
    "next_cursor": "eyJkYXRhIjp7InR5cGUiOiJwcmljZXNfaGlzdG9yeSIsInBhcmFtcyI6eyJsIjoyLCJ0cyI6MTc5MzE5NjMwMCwic3EiOiI2MCIsImQiOjJ9fSwic2lnIjoiYWRmNmQzMzBhN2Y3N2NjOTIyNDdkZjM2YjY4YzI3NjEifQ",
    "offset": 0
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do explicit time bounds work?
start is inclusive and end is exclusive, in epoch seconds. end requires start. With start alone the window tracks the present and is capped at 15 days back; set end when paging a fixed window.

### Can I combine interval, as_of and start/end?
Use one time mode. interval replaces start/end, while as_of reads the latest observation at or before an instant and cannot be combined with a window.

### Is bucket_seconds the same as fidelity?
No. Here bucket_seconds is in seconds, from 60 to 86400. Default sizing adapts to the window; explicit widths remain subject to the documented interval floors and resolution retention. Read resolution_seconds in the result.

### How do I continue a paged history read?
Pass pagination.next_cursor as cursor and preserve the lookup context. limit controls the first page, up to 10000; the cursor's page size takes precedence on continuation.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-get-a-token-s-price-history/a8b5eda6-9dce-4a8d-b962-94ea3ed58930/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
