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.

Try it
Ready-made, maintained by usRecords, 25 fieldsv1.0

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

Data typeoptional
What to count: fees (all fees users pay), revenue (the protocol's share), holders_revenue (paid to token holders), protocol_revenue (kept by the treasury), supply_side_revenue (paid to liquidity providers and lenders) or user_fees.
Chainsoptional
Only amounts earned on these chains, by name as DefiLlama lists them, such as Ethereum, Solana or Base. Each chain returns its own records with that chain's amounts. Leave empty for all chains. One per line, or separated by commas.
Example: Solana
Protocolsoptional
Only these protocols, by name as DefiLlama lists them, such as Aave V3 or Tether. A family name such as Uniswap keeps all its versions. One per line, or separated by commas.
Example: Uniswap
Categoriesoptional
Only these kinds of protocol, such as Lending, Dexs, Derivatives, Stablecoin Issuer or Chain (a blockchain's own gas fees). Leave empty for all. One per line, or separated by commas.
Example: Lending

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
Endpoint
POSThttps://pullrow.dev/v1/apis/crypto-protocol-fees/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

data_typetext
What to count: fees (all fees users pay), revenue (the protocol's share), holders_revenue (paid to token holders), protocol_revenue (kept by the treasury), supply_side_revenue (paid to liquidity providers and lenders) or user_fees.
default: feesexample: feesone of: fees, revenue, holders_revenue, protocol_revenue, supply_side_revenue, user_fees
chainslist
Only amounts earned on these chains, by name as DefiLlama lists them, such as Ethereum, Solana or Base. Each chain returns its own records with that chain's amounts. Leave empty for all chains.
example: Solana
protocolslist
Only these protocols, by name as DefiLlama lists them, such as Aave V3 or Tether. A family name such as Uniswap keeps all its versions.
example: Uniswap
categorieslist
Only these kinds of protocol, such as Lending, Dexs, Derivatives, Stablecoin Issuer or Chain (a blockchain's own gas fees). Leave empty for all.
example: Lending

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

Pictures and media

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
nametextName3 of 3
urllinkLink3 of 3
slugtextSlug3 of 3
categorytextCategory3 of 3
protocol_typetextProtocol type3 of 3
parent_protocoltextParent protocol2 of 3
chainslistChains3 of 3
chaintextChain3 of 3
data_typetextKind of record3 of 3
ranknumberRank3 of 3
total_24hnumberTotal 24h3 of 3
total_7dnumberTotal 7d3 of 3
total_30dnumberTotal 30d3 of 3
total_1ynumberTotal 1y3 of 3
total_all_timenumberTotal all time3 of 3
share_24h_pctnumberShare 24h (%)3 of 3
change_1d_pctnumberChange 1d (%)3 of 3
change_7d_pctnumberChange 7d (%)3 of 3
change_1m_pctnumberChange 1m (%)3 of 3
change_7d_over_7d_pctnumberChange 7d over 7d (%)3 of 3
change_30d_over_30d_pctnumberChange 30d over 30d (%)3 of 3
is_double_countedyes or noDouble counted3 of 3
methodologytextMethodology3 of 3
logoimage linkLogo3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameSlugCategoryProtocol typeParent protocolChainsChainKind of recordRankTotal 24hTotal 7dTotal 30dTotal 1yShare 24h (%)Change 1d (%)Change 7d (%)Change 1m (%)Change 7d over 7d (%)Change 30d over 30d (%)Double countedMethodologyTotal all timeLinkLogo
1Aave V3aave-v3LendingprotocolAavePolygon, Fantom, Arbitrum, AvalancheAll chainsfees120,205,88646,752,65178,764,969610,113,45517.5%39.14%1,868.42%1,499.82%512.83%107.46%NoInclude 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,565defillama.com/protocol/aave-v3icons.llamao.fi/icons/protocols/aave-v3
2TethertetherStablecoin Issuerprotocol—Off ChainAll chainsfees217,050,293119,341,747508,457,2995,968,631,18514.767%-0.29%0.7%1.58%0.3%-2.01%NoAsset 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,067defillama.com/protocol/tethericons.llamao.fi/icons/protocols/tether
3Morpho Bluemorpho-blueLendingprotocolMorphoEthereum, Base, Arbitrum, OP MainnetAll chainsfees310,581,24527,358,44156,576,722243,053,7729.1642%24.91%1,657.14%721.8%510.63%117.88%NoTotal borrow interest paid by borrowers + liquidation bonues earned by liquidators.444,456,091defillama.com/protocol/morpho-blueicons.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.
Known limits
  • 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.