Crypto Protocol Fees and Revenue API
Fees and revenue of every crypto protocol and blockchain DefiLlama tracks, across all chains or per chain: 24-hour, 7-day, 30-day, 1-year and all-time amounts in US dollars, share, rank, changes, category and chains, for fees, revenue, holders revenue and more.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from api.llama.fi/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/crypto-protocol-fees/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"data_type":"fees"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
25 fields: 24 here, 1 technical one under Technical details.
Basics
- Name
Name of the protocol or blockchain as DefiLlama lists it, such as Aave V3.
Example Aave V3
- Slug
DefiLlama's short name for the protocol, as in its links, such as aave-v3.
Example aave-v3
- Category
Kind of protocol, such as Lending, Dexs, Derivatives or Chain.
Example Lending
- Protocol type
protocol for an app, chain for a blockchain's own gas fees.
Example protocol
- Parent protocol
The family the protocol belongs to, such as Aave for Aave V3.
Example Aave
- Chains
Every chain the protocol runs on.
Example Polygon, Fantom
- Chain
The chain these amounts are for, or All chains when the run has no chain filter.
Example All chains
- Kind of record
What the amounts count: fees, revenue, holders_revenue, protocol_revenue, supply_side_revenue or user_fees.
Example fees
- Rank
Rank by the 24-hour amount among the protocols on that chain, or on all chains (1 = most).
Example 1
- Total 24h
Amount in the last 24 hours (the latest day the source has counted), in US dollars.
Example 20,205,886
- Total 7d
Amount in the last 7 days, in US dollars.
Example 46,752,651
- Total 30d
Amount in the last 30 days, in US dollars.
Example 78,764,969
- Total 1y
Amount in the last 365 days, in US dollars.
Example 610,113,455
- Share 24h (%)
Share of the day's total for all protocols on that chain, or on all chains, in percent.
Example 17.5%
- Change 1d (%)
Change of the 24-hour amount against the day before, in percent.
Example 39.14%
- Change 7d (%)
Change of the 24-hour amount against the same day a week earlier, in percent.
Example 1,868.42%
- Change 1m (%)
Change of the 24-hour amount against the same day 30 days earlier, in percent.
Example 1,499.82%
- Change 7d over 7d (%)
Change of the last 7 days' amount against the 7 days before, in percent.
Example 512.83%
- Change 30d over 30d (%)
Change of the last 30 days' amount against the 30 days before, in percent.
Example 107.46%
- Double counted
Yes when this amount is also counted under another protocol; market totals leave it out.
Example No
- Methodology
How the source counts this kind of amount for the protocol, when it says.
Example Include borrow interest, flashloan fee, liquidation fee, penalty paid by borrowers, swap fees from the Aave frontend…
Dates
- Total all time
Amount since the source started counting the protocol, in US dollars.
Example 1,952,335,565
Links
- Link
The protocol's or blockchain's page on DefiLlama.
Example defillama.com/protocol/aave-v3
Pictures and media
- Logo
The protocol's or blockchain's logo.
Example Open the image
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idDefiLlama's id of the protocol; the ids of blockchains' own gas fees start with chain#.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
name | text | Name | 3 of 3 |
url | link | Link | 3 of 3 |
slug | text | Slug | 3 of 3 |
category | text | Category | 3 of 3 |
protocol_type | text | Protocol type | 3 of 3 |
parent_protocol | text | Parent protocol | 2 of 3 |
chains | list | Chains | 3 of 3 |
chain | text | Chain | 3 of 3 |
data_type | text | Kind of record | 3 of 3 |
rank | number | Rank | 3 of 3 |
total_24h | number | Total 24h | 3 of 3 |
total_7d | number | Total 7d | 3 of 3 |
total_30d | number | Total 30d | 3 of 3 |
total_1y | number | Total 1y | 3 of 3 |
total_all_time | number | Total all time | 3 of 3 |
share_24h_pct | number | Share 24h (%) | 3 of 3 |
change_1d_pct | number | Change 1d (%) | 3 of 3 |
change_7d_pct | number | Change 7d (%) | 3 of 3 |
change_1m_pct | number | Change 1m (%) | 3 of 3 |
change_7d_over_7d_pct | number | Change 7d over 7d (%) | 3 of 3 |
change_30d_over_30d_pct | number | Change 30d over 30d (%) | 3 of 3 |
is_double_counted | yes or no | Double counted | 3 of 3 |
methodology | text | Methodology | 3 of 3 |
logo | image link | Logo | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Slug | Category | Protocol type | Parent protocol | Chains | Chain | Kind of record | Rank | Total 24h | Total 7d | Total 30d | Total 1y | Share 24h (%) | Change 1d (%) | Change 7d (%) | Change 1m (%) | Change 7d over 7d (%) | Change 30d over 30d (%) | Double counted | Methodology | Total all time | Link | Logo |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Aave V3 | aave-v3 | Lending | protocol | Aave | Polygon, Fantom, Arbitrum, Avalanche | All chains | fees | 1 | 20,205,886 | 46,752,651 | 78,764,969 | 610,113,455 | 17.5% | 39.14% | 1,868.42% | 1,499.82% | 512.83% | 107.46% | No | Include borrow interest, flashloan fee, liquidation fee, penalty paid by borrowers, swap fees from the Aave frontend (Paraswap, then CoW Swap), Chainlink SVR (MEV recapture from Ethereum liquidations; on Base and Arbitrum it is part of the liquidation bonus already counted), and… | 1,952,335,565 | defillama.com/protocol/aave-v3 | icons.llamao.fi/icons/protocols/aave-v3 |
| 2 | Tether | tether | Stablecoin Issuer | protocol | — | Off Chain | All chains | fees | 2 | 17,050,293 | 119,341,747 | 508,457,299 | 5,968,631,185 | 14.767% | -0.29% | 0.7% | 1.58% | 0.3% | -2.01% | No | Asset yields from USDT backing investments: US Treasury Bills and other fixed-income assets like repos, commercial paper, money market funds and secured loans. | 20,943,134,067 | defillama.com/protocol/tether | icons.llamao.fi/icons/protocols/tether |
| 3 | Morpho Blue | morpho-blue | Lending | protocol | Morpho | Ethereum, Base, Arbitrum, OP Mainnet | All chains | fees | 3 | 10,581,245 | 27,358,441 | 56,576,722 | 243,053,772 | 9.1642% | 24.91% | 1,657.14% | 721.8% | 510.63% | 117.88% | No | Total borrow interest paid by borrowers + liquidation bonues earned by liquidators. | 444,456,091 | defillama.com/protocol/morpho-blue | icons.llamao.fi/icons/protocols/morpho-blue |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Amounts are DefiLlama's own counts, in US dollars, and what counts as fees or revenue differs by protocol; methodology says how for each one when the source explains it.
- The 24-hour figure is the latest day the source has counted, and recent days can still be revised. Change figures are empty for about 4 in 10 protocols, and around 4 to 5 in 10 earned nothing in the last day; those rank last.
- Blockchains appear too, with their own gas fees (category Chain). is_double_counted marks amounts also counted under another protocol; the market total behind share_24h_pct leaves out those and the blockchains' own fees.
- Narrower kinds cover fewer protocols: about 3,400 report fees, 3,000 revenue, 2,900 supply-side revenue, 2,600 protocol revenue, 1,400 holders revenue and 900 user fees.
- A chain filter reads one more request per chain, and every total is then that chain's amount only. The source's free tier is rate limited, and the API stops if it is asked to slow down.
- Figures come from DefiLlama's free open data; DefiLlama appreciates credit (defillama.com) when you publish them.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.