# 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-14).

Returns current prices for one or more crypto tokens identified by coingecko slug or on-chain contract address via DefiLlama.

## Facts

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

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-df76aea4
```

Example prompt: What are the current prices for Ocean Protocol and SingularityNET? Use coingecko:ocean-protocol and coingecko:singularitynet as the coin identifiers.

## When to prefer this

Use this endpoint when you need fast, low-cost spot price lookups for one or more crypto tokens identifiable by coingecko slug or EVM contract address, especially when working within a Web3/x402 payment context. Prefer this over exchange-specific APIs when you need cross-chain token coverage via DefiLlama aggregation.

## Known failure modes

- Invalid coin identifier format returns empty or error response
- Unknown coingecko slug or contract address yields no price data
- Malformed comma-separated list may cause partial or failed lookups
- Network or upstream DefiLlama API unavailability returns 5xx error
- Payment not completed (x402) blocks access to the endpoint

## 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

A map of coin identifiers to their current USD prices, sourced from DefiLlama's price aggregation layer. Each entry keyed by the coin identifier (e.g. coingecko:bitcoin) with price value.

## 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-df76aea4/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)
