# Zapper Token Price API

> Zapper Token Price API 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-15).

Returns real-time token price, market cap, and price change metrics for a given ERC20 token contract address and chain ID.

## Facts

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

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-5e8f6913 -d '<json body>'
```

Example prompt: What's the current USD price and market cap of the token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum (chain ID 1)?

## When to prefer this

Use this endpoint when you need real-time on-chain token price and market data (market cap, volume, liquidity, price changes) for a specific ERC20 token identified by its contract address and chain. It is particularly well-suited for DeFi applications needing Zapper's aggregated multi-chain pricing data rather than a centralized exchange feed.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty data
- Unsupported chain ID may return no results
- Token not indexed by Zapper returns null or empty token data
- Invalid currency code may fall back to USD or return an error
- Network timeout or rate limit may return a 429 or 5xx error

## How this service works

Get real-time token price and market cap

## Output

Returns a JSON object containing the token's current price in the requested currency, market capitalization, price change percentages over 5 minutes, 1 hour, and 24 hours, 24-hour trading volume, total liquidity, gas token liquidity, token symbol, name, decimals, and image URL.

## Example request

```json
{
 "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
 "chainId": 1,
 "currency": "USD"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "The 0x contract address"
  },
  "chainId": {
   "type": "integer",
   "description": "The Chain ID (e.g. 8453 for Base)"
  },
  "currency": {
   "type": "string",
   "default": "USD",
   "description": "Currency for price data (default: USD)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-zapper-xyz-5e8f6913/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)
