# CoinStats Historical Average Price

> CoinStats Historical Average Price is a paid API for AI agents from x402.coinstats.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the historical average price of a cryptocurrency at a specified timestamp

## Facts

- Endpoint: GET https://x402.coinstats.app/coins/price/avg
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-coinstats-app-dea13e2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1St2YAjw42XciUr6uCUZM

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-coinstats-app-dea13e2f
```

Example prompt: What was the average price of Ethereum (ETH) on January 15, 2024? Use CoinStats to look up the historical average price at that timestamp.

## When to prefer this

Use this endpoint when you need the average market price of a specific cryptocurrency at a precise historical point in time — ideal for portfolio valuation, tax calculations, trade reconstruction, or cost-basis analysis. Prefer over live price endpoints when historical accuracy at a specific timestamp is required rather than real-time data.

## Known failure modes

- Invalid or unsupported coin identifier returns an error response
- Timestamp out of supported historical range returns no data
- Malformed timestamp format causes request failure
- Missing required parameters returns a 400-level error
- Payment not processed results in 402 response

## How this service works

CoinStats historical average price for a cryptocurrency at a given timestamp

## Output

Returns the historical average price of the specified cryptocurrency at the given Unix timestamp, denominated in the requested fiat or base currency.

## Example request

```json
{
 "input": {
  "method": "GET"
 },
 "coinId": "bitcoin",
 "timestamp": 1705276800
}
```

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-coinstats-app-dea13e2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.coinstats.app](https://www.zero.xyz/host/x402.coinstats.app/llms.txt)
