# prediction-intel Polymarket History

> prediction-intel Polymarket History is a paid API for AI agents from prediction-intel-tan.vercel.app, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Fetches historical price/probability time-series data for a specific Polymarket prediction market outcome token

## Facts

- Endpoint: GET https://prediction-intel-tan.vercel.app/api/history
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-intel-polymarket-history-0c1cffe6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YoSJc3zSKSTGgwCuXA8Lj

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 prediction-intel-polymarket-history-0c1cffe6
```

Example prompt: Pull the price history for Polymarket outcome token 12345678 over the last week at hourly resolution so I can see how the probability has shifted.

## When to prefer this

Use this endpoint when you need historical probability or price time-series data for a specific Polymarket prediction market outcome, particularly when building charts, backtesting strategies, or analyzing how market sentiment evolved over time. Prefer this over live/current-price endpoints when trend analysis or historical context is needed.

## Known failure modes

- Invalid or unknown clobTokenId returns an error or empty data
- Unsupported interval value results in a 400 bad request
- Service unavailable if Polymarket CLOB API is down
- Payment failure if insufficient USDC balance on Base for the $0.008 per-call fee
- Very narrow fidelity on a long interval may return too many data points or timeout

## How this service works

Pay-per-call crypto/web3 data for AI agents. USDC via x402 on Base.

## Output

Returns a time-series of historical price/probability data points for the specified Polymarket outcome token, with granularity controlled by the fidelity (minutes per point) and interval (time window) parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tokenId": {
   "type": "string",
   "description": "clobTokenId of an outcome."
  },
  "fidelity": {
   "type": "number",
   "description": "Resolution in minutes (default 60)."
  },
  "interval": {
   "type": "string",
   "description": "1m,1h,6h,1d,1w,max (default 1d)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-intel-polymarket-history-0c1cffe6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prediction-intel-tan.vercel.app](https://www.zero.xyz/host/prediction-intel-tan.vercel.app/llms.txt)
