# BaseBrain DeFiLlama Data Proxy

> BaseBrain DeFiLlama Data Proxy is a paid API for AI agents from basebrain-ai.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Fetches DeFiLlama DeFi protocol and TVL data via a paid proxy endpoint

## Facts

- Endpoint: POST https://basebrain-ai.vercel.app/api/rapid/defillama
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basebrain-defillama-data-proxy-94cbe748
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u7nMINddjIjsR28E_LoqX

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 basebrain-defillama-data-proxy-94cbe748 -d '<json body>'
```

Example prompt: Can you pull the current total value locked for Aave from DeFiLlama so I can see how its TVL compares to other lending protocols?

## When to prefer this

Choose this endpoint when you need programmatic, monetized access to DeFiLlama DeFi data within an x402 payment-enabled agent workflow, and direct DeFiLlama API access is not available or not suitable. Useful when integrating DeFi TVL and protocol data into automated pipelines that already handle USDC micropayments.

## Known failure modes

- Malformed or missing request body returns an error
- DeFiLlama upstream API unavailability causes proxy failure
- Payment not processed correctly results in 402 rejection
- Unsupported query parameters may return empty or error results
- Rate limiting from upstream DeFiLlama API may cause timeouts

## How this service works

Generated by create next app

## Output

Returns a result object containing DeFiLlama API response data, including TVL figures, protocol statistics, chain breakdowns, or other DeFi metrics depending on the query passed to the endpoint.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basebrain-defillama-data-proxy-94cbe748/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basebrain-ai.vercel.app](https://www.zero.xyz/host/basebrain-ai.vercel.app/llms.txt)
