# DeFiLlama Fees & Revenue Overview

> DeFiLlama Fees & Revenue Overview is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns aggregated fees and revenue data across DeFi protocols via the DeFiLlama data feed

## Facts

- Endpoint: POST https://stablecrypto.dev/api/defillama/fees-overview
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecrypto-dev-ebf36572
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y3259ONBkeFZkEwnwNNZB

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 stablecrypto-dev-ebf36572 -d '<json body>'
```

Example prompt: Pull the latest fees and revenue overview across all DeFi protocols from DeFiLlama — I want to see which protocols are generating the most fees and revenue right now.

## When to prefer this

Use this endpoint when you need a broad, aggregated view of fees and revenue across multiple DeFi protocols simultaneously, rather than querying a single protocol's data. Ideal for market analysis, protocol comparison, or building dashboards that surface the most profitable protocols by fee generation.

## Known failure modes

- Upstream DeFiLlama API unavailable — returns 502 or timeout
- No data available for specified filter — returns empty result set
- Invalid request body parameters — returns 400 bad request
- Payment not included or insufficient — returns 402 Payment Required

## How this service works

Get fees and revenue overview across protocols

## Output

A structured overview of fees and revenue metrics across DeFi protocols, including per-protocol fee totals, revenue figures, and rankings — sourced from DeFiLlama aggregated data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dataType": {
   "type": "string",
   "description": "\"dailyFees\", \"dailyRevenue\", etc."
  },
  "excludeTotalDataChart": {
   "type": "boolean"
  },
  "excludeTotalDataChartBreakdown": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecrypto-dev-ebf36572/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
