# Polymarket — Get prices history

Get Polymarket Price History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as fidelity, interval, market, and retrieve structured data including historical price observations, observation timestamp, and observed price for outcome charts, and historical comparisons, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-get-prices-history/f03814f3-9a5a-4793-a2e1-6e645e7cb4e6/
API ID: f03814f3-9a5a-4793-a2e1-6e645e7cb4e6
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/prices-history
Page update time: 2026-12-03T02:49:27.851Z
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:27.491Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Price History API

The required market query field identifies an asset, rather than an event or condition. The response history array contains t and p observations. This implementation uses camelCase startTs and endTs and minute-based fidelity.

## What You Can Build

- **Outcome charts**: Plot timestamped prices for a selected asset.
- **Historical comparisons**: Collect consistently configured windows for later analysis.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `history[]` | Historical price observations |
| `history[].t` | Observation timestamp |
| `history[].p` | Observed price |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get prices 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": {
        "market": {
          "type": "string",
          "description": "The market (asset id) to query."
        },
        "startTs": {
          "type": "number",
          "description": "Filter by items after this unix timestamp."
        },
        "endTs": {
          "type": "number",
          "description": "Filter by items before this unix timestamp."
        },
        "interval": {
          "type": "string",
          "description": "Time interval for data aggregation.",
          "enum": [
            "max",
            "all",
            "1m",
            "1w",
            "1d",
            "6h",
            "1h"
          ]
        },
        "fidelity": {
          "type": "integer",
          "description": "Accuracy of the data expressed in minutes. Default is 1 minute."
        }
      },
      "required": [
        "market"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "p": {
            "type": "number"
          },
          "t": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/prices-history?fidelity=60&interval=1d&market=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
{
  "history": [
    {
      "p": 0.485,
      "t": 1793199657
    },
    {
      "p": 0.445,
      "t": 1793203227
    },
    {
      "p": 0.455,
      "t": 1793206833
    },
    {
      "p": 0.52,
      "t": 1793214003
    },
    {
      "p": 0.505,
      "t": 1793221246
    },
    {
      "p": 0.515,
      "t": 1793224841
    },
    {
      "p": 0.505,
      "t": 1793228429
    },
    {
      "p": 0.465,
      "t": 1793232000
    },
    {
      "p": 0.445,
      "t": 1793242844
    },
    {
      "p": 0.455,
      "t": 1793246432
    },
    {
      "p": 0.455,
      "t": 1793250040
    },
    {
      "p": 0.445,
      "t": 1793253652
    },
    {
      "p": 0.445,
      "t": 1793257226
    },
    {
      "p": 0.45,
      "t": 1793260819
    },
    {
      "p": 0.46,
      "t": 1793264443
    },
    {
      "p": 0.465,
      "t": 1793268026
    },
    {
      "p": 0.455,
      "t": 1793271637
    },
    {
      "p": 0.445,
      "t": 1793275254
    },
    {
      "p": 0.455,
      "t": 1793278824
    },
    {
      "p": 0.455,
      "t": 1793282427
    },
    {
      "p": 0.455,
      "t": 1793282602
    }
  ]
}
```

## 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
### What goes in market?
Use the asset ID for the outcome to chart. The parameter is named market, but its contract describes an asset ID.

### Which interval values are supported?
The contract lists max, all, 1m, 1w, 1d, 6h and 1h. Preserve the exact literal value.

### How is fidelity interpreted?
fidelity is an integer measured in minutes. It is distinct from the bucket_seconds control of the v2 token history route.

### Is this the same as batch history?
No. This GET route uses market, startTs and endTs and returns one history array. Batch history uses a markets array, snake_case bounds and a map of series.

### 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-prices-history/f03814f3-9a5a-4793-a2e1-6e645e7cb4e6/

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