# 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-11-27).

Returns detailed Total Value Locked (TVL) data and breakdown for a single DeFi protocol by slug identifier via DeFiLlama.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/protocol/fables?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-defillama-protocol-tvl-lookup-22d8585e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bz23yzsMlqipf9Yx1rRUR

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-22d8585e
```

Example prompt: Can you pull the full TVL breakdown for Aave from DeFiLlama, including how it's distributed across chains?

## When to prefer this

Use this endpoint when you need granular, chain-level TVL breakdown data for a specific DeFi protocol by its DeFiLlama slug. Prefer this over generic crypto data APIs when you need the authoritative DeFiLlama TVL figures with full breakdown, or when building DeFi analytics, portfolio monitoring, or protocol comparison tools that require per-chain and per-token TVL decomposition.

## Known failure modes

- Invalid or misspelled protocol slug returns no data or 404-style error
- Protocol not tracked by DeFiLlama returns empty or error response
- Newly launched protocols may have incomplete TVL history
- Rate limiting or payment failure (x402) if USDC balance is insufficient

## How this service works

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

## Output

A detailed JSON object containing Total Value Locked figures for the specified protocol, including overall TVL, per-chain TVL breakdown, token composition breakdown, historical TVL data points, and protocol metadata such as category and chain deployment information — 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-22d8585e/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)
