# x402 Token Price History

> x402 Token Price History is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Returns a USD price time series (1–365 days) or exact past-date price for any token, identified by CoinGecko ID or chain:address, with change %, high, and low.

## Facts

- Endpoint: GET https://api.x-402.online/v1/token/price-history?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-token-price-history-b3bdbe26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bwmuWmTjAHFFzHnBp9Nsm

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 x402-token-price-history-b3bdbe26
```

Example prompt: What was Ethereum's price history over the last 30 days — give me the daily high, low, and overall change percentage?

## When to prefer this

Use this endpoint when you need historical USD price data for a crypto token identified by CoinGecko ID or on-chain address, especially when you want a time series with highs, lows, and percent change over a flexible window up to 365 days. Prefer this over raw blockchain data sources when you want clean, aggregated OHLC-style data without running your own indexer.

## Known failure modes

- Unknown CoinGecko ID returns 404 or empty result
- Invalid chain:address format causes a bad request error
- Date range outside 1–365 days may be rejected
- Token with no CoinGecko data (too new or delisted) returns no data
- Payment failure via x402 protocol blocks the request

## How this service works

Token price history in USD by CoinGecko id or chain:address: a 1-365 day time series with change %, high and low, or the price at an exact past date Token price history in USD for any coin by CoinGecko id or by chain:address: a time series over 1 to 365 days with change %, high and low, or the price at an…

## Output

A time series of USD token prices over the requested period (1–365 days) including daily or granular data points, percentage change over the period, and high/low values — or the exact USD price at a specified past date.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-token-price-history-b3bdbe26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
