{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"0690abbb-021d-4ba4-a0dc-872558d913f1","catalogType":"api","categories":["data","finance","crypto-defi"],"dataPlatform":"DefiLlama","dataPlatformLogoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","dataPlatformTranslations":{"ar":"DefiLlama","ja":"DefiLlama","zh":"DefiLlama"},"dataProduct":"fees-revenue","description":"Get DefiLlama All Protocol Fees data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as dataType, excludeTotalDataChart, and retrieve structured data including protocols, protocol name, chains, and total data chart breakdown to build defi revenue leaderboards, track ecosystem fee cycles, and screen monetization spikes.","descriptionTranslations":{"ar":"اعرض جميع بروتوكولات التمويل اللامركزي في DefiLlama مع ملخصات الرسوم والإيرادات لـ 24 ساعة عبر OpenAny REST لمقارنة العوائد. مرر معاملات استبعاد المخطط المطلوبة وdataType اختياريا للحصول على رسوم كل بروتوكول وشبكاته والتغير اليومي.","ja":"OpenAny REST で DefiLlama 収録の全 DeFi プロトコルの24時間手数料・収益サマリーを取得し、カテゴリ横断で収益力を比較できます。必須のチャート除外フラグと任意の dataType を指定すると、各プロトコル手数料・対応チェーン・前日比を返します。","zh":"通过 OpenAny REST 列出 DefiLlama 追踪的全部 DeFi 协议及其 24 小时费用与收入摘要，用于横向对比借贷、DEX、公链与衍生品的变现能力。传入必填图表排除布尔参数及可选 dataType，即可返回各协议费用、支持链、单日变化率及可选历史图表。"},"effectContentHtml":"","executionMode":"sync","id":"c7e4d175-3854-404f-9f36-69fc72539b9d","includedContentHtml":"","inputs":[{"description":"true to exclude aggregated chart from response","location":"query","name":"excludeTotalDataChart","nullable":false,"required":true,"type":"boolean"},{"description":"true to exclude broken down chart from response","location":"query","name":"excludeTotalDataChartBreakdown","nullable":false,"required":true,"type":"boolean"},{"description":"Desired data type, dailyFees by default.","enum_values":["dailyFees","dailyRevenue","dailyHoldersRevenue"],"location":"query","name":"dataType","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","method":"GET","name":"DefiLlama — List all protocols along with summaries of their fees and revenue and dataType history data","nameTranslations":{"ar":"DefiLlama — سرد جميع البروتوكولات مع ملخصات رسومها وإيراداتها وبيانات السجل الخاصة بـ dataType","ja":"DefiLlama — すべてのプロトコルを手数料と収益の概要、およびdataTypeの履歴データとともに一覧表示","zh":"DefiLlama — 列出所有协议及其费用和收入摘要以及 dataType 历史数据"},"overviewHtml":"\u003ch2\u003eDefiLlama All Protocol Fees API\u003c/h2\u003e\n\u003cp\u003eCall this endpoint with required \u003ccode\u003eexcludeTotalDataChart\u003c/code\u003e and \u003ccode\u003eexcludeTotalDataChartBreakdown\u003c/code\u003e booleans and optional \u003ccode\u003edataType\u003c/code\u003e (defaults to \u003ccode\u003edailyFees\u003c/code\u003e). Returns \u003ccode\u003eprotocols[]\u003c/code\u003e summaries alongside optional \u003ccode\u003etotalDataChart\u003c/code\u003e and \u003ccode\u003etotalDataChartBreakdown\u003c/code\u003e.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired query: excludeTotalDataChart (boolean), excludeTotalDataChartBreakdown (boolean). Optional query: dataType (default dailyFees).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003edefillama · DefiLlama — List all protocols along with summaries of their fees and revenue and dataType history data\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBuild DeFi revenue leaderboards\u003c/strong\u003e: Rank protocols by 24-hour fee generation to spotlight the highest-earning applications.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrack ecosystem fee cycles\u003c/strong\u003e: Set excludeTotalDataChart=false to chart total daily on-chain fees across DeFi.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eScreen monetization spikes\u003c/strong\u003e: Monitor protocols[].change_1d for sudden surges in protocol fee capture.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprotocols\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eArray of protocol fee and revenue summaries\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprotocols[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProtocol name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprotocols[].chains\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eChains where the protocol generates tracked fees\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprotocols[].total24h\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProtocol 24-hour fees or revenue in USD\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eprotocols[].change_1d\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003e1-day percentage change in fees or revenue\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalDataChart\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAggregated historical daily fees chart\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalDataChartBreakdown\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical daily fees broken down by protocol\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/defillama/overview/fees \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode dataType=dailyFees \\\n  --data-urlencode excludeTotalDataChart=true \\\n  --data-urlencode excludeTotalDataChartBreakdown=true\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/c7e4d175-3854-404f-9f36-69fc72539b9d\"\u003ePublished DefiLlama All Protocol Fees API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat is the default dataType if omitted?\u003c/h3\u003e\n\u003cp\u003edataType defaults to dailyFees per the live contract.\u003c/p\u003e\n\u003ch3\u003eAre excludeTotalDataChart and excludeTotalDataChartBreakdown required?\u003c/h3\u003e\n\u003cp\u003eYes. Both boolean query parameters are required.\u003c/p\u003e\n\u003ch3\u003eHow do I reduce response size for table views?\u003c/h3\u003e\n\u003cp\u003ePass excludeTotalDataChart=true and excludeTotalDataChartBreakdown=true to omit historical chart arrays.\u003c/p\u003e\n\u003ch3\u003eHow do I filter protocol fees by a single blockchain?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama Chain Protocol Fees API with the target chain name in the path.\u003c/p\u003e\n\u003ch3\u003eHow do I get full historical fees for one protocol?\u003c/h3\u003e\n\u003cp\u003ePass its slug to the DefiLlama Protocol Fees Summary API.\u003c/p\u003e\n\u003ch3\u003eWhat currency are total24h fee figures reported in?\u003c/h3\u003e\n\u003cp\u003eAll fee and revenue totals are reported in USD.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history-c466ed57\"\u003eDefiLlama Chain Protocol Fees API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-summary-of-protocol-fees-and-revenue-with-historical-data\"\u003eDefiLlama Protocol Fees Summary API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-list-all-dexs-along-with-summaries-of-their-volumes-and-datatype-history-data\"\u003eDefiLlama All DEX Volumes API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/defillama/defillama-list-all-protocols-along-with-summaries-of-their-fees-and-revenue-and-datatype-history?offering=c7e4d175-3854-404f-9f36-69fc72539b9d","providerId":"defillama","publicPath":"/v1/agent-apis/defillama/overview/fees","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Official UI example (not runtime verified)","request":{"body":null,"headers":{},"path":{},"query":{"dataType":"dailyFees","excludeTotalDataChart":true,"excludeTotalDataChartBreakdown":true}},"response_body":{"protocols":[{"chains":["Ethereum","Polygon"],"change_1d":12.5,"name":"Uniswap","total24h":5000000}],"totalDataChart":[[1640995200,25000000]],"totalDataChartBreakdown":[[1640995200,{"Compound":3000000,"Uniswap":5000000}]]}}],"seoDescription":"Get DefiLlama All Protocol Fees data via REST or MCP powered by DeFiLlama. Pay per call, no subscription. Get protocols and protocol name in JSON.","updatedAt":"2026-12-03T02:39:14.491Z","usageInstructionsHtml":""}}