# CoinGecko Historical Coin Data

> CoinGecko Historical Coin 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-13).

Retrieves a historical snapshot of cryptocurrency coin data (price, market cap, volume, community, developer stats) for a specific past date

## Facts

- Endpoint: POST https://stablecrypto.dev/api/coingecko/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-historical-coin-data-6116e09f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SeUXK2i7gZbCbY9SyBF2K

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-coin-data-6116e09f -d '<json body>'
```

Example prompt: What did Bitcoin look like on 01-01-2021? Can you pull the historical snapshot from CoinGecko — price, market cap, volume, all of it — for that exact date?

## When to prefer this

Use this endpoint when you need point-in-time historical cryptocurrency data for a specific past date — such as auditing portfolio performance on a past date, backtesting trading strategies, or researching market conditions on a historical event date. Prefer this over live price endpoints when the date of interest is in the past and you need full snapshot data including community and developer metrics.

## Known failure modes

- Invalid coin ID returns an error or empty response
- Date in wrong format (not dd-mm-yyyy) causes a validation error
- Date in the future or before coin listing returns no data
- Network timeout or upstream CoinGecko API unavailability returns a 5xx error
- Payment not fulfilled results in 402 Payment Required response

## How this service works

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

## Output

Returns a JSON object with the coin's id, name, symbol, image URLs, historical market data (prices, market cap, volume in various currencies), community data (social media followers, reddit stats), and developer data (GitHub activity) as recorded on the specified date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Coin ID"
  },
  "date": {
   "type": "string",
   "description": "Date in dd-mm-yyyy format"
  },
  "localization": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-historical-coin-data-6116e09f/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)
