# DeFi Protocol Fees & Revenue API

> DeFi Protocol Fees & Revenue API is a paid API for AI agents from crypto.openverbs.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns total 24h and 7d DeFi protocol fees paid by users plus a ranked list of top protocols by 24h fees with revenue, optionally filtered by chain.

## Facts

- Endpoint: POST https://crypto.openverbs.com/v1/fees
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-fees-revenue-api-26c7a130
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BMZmcSzClvw7c7dh_bLgT

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 defi-protocol-fees-revenue-api-26c7a130 -d '<json body>'
```

Example prompt: What are the top 15 DeFi protocols by fees in the last 24 hours on Ethereum, and how much total fees have users paid across all protocols today and this week?

## When to prefer this

Choose this endpoint when you need current DeFi fee and revenue metrics ranked by protocol, especially when filtering to a specific chain. Prefer this over TVL or volume endpoints when the user's question is specifically about fees paid by users or protocol revenue generation rather than liquidity or trading activity.

## Known failure modes

- Invalid chain name returns empty or error response
- Limit out of range (must be 1–50) causes validation error
- Upstream DeFi data source lag may cause stale or incomplete fee figures
- Missing or zero revenue for protocols that do not publicly report revenue

## How this service works

DeFi protocol fees and revenue: total 24h and 7d fees (USD) paid by users across protocols, plus the top protocols by 24h fees with each one's 24h revenue where reported. Optional `chain` filter scopes totals and ranking to one chain.

## Output

Returns aggregate USD fee totals for 24h and 7d periods across all DeFi protocols, plus a ranked list of top protocols by 24h fees showing each protocol's name, 24h fees, and 24h revenue where available. Results can be scoped to a single chain.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "description": "How many protocols to return, ranked by 24h fees (default 10)."
      },
      "chain": {
       "type": "string",
       "minLength": 1,
       "maxLength": 50,
       "description": "Filter to one chain, e.g. \"Ethereum\", \"Arbitrum\"."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": null,
  "count": 1552,
  "stale": false,
  "source": "defillama",
  "protocols": [
   {
    "name": "Tether",
    "chains": [
     "Off Chain"
    ],
    "category": "Stablecoin Issuer",
    "fees7dUsd": 113034814,
    "fees24hUsd": 16099061,
    "revenue24hUsd": null
   }
  ],
  "total7dUsd": 585394346.8,
  "total24hUsd": 83772399.73
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-fees-revenue-api-26c7a130/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto.openverbs.com](https://www.zero.xyz/host/crypto.openverbs.com/llms.txt)
