DeFi DEX Volume, Fees & Revenue Scraper (DefiLlama)
Pricing
from $3.50 / 1,000 results
DeFi DEX Volume, Fees & Revenue Scraper (DefiLlama)
Export clean DeFi leaderboards from the free DefiLlama API: DEX trading volume, protocol fees, protocol revenue and TVL — flattened to sortable CSV/Excel rows. Filter by chain, category, min volume; sort by 24h/7d/30d or growth. No API key, no proxy, runs in seconds, built for scheduled feeds.
Pricing
from $3.50 / 1,000 results
Rating
0.0
(0)
Developer
Berkan Kaplan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 hours ago
Last modified
Categories
Share
DefiLlama DEX Volume, Fees, Revenue & TVL Scraper
Need clean, sortable DeFi market data — DEX trading volume, protocol fees, revenue and TVL — without wrangling a deeply nested crypto API? This Actor turns the free DefiLlama API into flat, ready-to-use leaderboard rows: ~1,200 DEXs, ~2,400 fee-earning protocols and ~7,800 TVL protocols, each with 24h / 7d / 30d values and growth — one clean row per protocol, straight to JSON / CSV / Excel / API.
No API key, no login, no proxy, no fragile HTML scraping. It reads DefiLlama's official public endpoints, so it runs in a few seconds and is fully deterministic — built for scheduled, recurring pulls into a warehouse or dashboard.
- 📊 4 leaderboards in one Actor — DEX volume, protocol fees, protocol revenue, and TVL
- ⚡ No key, no proxy, no cost to the source — free DefiLlama API, runs in seconds
- 🔗 Filter & rank — by chain (Ethereum, Solana, Base…), category (Dexs, Lending, Derivatives…), or min 24h value; sort by value or growth
- 🔁 Deterministic & cheap — one flat dataset per run, ideal for scheduled feeds and BI
Quick start (API)
Get the top 100 Ethereum DEXs by 24h trading volume in one call:
curl -X POST "https://api.apify.com/v2/acts/foxlabs~defillama-volume-fees/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{ "dataset": "dex_volume", "chain": "Ethereum", "sortBy": "total24h", "maxResults": 100 }'
Prefer no code? Open the Input tab, pick a dataset, set your filters, and click Start — then download the results.
What you get
One clean, flat record per protocol:
| Field | Type | Description |
|---|---|---|
rank | integer | Position in the leaderboard after filtering & sorting (1 = top) |
dataset | string | Which leaderboard the row is from: dex_volume, fees, revenue or tvl |
name | string | Protocol name (e.g. Uniswap V4, PumpSwap) |
category | string | DefiLlama category (e.g. Dexs, Lending, Derivatives, Liquid Staking) |
dominantChain | string | Primary chain (first listed) for the protocol |
chainCount | integer | Number of chains the protocol is active on |
chainsText | string | All chains, comma-separated (e.g. Ethereum, Base, Arbitrum) |
value24h | number / null | 24h value in USD — meaning depends on dataset: volume / fees / revenue / TVL |
value7d | number / null | 7-day cumulative value in USD (null for the tvl dataset) |
value30d | number / null | 30-day cumulative value in USD (null for the tvl dataset) |
change1dPct | number / null | 24h change, in percent |
change7dPct | number / null | 7-day change, in percent |
change30dPct | number / null | 30-day (1-month) change, in percent (often null for tvl) |
logo | string | Protocol logo URL |
url | string | Link to the protocol on DefiLlama (or its own site for some TVL rows) |
generatedAtIso | string | ISO 8601 timestamp of when the run produced the row |
Sample output
One row per protocol. Real example fetched 2026-07-05 — values change on every run:
{"rank": 1,"dataset": "dex_volume","name": "PumpSwap","category": "Dexs","chainsText": "Solana","dominantChain": "Solana","chainCount": 1,"value24h": 1002617659,"value7d": 4673396711,"value30d": 16309106549,"change1dPct": 57.74,"change7dPct": 304.5,"change30dPct": 127.63,"logo": "https://icons.llamao.fi/icons/protocols/pumpswap","url": "https://defillama.com/dexs/pumpswap","generatedAtIso": "2026-07-05T02:13:45.961Z"}
Input & filters
- Dataset — pick one leaderboard: DEX trading volume, protocol fees, protocol revenue, or TVL (total value locked).
- Chain (optional) — keep only protocols active on a chain (e.g.
Ethereum,Solana,Arbitrum,Base,BSC). Empty = all chains. Case-insensitive. - Category (optional) — keep one DefiLlama category (e.g.
Dexs,Lending,Derivatives,Liquid Staking). Empty = all. Case-insensitive. - Min 24h value (USD) — drop protocols whose 24h metric (volume/fees/revenue/TVL depending on the dataset) is below this threshold.
0= no filter. - Sort by — rank by 24h / 7d / 30d value, or by 24h / 7d growth %.
- Max results — cap rows after filtering & sorting, up to 100,000. The full lists are ~1,200 DEXs / ~2,400 fee protocols / ~7,800 TVL protocols.
Example inputs (copy & paste)
// 1) Top 100 Ethereum DEXs by 24h trading volume{ "dataset": "dex_volume", "chain": "Ethereum", "sortBy": "total24h", "maxResults": 100 }// 2) Every protocol earning > $100k in 24h fees, ranked by 7-day fees{ "dataset": "fees", "minValue24h": 100000, "sortBy": "total7d", "maxResults": 1000 }// 3) Biggest TVL movers among Lending protocols, sorted by 24h change{ "dataset": "tvl", "category": "Lending", "sortBy": "change_1d", "maxResults": 200 }// 4) Highest-earning protocols by 30-day revenue{ "dataset": "revenue", "sortBy": "total30d", "maxResults": 100 }// 5) Solana DEX volume leaderboard, biggest first{ "dataset": "dex_volume", "chain": "Solana", "sortBy": "total24h", "maxResults": 200 }// 6) Fastest-growing fee protocols by 7-day change (min $50k/24h){ "dataset": "fees", "minValue24h": 50000, "sortBy": "change_7d", "maxResults": 100 }// 7) Derivatives protocols on Arbitrum, ranked by TVL{ "dataset": "tvl", "chain": "Arbitrum", "category": "Derivatives", "sortBy": "total24h", "maxResults": 100 }// 8) Liquid Staking sector by 30-day fees{ "dataset": "fees", "category": "Liquid Staking", "sortBy": "total30d", "maxResults": 100 }
Use cases
- Recurring market-data feed. Schedule a daily/hourly run and pipe a clean volume/fees/revenue/TVL leaderboard into your warehouse, Google Sheet or database — no key management, no scraper maintenance.
- Trading & quant signals. Track 24h/7d fee and volume momentum (
change1dPct,change7dPct) to spot protocols heating up or cooling off, and rank by growth instead of size. - Dashboards & BI. Feed a flat, typed table straight into Looker / Metabase / Grafana. Everything is already flattened — no JSON reshaping.
- Protocol & competitor monitoring. Follow a single chain or category (e.g.
DerivativesonArbitrum) and watch how the leaders move week over week. - Research & market sizing. Pull the full fees or revenue leaderboard to size a sector, compare fee capture across categories, and identify who actually earns.
- Content & newsletter automation. Auto-generate "top movers" or "biggest DEXs this week" tables for a DeFi newsletter, Discord bot or site widget.
Performance & throughput
Each run makes just 1–2 lightweight calls to the DefiLlama API, normalises the response locally, then filters, sorts and caps — so a full leaderboard returns in a few seconds. There are no API keys, proxies or rate-limit tuning to manage; throughput is bounded only by your Apify plan. Output is fully deterministic, which makes it ideal for scheduled runs and diff-based pipelines.
Integrations
JavaScript (apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('foxlabs/defillama-volume-fees').call({dataset: 'dex_volume', chain: 'Ethereum', sortBy: 'total24h', maxResults: 100,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items[0].name, items[0].value24h);
Python (apify-client):
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("foxlabs/defillama-volume-fees").call(run_input={"dataset": "fees", "minValue24h": 100000, "sortBy": "total7d", "maxResults": 1000,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["rank"], item["name"], item["value24h"])
Also works with Make / n8n / Zapier (Apify app → run this Actor, map the input), scheduled runs, webhooks, and the Apify MCP server so AI agents can pull live DeFi leaderboards on demand.
Data quality
- Coverage (verified 2026-07-05): ~1,193 DEXs, ~2,365 fee/revenue protocols, ~7,778 TVL protocols — the whole DefiLlama universe for each dataset, not a sample.
rank,dataset,name,category,dominantChain,chainsText,urlandgeneratedAtIsoare populated on every row.value24his present for protocols that reported in the period; dormant protocols may shownulland sort to the bottom.value7d/value30dare populated for the volume / fees / revenue datasets, and arenullfor thetvldataset (DefiLlama's TVL endpoint returns a point-in-time value plus 24h/7d change only).- Growth fields (
change*Pct) can benullwhen the source hasn't computed them — most commonlychange30dPcton TVL rows.
All numbers come straight from DefiLlama — never fabricated. Missing values are null, never a guess.
Pricing
Billed via Apify (pay per result on this Actor's store page). The underlying DefiLlama API is free, and the Actor uses no proxies or paid third-party services, so there are no hidden costs beyond Apify usage. There's an Apify free tier to evaluate the full feature set before you scale.
FAQ
Do I need a DefiLlama API key or account? No. It uses the free public API — no key, no login, no proxy.
What's the difference between fees and revenue? DefiLlama's fees = total fees paid by users; revenue = the portion kept by the protocol/treasury (a subset of fees). Both come from the same endpoint — revenue is the fees endpoint with a dailyRevenue data type.
What does value24h actually mean? It depends on the dataset: 24h DEX volume, 24h fees, 24h revenue, or current TVL — always in USD.
How fresh is the data? Each run pulls live from DefiLlama at request time, so numbers reflect the moment you run it and change continuously.
Which chains and categories can I filter by? Any chain DefiLlama tracks (Ethereum, Solana, Base, Arbitrum, BSC…) and any category (Dexs, Lending, Derivatives, Liquid Staking, Bridge, CDP…). Matching is case-insensitive.
Why are value7d / value30d empty for TVL? DefiLlama's TVL endpoint returns a point-in-time value with 24h/7d change only — there is no 7d/30d cumulative for TVL, so those fields are null.
Can I pull every protocol in one run? Yes — set maxResults up to 100,000; the full lists are well under that.
What export formats are available? JSON, CSV, Excel, or via the Apify API/integrations.
Is there a rate limit? No key or limit from us — throughput is bounded only by your Apify plan. The Actor makes only 1–2 calls to DefiLlama per run, well within fair use.
Can I schedule it? Yes. Output is deterministic, so it's ideal for hourly/daily Apify Schedules feeding a dashboard or warehouse.
Troubleshooting
- 0 results → your filters are too narrow. Check chain/category spelling (DefiLlama uses specific labels like
BSC,OP Mainnet), lowerminValue24h, or clear a filter. - A chain filter returns nothing → use DefiLlama's exact chain label. Run once with no chain filter and copy a value from
chainsText. - Sorting TVL by 7d/30d gives ties →
value7d/value30darenullfor thetvldataset. Sort TVL bytotal24h(= TVL),change_1dorchange_7dinstead. - Fewer rows than expected → you hit the
maxResultscap, orminValue24hremoved small protocols. Raise the cap / lower the threshold.
Notes, limits & legal (honest)
- Source & attribution. All data comes from the public DefiLlama API (
api.llama.fi). This Actor is a normalisation layer — the numbers are DefiLlama's. Please credit DefiLlama as the data source in any product you build on it. - Not affiliated with DefiLlama. This Actor is an independent client of their public API.
- Point-in-time. Values reflect the instant of the run and change continuously; the sample above is illustrative.
- TVL dataset includes non-DeFi entries. DefiLlama's
/protocolsfeed contains some centralized-exchange reserve entries (categoryCEX) and other non-DeFi items. Filter bycategoryif you want DeFi protocols only. - "Off Chain" rows. Some volume/fees entries (e.g. prediction markets, stablecoin issuers) are tagged with chain
Off Chain— that's DefiLlama's classification, not a bug. - No personal data. This is protocol-level market data; it contains no personal information.
Support
Questions, a field you'd like added, or a custom build? Open the Issues tab on this Actor, or email info@foxlabs.com.tr. We reply fast.
If this Actor saves you time, a ⭐ review really helps.
Changelog
0.2 — 2026-07-05
- Reworked docs to the foXLabs gold-standard: API quick-start, full field table, real sample output, example recipes, integration snippets (JS/Python/Make/MCP), FAQ & troubleshooting. Verified live coverage counts (~1,193 DEXs / ~2,365 fee protocols / ~7,778 TVL protocols).
0.1.1 — 2026-07-05
- Fixed a dataset-schema validation error that was silently returning zero results — the full protocol list is returned again.
0.1.0 — 2026-06-04
- Initial release: DEX volume, protocol fees, protocol revenue and TVL leaderboards from the free DefiLlama API — chain/category/min filters, 5 sort metrics, flat CSV/Excel rows, no API key or proxy.
Part of the foXLabs data platform — official public-data company, contact, ownership, jobs, charity, location, market & AI-search intelligence scrapers. Browse the full suite at data.foxlabs.com.tr.
