# DeFiLlama Fees Summary

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

Returns aggregated fees and revenue data for a specified DeFi protocol using DeFiLlama as the data source

## Facts

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

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 defillama-fees-summary-eb107550 -d '<json body>'
```

Example prompt: Can you pull up the fees and revenue summary for the Uniswap protocol from DeFiLlama?

## When to prefer this

Use this endpoint when you need fee and revenue data for a specific DeFi protocol by its DeFiLlama slug. Prefer this over general token price endpoints when the goal is understanding protocol economics, fee generation, or revenue metrics rather than price or TVL data.

## Known failure modes

- Invalid or unknown protocol slug returns empty or error response
- Missing required 'protocol' field causes request failure
- Protocol not tracked by DeFiLlama returns no data
- Network timeout or upstream DeFiLlama API unavailability
- Malformed dataType parameter may return unexpected results

## How this service works

Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.

## Output

A JSON object containing the fees and revenue summary for the requested DeFi protocol, sourced from DeFiLlama. Includes aggregated financial metrics such as total fees collected and protocol revenue over various time periods.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dataType": {
   "type": "string"
  },
  "protocol": {
   "type": "string",
   "description": "Protocol slug"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-fees-summary-eb107550/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)
