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

Get DefiLlama Chain 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, total24h, total data chart, and total data chart breakdown to rank top-earning apps per chain, compare chain fee economies, and chart chain fee trends.

Documentation: https://openany.si/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history-c466ed57/3afad65d-338a-4f8b-a5fb-1dd96be9227d/
API ID: 3afad65d-338a-4f8b-a5fb-1dd96be9227d
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/overview/fees/{chain}
Page update time: 2026-12-03T02:39:15.631Z
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.619Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

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

Provide a `chain` name (such as `ethereum`), required `excludeTotalDataChart` and `excludeTotalDataChartBreakdown` booleans, and optional `dataType` (defaults to `dailyFees`). Returns chain-filtered `protocols[]` and optional chart series.

## What You Can Build

- **Rank top-earning apps per chain**: Identify which protocols capture the most user fees on Ethereum, Solana, Base or Arbitrum.
- **Compare chain fee economies**: Pair chain fee totals with chain DEX volume and TVL to assess monetization efficiency.
- **Chart chain fee trends**: Set excludeTotalDataChart=false to visualize historical daily fee volume on a single network.

## Returned Data

| Field | Meaning |
| --- | --- |
| `protocols` | Array of fee-generating protocols on the requested chain |
| `protocols[].name` | Protocol name |
| `protocols[].chains` | Blockchains associated with the protocol |
| `protocols[].total24h` | Protocol 24-hour fees or revenue on the chain in USD |
| `protocols[].change_1d` | 1-day percentage change in fees or revenue |
| `totalDataChart` | Aggregated historical daily fees chart for the chain |
| `totalDataChartBreakdown` | Historical daily fees broken down by protocol on the chain |

## 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 by chain 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": {
        "chain": {
          "type": "string",
          "description": "chain name, list of all supported chains can be found under allChains attribute in /overview/fees response"
        }
      },
      "required": [
        "chain"
      ]
    },
    "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/ethereum?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
### Where do I find supported chain names?
Use chain names listed under allChains in the DefiLlama All Protocol Fees API (such as ethereum).

### What is the default dataType parameter?
dataType is optional and defaults to dailyFees.

### Are excludeTotalDataChart and excludeTotalDataChartBreakdown mandatory?
Yes. Both boolean query parameters are required in the contract.

### How do I include historical fee charts in the response?
Pass excludeTotalDataChart=false and/or excludeTotalDataChartBreakdown=false.

### How do I get protocol fees across all chains instead?
Use the DefiLlama All Protocol Fees API without a chain path parameter.

### How do I drill into one protocol’s fee history?
Use the DefiLlama Protocol Fees Summary API with the protocol slug.

## Available implementations
- defillama: https://openany.si/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history-c466ed57/3afad65d-338a-4f8b-a5fb-1dd96be9227d/

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