# 2s Crypto Token Price History

> 2s Crypto Token Price History is a paid API for AI agents from 2s.io, paid per call via x402, $0.004998/call, status unknown (last checked 2026-09-14).

Fetches historical price data for a cryptocurrency token at configurable intervals and fidelity

## Facts

- Endpoint: GET https://2s.io/api/predict/price-history
- Price: $0.004998/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-crypto-token-price-history-66436943
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8A3bKoezzju32nH2errgD

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 2s-crypto-token-price-history-66436943
```

Example prompt: Can you pull up the daily price history for the token with ID 'bitcoin' over the last month, with a fidelity of 30 data points?

## When to prefer this

Use this endpoint when you need historical price data for a cryptocurrency token and want flexible interval and fidelity control, no API key signup, and pay-per-call USDC pricing. Ideal for AI agents that need on-demand, ground-truth crypto price history without subscription overhead.

## Known failure modes

- Invalid or unknown tokenId returns an error or empty result
- Fidelity value out of range (1-1440) causes a validation error
- Unsupported interval value causes a schema validation error
- Token with no historical data returns empty series
- Network or payment failure returns HTTP 402 or 5xx error

## How this service works

Time-series price (implied-probability) history for a Polymarket outcome token. Pass the CLOB token id and an interval (1h, 6h, 1d, 1w, 1m, max). Returns timestamped price points — for charting how a market's odds moved. Read-only from Polymarket's CLOB.

## Output

Returns a time-series of historical price data for the specified cryptocurrency token, with data points sampled at the requested interval (e.g. hourly, daily, weekly) and fidelity level (number of data points up to 1440).

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tokenId"
     ],
     "properties": {
      "tokenId": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1
      },
      "fidelity": {
       "type": "integer",
       "maximum": 1440,
       "minimum": 1
      },
      "interval": {
       "enum": [
        "1h",
        "6h",
        "1d",
        "1w",
        "1m",
        "max"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-crypto-token-price-history-66436943/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
