# Token Prices (DefiLlama)

> Token Prices (DefiLlama) is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns current prices, symbols, timestamps, and confidence scores for up to 50 tokens identified by CoinGecko ID or on-chain address, sourced from DefiLlama.

## Facts

- Endpoint: GET https://x402.shizu.me/llama/prices
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-prices-defillama-88e27f38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_12svpE2sjF0bvQarG4jCB

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 token-prices-defillama-88e27f38
```

Example prompt: What are the current prices for Bitcoin, Ethereum, and the USDC token on Arbitrum (0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8)?

## When to prefer this

Choose this endpoint when you need live token prices from DefiLlama with confidence scores, especially for DeFi tokens identified by on-chain contract address across multiple chains — not just CoinGecko top-tier assets. Prefer it over CoinGecko direct API when you need multi-chain address-based lookups or want a paid, low-friction x402 micropayment flow without API key management.

## Known failure modes

- Invalid coin ID format returns an error or empty result for that coin
- Requesting more than 50 coins at once may be rejected or truncated
- Unknown tokens or delisted coins return no data for that entry
- Payment failure (402) if USDC balance is insufficient
- Stale confidence score if DefiLlama upstream data is delayed

## How this service works

Current token prices from DefiLlama. Query: coins — a comma list of coin ids like coingecko:bitcoin or <chain>:<address> (up to 50). Each: price, symbol, timestamp, confidence. Prices move — poll it.

## Output

A JSON object keyed by coin ID, where each entry contains the token's current price in USD, its symbol, the Unix timestamp of the price data, and a confidence score (0–1) indicating data reliability. Up to 50 tokens can be returned per call.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "coins": {
       "type": "string"
      }
     },
     "required": [
      "coins"
     ]
    }
   },
   "required": [
    "method"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "prices": {
   "coingecko:bitcoin": {
    "price": 64428.4,
    "symbol": "BTC",
    "timestamp": 1785311942,
    "confidence": 0.99
   }
  },
  "source": "defillama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-prices-defillama-88e27f38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
