# BlockRun DeFiLlama Token Price Lookup

> BlockRun 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 for one or more crypto assets using CoinGecko IDs or EVM contract addresses via the DeFiLlama price feed

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/prices/coingecko:injective-protocol,coingecko:sui
- 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-defillama-token-price-lookup-dfa4c45a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zrJOZ91IZ29nvSqxYh6pX

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-defillama-token-price-lookup-dfa4c45a
```

Example prompt: What are the current prices of Injective Protocol and SUI? Pull them from the DeFiLlama price feed using their CoinGecko IDs coingecko:injective-protocol and coingecko:sui.

## When to prefer this

Use this endpoint when you need current token prices for one or more crypto assets and want to query by CoinGecko slug or EVM contract address. Prefer this over on-chain oracles when you need broad multi-chain token coverage and a simple REST interface. Ideal for DeFi analytics, portfolio valuation, and price enrichment workflows where pay-per-call pricing ($0.001 USDC) is acceptable.

## Known failure modes

- Invalid or unrecognized coin identifier returns empty or error response
- Unsupported token format (not coingecko: or chain:address prefix) may fail silently
- Payment of 0.001 USDC not provided or x402 handshake fails, returns 402 Payment Required
- Rate limiting if too many identifiers are passed in a single call
- Token delisted from DeFiLlama or CoinGecko returns null price

## 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 current USD prices for the requested tokens, keyed by their coin identifiers (e.g. coingecko:bitcoin or ethereum:0x...). Response includes a data object mapping each coin identifier to its price and related metadata.

## 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-defillama-token-price-lookup-dfa4c45a/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)
