# DefiLlama Fees & Revenue — All Protocols

> DefiLlama Fees & Revenue — All Protocols is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns daily fees and revenue summaries across all tracked DeFi protocols via DefiLlama.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/fees
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-fees-revenue-all-protocols-f14ae563
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u4TLFZIil8vX9cPUVyl1A

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-revenue-all-protocols-f14ae563
```

Example prompt: Pull the latest daily fees and revenue summaries for all DeFi protocols from DefiLlama — I just want the dailyFees data and skip the aggregate chart breakdown to keep things simple.

## When to prefer this

Use this endpoint when you need a broad, cross-protocol view of DeFi fees and revenue across all protocols at once. Prefer this over the single-chain fees endpoint when the user wants ecosystem-wide data rather than one chain's breakdown.

## Known failure modes

- Invalid dataType value returns an error or empty result
- Malformed query parameters may cause 400 Bad Request
- Temporary DefiLlama data unavailability returns 5xx
- Payment not processed or insufficient USDC balance results in 402 Payment Required

## How this service works

Fees & revenue by DefiLlama — all protocols with daily fees and revenue summaries.

## Output

A structured response listing all tracked DeFi protocols with their associated daily fees and daily revenue figures, optionally including or excluding aggregate time-series charts and per-protocol chart breakdowns.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "dataType": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional data type (e.g. dailyFees, dailyRevenue)"
      },
      "excludeTotalDataChart": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional true/false to exclude the aggregate data chart"
      },
      "excludeTotalDataChartBreakdown": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional true/false to exclude the per-protocol chart breakdown"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "total24h": {
         "type": "number",
         "description": "Aggregate 24h fees or revenue in USD, per dataType"
        },
        "protocols": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "total24h": {
            "type": "number"
           }
          }
         }
        }
       },
       "description": "Raw DefiLlama fees overview payload",
       "additionalProperties": true
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "When this bridge fetched the upstream data"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "total24h": 12300000,
   "protocols": [
    {
     "name": "Uniswap",
     "total24h": 1200000
    }
   ]
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-fees-revenue-all-protocols-f14ae563/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
