# Token Price by Contract Address (DefiLlama, Batch)

> Token Price by Contract Address (DefiLlama, Batch) is a paid API for AI agents from task-radar-x402.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns current token prices for up to 20 tokens identified by chain:address pairs, sourced from DefiLlama coins data.

## Facts

- Endpoint: GET https://task-radar-x402.vercel.app/api/token-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-price-by-contract-address-defillama-batch-77379437
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MIX-EWKp9TATPNq50Jc7x

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-price-by-contract-address-defillama-batch-77379437
```

Example prompt: What's the current USD price of WETH on Ethereum (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) and USDC on Base (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)?

## When to prefer this

Use this endpoint when you need current USD prices for one or more tokens identified by contract address across any EVM-compatible (or supported) chain, especially when you need to batch up to 20 lookups in a single paid API call. Prefer this over CoinGecko-based or symbol-based lookups when you have exact contract addresses and need reliable DeFi-native pricing from DefiLlama.

## Known failure modes

- Invalid or unrecognized contract address returns no price for that token
- Unsupported chain identifier results in lookup failure for that token
- Exceeding 20 tokens per batch may result in an error or partial response
- Payment failure (insufficient USDC balance on Base) blocks the request
- Network or DefiLlama upstream outage may result in stale or unavailable prices

## How this service works

Token price by contract address on any chain (DefiLlama coins), batch up to 20. 0.01 USDC/call on Base.

## Output

Returns a mapping of each chain:address token to its current USD price as sourced from DefiLlama's coins dataset, supporting up to 20 tokens per request.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "tokens": {
       "type": "string",
       "description": "Comma-separated chain:address, e.g. base:0x8335...,ethereum:0xA0b8..."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-price-by-contract-address-defillama-batch-77379437/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from task-radar-x402.vercel.app](https://www.zero.xyz/host/task-radar-x402.vercel.app/llms.txt)
