# CoinGecko Historical Chart Data

> CoinGecko Historical Chart Data is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns historical price, volume, and market cap time-series data for a cryptocurrency over a specified time range

## Facts

- Endpoint: POST https://stablecrypto.dev/api/coingecko/chart
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-historical-chart-data-137050ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_siaTggV-sD5Ye8gFNeFkM

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 coingecko-historical-chart-data-137050ca -d '<json body>'
```

Example prompt: Show me the daily price and market cap history for Ethereum in USD over the last 90 days.

## When to prefer this

Use this endpoint when you need historical price, volume, or market cap time-series data for a specific cryptocurrency. Prefer this over live price endpoints when you need trend analysis, charting, or backtesting. Choose it over broader market endpoints when you have a specific coin and time range in mind.

## Known failure modes

- Invalid coin ID returns an error — use CoinGecko slug format (e.g. 'bitcoin', not 'BTC')
- Unsupported days value causes rejection — must be 1, 7, 14, 30, 90, 180, 365, or 'max'
- Unsupported vs_currency value results in error
- Payment failure if USDC balance is insufficient for the $0.01 per-call fee
- Rate limiting or upstream CoinGecko API unavailability may return 503

## How this service works

Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.

## Output

An object containing three parallel time-series arrays: prices (timestamp + price pairs), market_caps (timestamp + market cap pairs), and total_volumes (timestamp + volume pairs), all covering the requested coin and time range.

## Example request

```json
{
 "id": "ethereum",
 "days": "90",
 "interval": "daily",
 "vs_currency": "usd"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Coin ID"
  },
  "days": {
   "type": "string",
   "description": "Data range in days (1, 7, 14, 30, 90, 180, 365, max)"
  },
  "interval": {
   "type": "string",
   "description": "Data interval (e.g. \"daily\")"
  },
  "precision": {
   "type": "string"
  },
  "vs_currency": {
   "type": "string",
   "description": "Target currency"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-historical-chart-data-137050ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
