# CoinGecko Historical Crypto Price Snapshot

> CoinGecko Historical Crypto Price Snapshot is a paid API for AI agents from coingecko.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns price, market cap, and 24h volume snapshot for any cryptocurrency on a specific historical date, via CoinGecko.

## Facts

- Endpoint: GET https://coingecko.use.x402atlas.com/history
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-historical-crypto-price-snapshot-8c712c2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aAbtpo7omZJk2VV0ZwFSg

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-crypto-price-snapshot-8c712c2d
```

Example prompt: What was Bitcoin's price, market cap, and 24h volume on 14-03-2021 in USD? Use the CoinGecko coin id 'bitcoin'.

## When to prefer this

Use this endpoint when you need a point-in-time historical price, market cap, or volume snapshot for a specific cryptocurrency on a specific date. Prefer this over real-time price endpoints when the user asks about past prices, historical performance, or wants to know what a coin was worth on a particular day.

## Known failure modes

- Invalid or unknown CoinGecko coin id returns an error or empty result
- Date formatted incorrectly (not DD-MM-YYYY) causes a bad request error
- Date too far in the past or future may return no data
- Unsupported currency code returns an error
- Payment not processed results in 402 response

## How this service works

Historical crypto price on a specific date — price, market cap and 24h volume snapshot for any coin by CoinGecko id, in USD or more.

## Output

Returns a JSON object containing the historical price, market capitalization, and 24-hour trading volume for the specified coin on the given date, denominated in the requested currency (default USD).

## 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",
      "date"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "CoinGecko coin id slug"
      },
      "date": {
       "type": "string",
       "pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{4}$",
       "description": "Snapshot date in DD-MM-YYYY format (day-first, not ISO). Only the trailing ~365 days are available; older dates are rejected"
      },
      "vs_currency": {
       "type": "string",
       "default": "usd",
       "description": "Target currency code (default: usd)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "id",
      "date",
      "vs_currency"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "CoinGecko coin id slug"
      },
      "date": {
       "type": "string",
       "description": "Snapshot date, echoed in DD-MM-YYYY format"
      },
      "price": {
       "type": "number",
       "description": "Price on the snapshot date"
      },
      "market_cap": {
       "type": "number",
       "description": "Market cap on the snapshot date"
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "UTC timestamp the upstream was queried"
      },
      "vs_currency": {
       "type": "string",
       "description": "Currency the figures are quoted in"
      },
      "total_volume": {
       "type": "number",
       "description": "24h trading volume on the snapshot date"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "bitcoin",
  "date": "30-12-2020",
  "price": 28966,
  "market_cap": 538856000000,
  "queried_at": "2026-06-08T12:00:00Z",
  "vs_currency": "usd",
  "total_volume": 26649000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-historical-crypto-price-snapshot-8c712c2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coingecko.use.x402atlas.com](https://www.zero.xyz/host/coingecko.use.x402atlas.com/llms.txt)
