# BlockRun DeFi Protocol Metrics

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

Returns per-protocol DeFi metrics including TVL, fees, and revenue for a given metric type.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/project/defi/metrics
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-defi-protocol-metrics-5d1fff55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__vWn7q5OEdM4P3I3CF0xa

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-defi-protocol-metrics-5d1fff55
```

Example prompt: What's the current TVL metric for DeFi protocols? Pull the latest per-protocol DeFi metrics from BlockRun.

## When to prefer this

Use this endpoint when you need granular, per-protocol DeFi financial metrics such as TVL, fees, or revenue on a pay-per-call basis without needing a long-term API subscription. Ideal for agents that need on-demand DeFi analytics settled in USDC on Base via x402.

## Known failure modes

- Missing required 'metric' query parameter returns an error
- Invalid metric name returns no data or an error response
- Payment not settled results in 402 Payment Required
- Rate limiting or network issues may cause timeout
- Unsupported metric type may return empty results

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

Returns structured DeFi metrics data broken down per protocol, including total value locked (TVL), fees generated, and revenue figures for the requested metric type.

## Example request

```json
{
 "id": "aave",
 "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-defi-protocol-metrics-5d1fff55/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)
