{"openapi":"3.1.0","info":{"title":"DeFi Fees & Revenue API","version":"1.0.0","description":"Live data on the fees users pay to DeFi protocols and the revenue those protocols actually keep — the \"which protocols earn money\" view, a different layer from Total Value Locked. TVL is what is deposited; fees are what users pay to use a protocol; revenue is the slice the protocol or its token-holders retain. Powered by the public DeFiLlama fees feed, no key, nothing stored. The overview endpoint returns the whole-DeFi fee (or revenue) total for the last 24 hours, 7 days and 30 days plus every protocol ranked by what it earns, with its category and chains. The protocol endpoint returns a single protocol's fee and revenue figures side by side across 24h / 7d / 30d / all-time (e.g. Aave, Uniswap, Lido). The chain endpoint returns the fee or revenue total and top-earning protocols for one blockchain (Ethereum, Solana, Base). Switch any list between gross fees and retained revenue with a single metric parameter. This is the fees-and-revenue cut of DeFi — distinct from the TVL, DEX-volume, exchange-ticker and coin-markets APIs in the catalogue.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/defifees-api","description":"oanor gateway"}],"tags":[{"name":"Overview"},{"name":"Protocol"},{"name":"Chain"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/overview":{"get":{"operationId":"get_v1_overview","tags":["Overview"],"summary":"Whole-DeFi fees/revenue total + ranked protocols","description":"","parameters":[{"name":"metric","in":"query","required":false,"description":"fees (default) or revenue","schema":{"type":"string"},"example":"fees"},{"name":"limit","in":"query","required":false,"description":"Max protocols (1-500)","schema":{"type":"string"},"example":"50"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Gross fees paid by users (USD).","metric":"fees","source":"DeFiLlama","total_d7":417533537,"protocols":[{"d7":114664159,"y1":5940722926,"d30":492275276,"h24":16390683,"name":"Tether","chains":["Off Chain"],"category":"Stablecoin Issuer"},{"d7":45101691,"y1":2359846538,"d30":193725799,"h24":6403139,"name":"Circle USDC","chains":["Ethereum","Off Chain"],"category":"Stablecoin Issuer"},{"d7":24083618,"y1":998283502,"d30":75580350,"h24":2707459,"name":"Hyperliquid Perps","chains":["Hyperliquid L1"],"category":"Derivatives"},{"d7":13854931,"y1":450937163,"d30":60737108,"h24":2073964,"name":"Canton","chains":["Canton"],"category":"Chain"},{"d7":4084593,"y1":362893372,"d30":15713231,"h24":1386445,"name":"Ethena USDe","chains":["Ethereum"],"category":"Basis Trading"},{"d7":7753408,"y1":544919170,"d30":38618524,"h24":1304384,"name":"PumpSwap","chains":["Solana"],"category":"Dexs"},{"d7":1176000,"y1":49511125,"d30":4584370,"h24":1158162,"name":"Chainlink Staking","chains":["Ethereum"],"category":"Services"},{"d7":6386958,"y1":447504180,"d30":31272812,"h24":1058805,"name":"Tron","chains":["Tron"],"category":"Chain"},{"d7":8167427,"y1":769156005,"d30":39452551,"h24":1051359,"name":"Lido","chains":["Ethereum"],"category":"Liquid Staking"},{"d7":7206952,"y1":410755369,"d30":31662587,"h24":1022355,"name":"Sky Lending","chains":["Ethereum"],"category":"CDP"},{"d7":15650537,"y1":944249627,"d30":41929059,"h24":945846,"name":"Aave V3","chains":["Polygon","Fantom","Arbitrum","Avalanche","OP Mainnet","Ethereum","Metis","Base","Gnosis","BSC","Scroll","ZKsync Era","Linea","Celo","Sonic","Soneium","Plasma","Mantle","MegaETH","X Layer"],"category":"Lending"},{"d7":6105104,"y1":416429191,"d30":26653949,"h24":828078,"name":"Fragment","chains":["TON"],"category":"NFT Marketplace"},{"d7":5114000,"y1":409593982,"d30":27018753,"h24":824462,"name":"pump.fun","chains":["Solana"],"category":"Launchpad"},{"d7":2277723,"y1":49949531,"d30":7906353,"h24":801583,"name":"Collector Crypt","chains":["Solana"],"category":"Physical TCG"},{"d7":7733789,"y1":512777769,"d30":21935646,"h24":760282,"name":"Uniswap V3","chains":["Ethereum","Arbitrum","OP Mainnet","Polygon","Celo","BSC","ZKsync Era","Sei","Taiko","Scroll","Rootstock","Filecoin","Boba","Moonbeam","Manta","Mantle","Linea","Avalanche","Base","Polygon zkEVM","Blast","Gnosis","BOB","Lisk","Corn","Unichain","Hemi","Saga","LightLink","GOAT","XDC","Lens","Telos","World Chain","Nibiru","Plasma","Monad","Etherlink","Sonic","Zora","X Layer"],"category":"Dexs"},{"d7":5711273,"y1":40876785,"d30":24550378,"h24":698662,"name":"Hyper Foundation HYPE Staking","chains":["Hyperliquid L1"],"category":"Staking Pool"},{"d7":1002157,"y1":14270155,"d30":2188588,"h24":598656,"name":"Phygitals","chains":["Solana"],"category":"Physical TCG"},{"d7":3796075,"y1":149058125,"d30":17916224,"h24":536364,"name":"Paxos Stablecoin Issuer","chains":["Off Chain"],"category":"Stablecoin Issuer"},{"d7":3700352,"y1":120042412,"d30":17896343,"h24":479347,"name":"Grayscale","chains":["Off Chain"],"category":"RWA"},{"d7":3448238,"y1":294644971,"d30":16709994,"h24":445968,"name":"Binance staked ETH","chains":["BSC","Ethereum"],"category":"Liquid Staking"},{"d7":6173866,"y1":241698182,"d30":30595834,"h24":440344,"name":"Uniswap V4","chains":["Ethereum","Unichain","OP Mainnet","Base","Arbitrum","Polygon","Blast","Zora","World Chain","Ink","Soneium","Avalanche","BSC","Monad","X Layer"],"category":"Dexs"},{"d7":6564816,"y1":203182713,"d30":19320902,"h24":413523,"name":"Morpho Blue","chains":["Ethereum","Base","Arbitrum","OP Mainnet","Polygon","Fraxtal","Scroll","World Chain","Ink","Unichain","Hemi","Sonic","Corn","Mode","Hyperliquid L1","Soneium","Zircuit","Katana","Monad","Stable","Celo","Plume Mainnet","Abstract","Flare","Citrea"],"category":"Lending"},{"d7":6224796,"y1":85317358,"d30":27117144,"h24":410205,"name":"Polymarket International","chains":["Polygon"],"category":"Prediction Market"},{"d7":2550845,"y1":496666326,"d30":17845286,"h24":408114,"name":"Axiom","chains":["Solana","BSC"],"category":"Trading App"},{"d7":2012096,"y1":33618471,"d30":6391564,"h24":388284,"name":"tradeXYZ","chains":["Hyperliquid L1"],"category":"Interface"},{"d7":2728243,"y1":107998027,"d30":11672420,"h24":383304,"name":"World Liberty Financial","chains":["Off Chain"],"category":"Lending"},{"d7":386714,"y1":725676,"d30":437723,"h24":372152,"name":"Ape Church","chains":["ApeChain"],"category":"Luck Games"},{"d7":1864070,"y1":145711787,"d30":10107292,"h24":362547,"name":"Spark Liquidity Layer","chains":["Ethereum"],"category":"Onchain Capital Allocator"},{"d7":2374927,"y1":310586189,"d30":12475563,"h24":358201,"name":"Solana","chains":["Solana"],"category":"Chain"},{"d7":2500050,"y1":213670038,"d30":10689697,"h24":328063,"name":"BSC","chains":["BSC"],"category":"Chain"},{"d7":3404234,"y1":310637445,"d30":13510817,"h24":324625,"name":"Ethereum","chains":["Ethereum"],"category":"Chain"},{"d7":1008568,"y1":1732202,"d30":1732202,"h24":322929,"name":"ZINC","chains":["Solana"],"category":"Gamified Mining"},{"d7":1291154,"y1":112630130,"d30":5881023,"h24":301082,"name":"Sanctum Validator LSTs","chains":["Solana"],"category":"Liquid Staking"},{"d7":2884185,"y1":309292671,"d30":8943769,"h24":294918,"name":"Jupiter Perpetual Exchange","chains":["Solana"],"category":"Derivatives"},{"d7":1922309,"y1":4110817,"d30":4110817,"h24":288272,"name":"Evedex","chains":["Eventum"],"category":"Derivatives"},{"d7":2238734,"y1":440274996,"d30":8365825,"h24":284490,"name":"Meteora DLMM","chains":["Solana"],"category":"Dexs"},{"d7":1000894,"y1":100596942,"d30":4509474,"h24":241756,"name":"Binance Staked SOL","chains":["Solana"],"category":"Liquid Staking"},{"d7":2180437,"y1":109886709,"d30":7850040,"h24":226168,"name":"Aerodrome Slipstream","chains":["Base"],"category":"Dexs"},{"d7":1646896,"y1":45673656,"d30":7290816,"h24":222420,"name":"Courtyard","chains":["Polygon"],"category":"Physical TCG"},{"d7":5114850,"y1":246112455,"d30":11895384,"h24":220385,"name":"Flashbots","chains":["Ethereum"],"category":"MEV"},{"d7":1967528,"y1":438473598,"d30":6578093,"h24":218740,"name":"Aster Perps","chains":["Off Chain"],"category":"Derivatives"},{"d7":1897210,"y1":218063647,"d30":9150635,"h24":214328,"name":"ether.fi Liquid","chains":["Ethereum"],"category":"Onchain Capital Allocator"},{"d7":2115615,"y1":217285234,"d30":5920994,"h24":187811,"name":"PancakeSwap AMM V3","chains":["BSC","Ethereum","Polygon zkEVM","ZKsync Era","Arbitrum","Linea","Base","opBNB","Solana","Monad"],"category":"Dexs"},{"d7":1379479,"y1":107428759,"d30":6408373,"h24":183235,"name":"Bitcoin","chains":["Bitcoin"],"category":"Chain"},{"d7":726844,"y1":122531064,"d30":3485615,"h24":182498,"name":"Jito Liquid Staking","chains":["Solana"],"category":"Liquid Staking"},{"d7":1059091,"y1":49696009,"d30":4341364,"h24":179340,"name":"Centrifuge Protocol","chains":["Ethereum","Avalanche","Plume Mainnet"],"category":"RWA"},{"d7":1073573,"y1":47335019,"d30":4644466,"h24":174501,"name":"Grove Finance","chains":["Avalanche","Ethereum","Plume Mainnet","Base"],"category":"Onchain Capital Allocator"},{"d7":1124506,"y1":5833227,"d30":1458167,"h24":173160,"name":"Strata Markets","chains":["Ethereum"],"category":"Yield"},{"d7":1929805,"y1":321019849,"d30":9825515,"h24":168307,"name":"edgeX Perps","chains":["edgeX L1","Ethereum"],"category":"Derivatives"},{"d7":1190091,"y1":137928412,"d30":5496800,"h24":168243,"name":"Phantom Wallet","chains":["Solana","Ethereum","Base","Polygon","Monad"],"category":"Wallets"}],"total_d30":1678369295,"total_h24":53109426,"protocol_count":2269},"meta":{"timestamp":"2026-06-11T16:46:55.977Z","request_id":"d890667a-76b8-4094-b77e-1c2085ff0354"},"status":"ok","message":"Overview retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/protocol":{"get":{"operationId":"get_v1_protocol","tags":["Protocol"],"summary":"One protocol fees & revenue side by side","description":"","parameters":[{"name":"protocol","in":"query","required":true,"description":"DeFiLlama protocol slug","schema":{"type":"string"},"example":"aave"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"fees":{"d7":15716537,"d30":42220414,"h24":957059,"all_time":2193554169},"name":"Aave","slug":"aave","chains":["Ethereum","Polygon","Avalanche","Fantom","Arbitrum","OP Mainnet","Metis","Base","Gnosis","BSC","Scroll","ZKsync Era","Linea","Celo","Sonic","Soneium","Plasma","Mantle","MegaETH","X Layer"],"source":"DeFiLlama","revenue":{"d7":1829316,"d30":5469573,"h24":127136,"all_time":296844312}},"meta":{"timestamp":"2026-06-11T16:46:56.502Z","request_id":"d7c10468-67a6-414b-b28a-1b396e3ab00f"},"status":"ok","message":"Protocol retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/chain":{"get":{"operationId":"get_v1_chain","tags":["Chain"],"summary":"Fees/revenue total + top protocols for a chain","description":"","parameters":[{"name":"chain","in":"query","required":true,"description":"DeFiLlama chain slug","schema":{"type":"string"},"example":"ethereum"},{"name":"metric","in":"query","required":false,"description":"fees (default) or revenue","schema":{"type":"string"},"example":"fees"},{"name":"limit","in":"query","required":false,"description":"Max protocols (1-200)","schema":{"type":"string"},"example":"25"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"chain":"ethereum","metric":"fees","source":"DeFiLlama","total_d7":88672703,"protocols":[{"d7":4084593,"y1":362893372,"d30":15713231,"h24":2222484,"name":"Ethena USDe","chains":["Ethereum"],"category":"Basis Trading"},{"d7":1176000,"y1":49511125,"d30":4584370,"h24":1158162,"name":"Chainlink Staking","chains":["Ethereum"],"category":"Services"},{"d7":8167427,"y1":769156005,"d30":39452551,"h24":1051359,"name":"Lido","chains":["Ethereum"],"category":"Liquid Staking"},{"d7":7206952,"y1":410755369,"d30":31662587,"h24":1022355,"name":"Sky Lending","chains":["Ethereum"],"category":"CDP"},{"d7":13016640,"y1":774822809,"d30":32691532,"h24":710166,"name":"Aave V3","chains":["Polygon","Fantom","Arbitrum","Avalanche","OP Mainnet","Ethereum","Metis","Base","Gnosis","BSC","Scroll","ZKsync Era","Linea","Celo","Sonic","Soneium","Plasma","Mantle","MegaETH","X Layer"],"category":"Lending"},{"d7":3226580,"y1":277148089,"d30":15769164,"h24":420536,"name":"Binance staked ETH","chains":["BSC","Ethereum"],"category":"Liquid Staking"},{"d7":1864070,"y1":145711787,"d30":10107292,"h24":362547,"name":"Spark Liquidity Layer","chains":["Ethereum"],"category":"Onchain Capital Allocator"},{"d7":3404234,"y1":310637445,"d30":13510817,"h24":319859,"name":"Ethereum","chains":["Ethereum"],"category":"Chain"},{"d7":3645257,"y1":95009331,"d30":13778673,"h24":238460,"name":"Uniswap V4","chains":["Ethereum","Unichain","OP Mainnet","Base","Arbitrum","Polygon","Blast","Zora","World Chain","Ink","Soneium","Avalanche","BSC","Monad","X Layer"],"category":"Dexs"},{"d7":5114850,"y1":246112455,"d30":11895384,"h24":220385,"name":"Flashbots","chains":["Ethereum"],"category":"MEV"},{"d7":1897210,"y1":218063647,"d30":9150635,"h24":214328,"name":"ether.fi Liquid","chains":["Ethereum"],"category":"Onchain Capital Allocator"},{"d7":2390166,"y1":103974579,"d30":8031384,"h24":207245,"name":"Morpho Blue","chains":["Ethereum","Base","Arbitrum","OP Mainnet","Polygon","Fraxtal","Scroll","World Chain","Ink","Unichain","Hemi","Sonic","Corn","Mode","Hyperliquid L1","Soneium","Zircuit","Katana","Monad","Stable","Celo","Plume Mainnet","Abstract","Flare","Citrea"],"category":"Lending"},{"d7":1124506,"y1":5833227,"d30":1458167,"h24":203159,"name":"Strata Markets","chains":["Ethereum"],"category":"Yield"},{"d7":1223975,"y1":67060605,"d30":4595468,"h24":149643,"name":"SparkLend","chains":["Gnosis","Ethereum"],"category":"Lending"},{"d7":812285,"y1":41902997,"d30":3408323,"h24":141082,"name":"Centrifuge Protocol","chains":["Ethereum","Avalanche","Plume Mainnet"],"category":"RWA"},{"d7":1835077,"y1":224260165,"d30":5110410,"h24":140792,"name":"Uniswap V3","chains":["Ethereum","Arbitrum","OP Mainnet","Polygon","Celo","BSC","ZKsync Era","Sei","Taiko","Scroll","Rootstock","Filecoin","Boba","Moonbeam","Manta","Mantle","Linea","Avalanche","Base","Polygon zkEVM","Blast","Gnosis","BOB","Lisk","Corn","Unichain","Hemi","Saga","LightLink","GOAT","XDC","Lens","Telos","World Chain","Nibiru","Plasma","Monad","Etherlink","Sonic","Zora","X Layer"],"category":"Dexs"},{"d7":3880235,"y1":6456559,"d30":5474385,"h24":131924,"name":"Saturn","chains":["Ethereum"],"category":"Stablecoin Wrapper"},{"d7":988839,"y1":43335650,"d30":3474321,"h24":126260,"name":"Ondo Yield Assets","chains":["Ethereum","Solana","Polygon","Mantle","Aptos","Arbitrum","Sui","Noble"],"category":"RWA"},{"d7":778767,"y1":40043606,"d30":3529119,"h24":111364,"name":"Grove Finance","chains":["Avalanche","Ethereum","Plume Mainnet","Base"],"category":"Onchain Capital Allocator"},{"d7":4594710,"y1":204816981,"d30":11308190,"h24":106271,"name":"Titan Builder","chains":["Ethereum"],"category":"Block Builders"},{"d7":2029864,"y1":54676634,"d30":4983379,"h24":105025,"name":"Curve DEX","chains":["Ethereum","Polygon","OP Mainnet","Gnosis","Fantom","Arbitrum","Avalanche","Fraxtal","Hyperliquid L1","Sonic","Base","Plasma","Celo","Ink","Mantle","Unichain","Monad","Stable"],"category":"Dexs"},{"d7":804562,"y1":10662036,"d30":2612569,"h24":102354,"name":"Sentora","chains":["Ethereum"],"category":"Risk Curators"},{"d7":221220,"y1":6323137,"d30":763501,"h24":88081,"name":"Apollo Diversified Credit Securitize Fund","chains":["Solana","Avalanche","Aptos","Ink","Polygon","Sei","Ethereum"],"category":"RWA"},{"d7":610970,"y1":29116833,"d30":2742115,"h24":86549,"name":"WisdomTree","chains":["Off Chain","Stellar","Ethereum","Arbitrum","Plume Mainnet"],"category":"RWA"},{"d7":650586,"y1":17235293,"d30":2886834,"h24":85699,"name":"BlackRock BUIDL","chains":["OP Mainnet","Arbitrum","Polygon","Avalanche","Ethereum","Aptos","Solana","BSC"],"category":"RWA"}],"total_d30":314695068,"total_h24":7741275,"protocol_count":533},"meta":{"timestamp":"2026-06-11T16:46:56.829Z","request_id":"a2dbdaa8-69f6-42b4-a01a-fd61b9ad45df"},"status":"ok","message":"Chain retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"metric=fees (gross paid by users, default) or metric=revenue (protocol's retained share). Dollar amounts are USD. protocol/chain are DeFiLlama slugs (aave, uniswap, ethereum, solana).","source":"DeFiLlama fees & revenue (api.llama.fi/overview/fees & /summary/fees, live)","service":"defifees-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/chain":"Fee or revenue total and top protocols for one chain (chain=ethereum, metric=fees).","GET /v1/overview":"Whole-DeFi fee or revenue total plus protocols ranked by earnings (metric=fees|revenue, limit=50).","GET /v1/protocol":"One protocol's fees and revenue side by side, 24h/7d/30d/all-time (protocol=aave)."},"description":"Live data on the fees users pay to DeFi protocols and the revenue protocols retain, from DeFiLlama. The 'which protocols actually earn money' view — a different layer from TVL (what is deposited). The overview endpoint returns the whole-DeFi fee or revenue total (24h/7d/30d) plus every protocol ranked by earnings; the protocol endpoint returns one protocol's fees and revenue side by side (24h/7d/30d/all-time); the chain endpoint returns the total and top protocols for one blockchain. Live, no key, nothing stored. The fees-and-revenue cut of DeFi — distinct from the TVL, DEX-volume, exchange-ticker and coin-markets APIs.","upstream_status":"ok","total_fees_24h_usd":53109426},"meta":{"timestamp":"2026-06-11T16:46:56.939Z","request_id":"0c11f1f1-4b4e-4c01-ae07-264e98b8b4b3"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":15000,"rps_limit":3,"hard_limit":true},{"slug":"analyst","name":"Analyst","price_cents_month":935,"monthly_call_quota":190000,"rps_limit":10,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2720,"monthly_call_quota":820000,"rps_limit":28,"hard_limit":true},{"slug":"scale","name":"Scale","price_cents_month":6140,"monthly_call_quota":2900000,"rps_limit":65,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/defifees-api"}