# BlockRun.AI DeFiLlama Protocol TVL Lookup

> BlockRun.AI DeFiLlama Protocol TVL Lookup is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-13).

Fetches detailed Total Value Locked (TVL) data and chain/category breakdown for a single DeFi protocol by its DeFiLlama slug.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/protocol/ethereum
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-defillama-protocol-tvl-lookup-d44125f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1R8mv4Lsvc50OJdtpboKa

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-protocol-tvl-lookup-d44125f2
```

Example prompt: What's the current TVL for Aave across all chains? Can you pull up the full breakdown from DeFiLlama — I want to see how it's distributed?

## When to prefer this

Use this endpoint when you need detailed TVL data and chain-level breakdown for a single specific DeFi protocol by its DeFiLlama slug. Prefer this over token price endpoints when the goal is protocol-level DeFi metrics rather than price data. Ideal when you need historical TVL, multi-chain TVL distribution, or category breakdown for a known protocol.

## Known failure modes

- Invalid or unknown protocol slug returns empty or error response
- Protocol not tracked by DeFiLlama returns no data
- Payment of 0.007 USDC not provided results in 402 Payment Required
- Rate limiting or gateway errors on upstream DeFiLlama API
- Slug format mismatch (e.g. using token symbol instead of DeFiLlama slug)

## How this service works

Detailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).

## Output

Returns detailed TVL data for the requested protocol including total TVL, per-chain breakdown, category breakdown, and protocol metadata sourced from DeFiLlama.

## 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-protocol-tvl-lookup-d44125f2/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)
