# Top Crypto Protocols by Revenue — DefiLlama

**Use case:** 

The 25 crypto protocols with the highest revenue over the last 24 hours, with 7-day, 30-day and 1-year totals, change rates, category and chain count. Covers stablecoin issuers, DEXes, perps and lending markets. For investors and researchers comparing protocol fundamentals. Switch feeMetric to dailyFees, or filter by category.

## Input

```json
{
  "mode": "fees",
  "limit": 25,
  "fields": [],
  "chains": [],
  "categories": [],
  "excludeCategories": [
    "CEX",
    "Chain"
  ],
  "slugs": [],
  "auditedOnly": false,
  "includeChainTvls": false,
  "chainDetails": true,
  "projects": [],
  "symbols": [],
  "stablecoinOnly": false,
  "singleExposureOnly": false,
  "noIlOnly": false,
  "excludeOutliers": true,
  "poolIds": [],
  "pegTypes": [],
  "pegMechanisms": [],
  "includeChainBreakdown": false,
  "feeMetric": "dailyRevenue",
  "volumeType": "dexs",
  "includeBreakdown": false,
  "minTotal24h": 10000,
  "aggregate": "daily",
  "sortDir": "desc"
}
```

## Output

```json
{
  "name": {
    "label": "Name",
    "format": "string"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "metric": {
    "label": "Metric",
    "format": "string"
  },
  "total24h": {
    "label": "Last 24h (USD)",
    "format": "number"
  },
  "total7d": {
    "label": "Last 7 days (USD)",
    "format": "number"
  },
  "total30d": {
    "label": "Last 30 days (USD)",
    "format": "number"
  },
  "total1y": {
    "label": "Last year (USD)",
    "format": "number"
  },
  "change1d": {
    "label": "Change 1d (%)",
    "format": "number"
  },
  "change7d": {
    "label": "Change 7d (%)",
    "format": "number"
  },
  "change1m": {
    "label": "Change 30d (%)",
    "format": "number"
  },
  "chainCount": {
    "label": "Chain count",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [DefiLlama Scraper — Protocol TVL, Chains, Yields & Stablecoins](https://apify.com/yadroo/defillama-protocols.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/yadroo/defillama-protocols.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/yadroo/defillama-protocols.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
