# x402engine Crypto Price History

> x402engine Crypto Price History is a paid API for AI agents from x402engine.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Fetches historical price, market cap, and volume data for a cryptocurrency over a specified time range and currency

## Facts

- Endpoint: GET https://x402engine.app/api/crypto/history
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402engine-crypto-price-history-86ef7109
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3ihPwa8EDRl4BprcZ2eHt

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 x402engine-crypto-price-history-86ef7109
```

Example prompt: Can you pull the last 90 days of daily Bitcoin price history in USD so I can see how it's been trending?

## When to prefer this

Use this endpoint when you need time-series historical cryptocurrency price data for charting, backtesting, portfolio analysis, or trend reporting, and want to pay per-call with micropayments rather than managing an API subscription. Prefer this over direct CoinGecko API access when operating within an x402 payment-enabled agent workflow on Base, MegaETH, or Solana.

## Known failure modes

- Invalid coin ID returns an error — must use CoinGecko-compatible IDs like 'bitcoin', 'ethereum'
- Days parameter out of range (must be 1-365 or 'max') returns a validation error
- Unsupported fiat currency code returns an error
- Payment failure if USDC/USDm balance is insufficient
- Rate limiting or upstream CoinGecko API unavailability causes 5xx errors

## How this service works

Historical price, market cap, and volume data for any coin

## Output

Returns a time-series dataset containing historical price, market capitalization, and total volume for the specified cryptocurrency, denominated in the requested fiat currency, spanning the requested number of days at the specified interval (e.g. daily). Data points are typically returned as arrays of [timestamp, value] pairs.

## 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": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "example": "bitcoin",
       "description": "Coin ID"
      },
      "days": {
       "type": "string",
       "default": "30",
       "example": "30",
       "description": "Days of history (1-365 or \"max\")"
      },
      "currency": {
       "type": "string",
       "default": "usd",
       "example": "usd",
       "description": "Fiat currency"
      },
      "interval": {
       "type": "string",
       "example": "daily",
       "description": "Data interval (daily)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402engine-crypto-price-history-86ef7109/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
