# BlockRun.AI DeFiLlama Token Price Lookup

> BlockRun.AI DeFiLlama Token Price Lookup is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches current token prices by coin identifier (CoinGecko slug or contract address) via the DeFiLlama price feed, supporting comma-separated multi-token queries.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/prices/coingecko:base-protocol
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-defillama-token-price-lookup-f36746b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1WxQd9-bXc2IkD7qDbMH8

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 blockrun-ai-defillama-token-price-lookup-f36746b4
```

Example prompt: What's the current price of Bitcoin and Ethereum right now? Also grab the price of WETH at contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on Ethereum while you're at it.

## When to prefer this

Use this endpoint when you need real-time token price lookups across a wide range of assets including both CoinGecko-listed tokens and arbitrary ERC-20 contracts by address. It is particularly useful for DeFi-native workflows where you may have contract addresses rather than named tokens, or when you need to price multiple tokens in a single call. Prefer this over CoinGecko direct API when you want DeFiLlama's aggregated pricing and the x402 micropayment model suits your agent's billing setup.

## Known failure modes

- Invalid or unknown coin identifier returns an empty result or error for that token
- Malformed identifier format (missing prefix like 'coingecko:') may result in no data returned
- Network or upstream DeFiLlama API unavailability causes 5xx errors
- Payment failure (insufficient USDC balance) results in 402 Payment Required
- Rate limiting may apply if many requests are sent in rapid succession

## How this service works

Token price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.

## Output

Returns a JSON object containing the current USD price(s) for the requested coin identifiers, keyed by the coin identifier string (e.g. coingecko:bitcoin). Each entry typically includes the price value and a timestamp of when the price was last updated, sourced from the DeFiLlama price aggregator.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "query": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-defillama-token-price-lookup-f36746b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
