{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"c466ed57-44cf-4fcf-ba2a-ec01d449214e","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 Chain 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, total24h, total data chart, and total data chart breakdown to rank top-earning apps per chain, compare chain fee economies, and chart chain fee trends.","descriptionTranslations":{"ar":"اعرض بروتوكولات التمويل اللامركزي التي تحقق رسوما وإيرادات على شبكة محددة عبر OpenAny REST لقياس النشاط الاقتصادي. مرر اسم الشبكة ومعاملات استبعاد المخطط المطلوبة وdataType اختياريا للحصول على رسوم كل بروتوكول والتغير اليومي.","ja":"OpenAny REST で特定ブロックチェーン上で手数料・収益を生む DeFi プロトコル一覧を取得し、チェーン内の経済活動を分析できます。チェーン名、必須のチャート除外フラグ、任意の dataType を指定すると、各プロトコル手数料と前日比を返します。","zh":"通过 OpenAny REST 按指定区块链筛选产生费用与收入的 DeFi 协议，用于衡量单链经济活跃度并排定高收入应用。传入链名称、必填图表排除布尔参数及可选 dataType，即可返回各协议 24 小时费用、支持链、单日变化率及可选历史图表。"},"effectContentHtml":"","executionMode":"sync","id":"3afad65d-338a-4f8b-a5fb-1dd96be9227d","includedContentHtml":"","inputs":[{"description":"chain name, list of all supported chains can be found under allChains attribute in /overview/fees response","location":"path","name":"chain","nullable":false,"required":true,"type":"string"},{"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 by chain","nameTranslations":{"ar":"DefiLlama — اسرد جميع البروتوكولات مع ملخصات رسومها وإيراداتها وبيانات dataType التاريخية حسب السلسلة","ja":"DefiLlama — すべてのプロトコルを一覧表示し、その手数料と収益のサマリー、およびチェーン別の dataType 履歴データを提供します","zh":"DefiLlama — 列出所有协议及其费用和收入摘要，以及按链划分的 dataType 历史数据"},"overviewHtml":"\u003ch2\u003eDefiLlama Chain Protocol Fees API\u003c/h2\u003e\n\u003cp\u003eProvide a \u003ccode\u003echain\u003c/code\u003e name (such as \u003ccode\u003eethereum\u003c/code\u003e), 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 chain-filtered \u003ccode\u003eprotocols[]\u003c/code\u003e and optional chart series.\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 path: chain (e.g. ethereum). Required 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 by chain\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\u003eRank top-earning apps per chain\u003c/strong\u003e: Identify which protocols capture the most user fees on Ethereum, Solana, Base or Arbitrum.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCompare chain fee economies\u003c/strong\u003e: Pair chain fee totals with chain DEX volume and TVL to assess monetization efficiency.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eChart chain fee trends\u003c/strong\u003e: Set excludeTotalDataChart=false to visualize historical daily fee volume on a single network.\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 fee-generating protocols on the requested chain\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\u003eBlockchains associated with the protocol\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 on the chain 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 for the chain\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 on the chain\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/ethereum \\\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/3afad65d-338a-4f8b-a5fb-1dd96be9227d\"\u003ePublished DefiLlama Chain 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\u003eWhere do I find supported chain names?\u003c/h3\u003e\n\u003cp\u003eUse chain names listed under allChains in the DefiLlama All Protocol Fees API (such as ethereum).\u003c/p\u003e\n\u003ch3\u003eWhat is the default dataType parameter?\u003c/h3\u003e\n\u003cp\u003edataType is optional and defaults to dailyFees.\u003c/p\u003e\n\u003ch3\u003eAre excludeTotalDataChart and excludeTotalDataChartBreakdown mandatory?\u003c/h3\u003e\n\u003cp\u003eYes. Both boolean query parameters are required in the contract.\u003c/p\u003e\n\u003ch3\u003eHow do I include historical fee charts in the response?\u003c/h3\u003e\n\u003cp\u003ePass excludeTotalDataChart=false and/or excludeTotalDataChartBreakdown=false.\u003c/p\u003e\n\u003ch3\u003eHow do I get protocol fees across all chains instead?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama All Protocol Fees API without a chain path parameter.\u003c/p\u003e\n\u003ch3\u003eHow do I drill into one protocol’s fee history?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama Protocol Fees Summary API with the protocol slug.\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\"\u003eDefiLlama All 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-filterin\"\u003eDefiLlama Chain 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-c466ed57?offering=3afad65d-338a-4f8b-a5fb-1dd96be9227d","providerId":"defillama","publicPath":"/v1/agent-apis/defillama/overview/fees/{chain}","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Official UI example (not runtime verified)","request":{"body":null,"headers":{},"path":{"chain":"ethereum"},"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 Chain 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.619Z","usageInstructionsHtml":""}}