# DefiLlama — List all protocols along with summaries of their fees and revenue and dataType history data

Get DefiLlama All Protocol Fees data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including protocols, protocol name, chains, and total data chart breakdown to build defi revenue leaderboards, track ecosystem fee cycles, and screen monetization spikes.

Documentation: https://openany.si/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history/c7e4d175-3854-404f-9f36-69fc72539b9d/
API ID: c7e4d175-3854-404f-9f36-69fc72539b9d
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/overview/fees
Page update time: 2026-12-03T02:39:15.614Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:14.491Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama All Protocol Fees API

Call this endpoint with required `excludeTotalDataChart` and `excludeTotalDataChartBreakdown` booleans and optional `dataType` (defaults to `dailyFees`). Returns `protocols[]` summaries alongside optional `totalDataChart` and `totalDataChartBreakdown`.

## What You Can Build

- **Build DeFi revenue leaderboards**: Rank protocols by 24-hour fee generation to spotlight the highest-earning applications.
- **Track ecosystem fee cycles**: Set excludeTotalDataChart=false to chart total daily on-chain fees across DeFi.
- **Screen monetization spikes**: Monitor protocols\[\].change\_1d for sudden surges in protocol fee capture.

## Returned Data

| Field | Meaning |
| --- | --- |
| `protocols` | Array of protocol fee and revenue summaries |
| `protocols[].name` | Protocol name |
| `protocols[].chains` | Chains where the protocol generates tracked fees |
| `protocols[].total24h` | Protocol 24-hour fees or revenue in USD |
| `protocols[].change_1d` | 1-day percentage change in fees or revenue |
| `totalDataChart` | Aggregated historical daily fees chart |
| `totalDataChartBreakdown` | Historical daily fees broken down by protocol |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — List all protocols along with summaries of their fees and revenue and dataType history data request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "excludeTotalDataChart": {
          "type": "boolean",
          "description": "true to exclude aggregated chart from response"
        },
        "excludeTotalDataChartBreakdown": {
          "type": "boolean",
          "description": "true to exclude broken down chart from response"
        },
        "dataType": {
          "type": "string",
          "description": "Desired data type, dailyFees by default.",
          "enum": [
            "dailyFees",
            "dailyRevenue",
            "dailyHoldersRevenue"
          ]
        }
      },
      "required": [
        "excludeTotalDataChart",
        "excludeTotalDataChartBreakdown"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "protocols": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "change_1d": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "total24h": {
            "type": "integer"
          }
        }
      }
    },
    "totalDataChart": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      }
    },
    "totalDataChartBreakdown": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "object",
              "properties": {
                "Compound": {
                  "type": "integer"
                },
                "Uniswap": {
                  "type": "integer"
                }
              }
            }
          ]
        }
      }
    }
  }
}
```

## Request example
Scenario: Official UI example (not runtime verified)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/overview/fees?dataType=dailyFees&excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "protocols": [
    {
      "chains": [
        "Ethereum",
        "Polygon"
      ],
      "change_1d": 12.5,
      "name": "Uniswap",
      "total24h": 5000000
    }
  ],
  "totalDataChart": [
    [
      1640995200,
      25000000
    ]
  ],
  "totalDataChartBreakdown": [
    [
      1640995200,
      {
        "Compound": 3000000,
        "Uniswap": 5000000
      }
    ]
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What is the default dataType if omitted?
dataType defaults to dailyFees per the live contract.

### Are excludeTotalDataChart and excludeTotalDataChartBreakdown required?
Yes. Both boolean query parameters are required.

### How do I reduce response size for table views?
Pass excludeTotalDataChart=true and excludeTotalDataChartBreakdown=true to omit historical chart arrays.

### How do I filter protocol fees by a single blockchain?
Use the DefiLlama Chain Protocol Fees API with the target chain name in the path.

### How do I get full historical fees for one protocol?
Pass its slug to the DefiLlama Protocol Fees Summary API.

### What currency are total24h fee figures reported in?
All fee and revenue totals are reported in USD.

## Available implementations
- defillama: https://openany.si/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history/c7e4d175-3854-404f-9f36-69fc72539b9d/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
