# Zapper Historical Token Price

> Zapper Historical Token Price is a paid API for AI agents from public.zapper.xyz, paid per call via x402, $0.001125/call, status down (last checked 2026-09-16).

Returns the historical USD price of an ERC20 or gas token at a specific past timestamp on a given blockchain network.

## Facts

- Endpoint: POST https://public.zapper.xyz/x402/historical-token-price
- Price: $0.001125/call
- Payment: x402
- Status: down
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-zapper-xyz-bb417b90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_twWPHJ4IvIf9PSbeZsuJo

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 public-zapper-xyz-bb417b90 -d '<json body>'
```

Example prompt: What was the price of USDC (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Ethereum mainnet (chain ID 1) on January 1st 2024 at midnight UTC?

## When to prefer this

Use this endpoint when you need the USD price of a specific token at a past point in time on a supported EVM chain. Ideal for portfolio P&L calculations, historical trade valuation, tax reporting, or auditing past DeFi positions. Prefer this over current-price endpoints when the timestamp is historical rather than real-time.

## Known failure modes

- Invalid token contract address returns error or empty result
- Unsupported chain ID results in no data found
- Timestamp too far in the past may return null or unavailable price
- Malformed unix timestamp (wrong units, e.g. seconds instead of milliseconds) causes incorrect or missing results
- Token with no price history at that timestamp returns empty or null price

## How this service works

Get a token's price at a specific timestamp on a given chain, returned in the requested currency.

## Output

Returns historical price data for the specified token at the given timestamp, including the USD price and related metadata for that point in time.

## Example request

```json
{
 "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
 "chainId": 1,
 "timestamp": 1704067200000
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "The 0x contract address of the token"
  },
  "chainId": {
   "type": "integer",
   "description": "The Chain ID (e.g. 8453 for Base)"
  },
  "currency": {
   "type": "string",
   "default": "USD",
   "description": "Currency for price data (default: USD)"
  },
  "timestamp": {
   "type": "integer",
   "description": "The unix timestamp (in milliseconds) for the historical lookup"
  }
 }
}
```

## More

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