# BlockRun.AI DeFi Protocol Ranking

> BlockRun.AI DeFi Protocol Ranking is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0075/call, status unknown (last checked 2026-09-14).

Returns a ranked list of DeFi protocols sorted by a specified metric (e.g. TVL, volume, fees).

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/project/defi/ranking
- Price: $0.0075/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-67bc3b31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_olrgw_shHQPVR0O8byEUt

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-67bc3b31
```

Example prompt: Show me the current DeFi protocol rankings by TVL — I want to see which protocols are leading right now.

## When to prefer this

Use this endpoint when you need a ranked leaderboard of DeFi protocols sorted by a specific on-chain metric such as TVL, volume, or fees. Prefer this over general DeFi data endpoints when the goal is comparison and ranking rather than detailed per-protocol data.

## Known failure modes

- Missing required 'metric' query parameter returns 400 or error response
- Invalid or unsupported metric value returns error or empty results
- Upstream data source unavailable returns 5xx error
- Rate limit exceeded or payment failure returns 402 or 429

## How this service works

Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.

## Output

An ordered list of DeFi protocols ranked by the specified metric, including protocol names, rank positions, and corresponding metric values for each protocol.

## Example request

```json
{
 "metric": "tvl"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "metric": {
   "type": "string",
   "description": "Required query param"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-67bc3b31/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)
