# BlockRun DeFiLlama Protocol Lookup

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

Fetches DeFiLlama protocol data for a given protocol slug via BlockRun's pay-per-call gateway settled in USDC

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/protocol/%7Bslug%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-defillama-protocol-lookup-7f8b95cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9w7a7ror_-gR7w1O6t0rJ

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-protocol-lookup-7f8b95cf
```

Example prompt: Pull the DeFiLlama protocol data for 'uniswap' — I want to see its TVL and other metrics.

## When to prefer this

Use this endpoint when you need DeFiLlama protocol data without setting up a DeFiLlama API key, want pay-per-call micropayment billing in USDC on Base or Solana, or are operating in an agent environment (OpenClaw, Claude Code, Franklin Agent) where per-call crypto settlement is preferable to subscription API keys.

## Known failure modes

- Invalid or unknown protocol slug returns empty or error response
- Payment failure in USDC settlement prevents call from completing
- DeFiLlama upstream unavailability causes timeout or 503
- Malformed slug (e.g. spaces, wrong casing) may return no data
- Rate limiting or insufficient USDC balance blocks request

## How this service works

14M+ on-chain transactions. The routing & payment layer for AI. One endpoint routes to every frontier model — payment built in, settled in USDC on Base & Solana. One install for OpenClaw, Claude Code, or Franklin Agent.

## Output

Returns a JSON object containing DeFiLlama protocol data for the specified slug, including metrics such as TVL, protocol details, chain breakdown, and historical data as provided by DeFiLlama's API.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "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-protocol-lookup-7f8b95cf/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)
