# Polymarket Price History

> Polymarket Price History is a paid API for AI agents from agentx.sale, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-17).

Returns YES-share price time series for a Polymarket prediction market over 1–90 days, with 24h-style percentage change and high/low values

## Facts

- Endpoint: GET https://agentx.sale/x402/polymarket-history?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-price-history-682e3408
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rBqgOM-DiTjNI-AsDC7zr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability polymarket-price-history-682e3408
```

Example prompt: Pull the YES-share price history for the Polymarket market about the 2024 US presidential election over the last 30 days and show me the 24h change and the high/low.

## When to prefer this

Use this endpoint when you need historical YES-share price data and probability trends for a specific Polymarket prediction market over a configurable time window (1–90 days). Prefer this over the trending endpoint when you already know which market you care about and need time-series data rather than a snapshot. Ideal for charting, analyzing momentum, or backtesting prediction accuracy.

## Known failure modes

- No market found matching query string — returns empty or null series
- days parameter out of range (must be 1–90) — may return error or truncated data
- Polymarket data source unavailable — upstream fetch failure
- Payment not fulfilled (x402 protocol) — 402 Payment Required response before data is returned
- Ambiguous query string matching multiple markets — may return data for wrong market

## How this service works

Polymarket price history: YES-share series for a market over 1-90 days with 24h-style change and high/low

## Output

A JSON object containing: a time-series array of {timestamp, price} objects representing YES-share prices; the market question string; and a changePct float representing the 24h-style percentage change. Also implicitly includes high/low from the series.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string"
      },
      "days": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "series": [
   {
    "t": 1730000000,
    "price": 0.94
   }
  ],
  "question": "...",
  "changePct": -1.2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-price-history-682e3408/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentx.sale](https://www.zero.xyz/host/agentx.sale/llms.txt)
