{"uid":"cap_0m7yWhNXD3zeDdrvKWyBi","slug":"defi-protocol-fees-revenue-rankings-defillama-6cbf8df2","name":"DeFi Protocol Fees & Revenue Rankings (DefiLlama)","description":"Protocol fees or revenue: top protocols ranking (optionally by chain/category), or one protocol's 24h/7d/30d/1y totals (DefiLlama). 0.02 USDC/call on Base.","url":"https://task-radar-x402.vercel.app/api/fees?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","properties":{"type":{"type":"string","description":"fees|revenue (default fees)"},"chain":{"type":"string","description":"Filter ranking by chain e.g. Base (optional)"},"limit":{"type":"string","description":"1-100 (default 25)"},"category":{"type":"string","description":"Filter ranking by category e.g. Dexs (optional)"},"protocol":{"type":"string","description":"Protocol slug e.g. uniswap (optional; omit for ranking)"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4zIT88XT3A6OfY5foCnRx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns top protocol fee/revenue rankings (optionally filtered by chain or category) or time-series totals (24h/7d/30d/1y) for a specific protocol, sourced from DefiLlama.","exampleAgentPrompt":"Show me the top 10 DeFi protocols ranked by fees on Base, filtered to the DEX category — pull fees (not revenue) from DefiLlama.","exampleUseCases":[{"title":"Top fee-generating protocols by chain","prompt":"What are the top 15 DeFi protocols generating the most fees on Arbitrum right now? Show me fees, not revenue."},{"title":"Single protocol revenue breakdown","prompt":"How much revenue has Uniswap generated over the last 24 hours, 7 days, 30 days, and past year?"},{"title":"Category-filtered protocol ranking","prompt":"Rank the top 20 lending protocols by fees across all chains — I want to see which ones earn the most."}],"resultDescription":"Returns either a ranked list of protocols with their fee or revenue totals (filterable by chain and category, up to 100 results), or a single protocol's aggregated fee/revenue figures broken down by 24h, 7d, 30d, and 1y periods. Data is sourced live from DefiLlama.","failureModes":["Unknown protocol slug returns empty or error response","Invalid chain or category filter returns no results","Limit out of range (outside 1-100) may return default or error","DefiLlama upstream outage causes stale or missing data","Payment failure (insufficient USDC balance on Base) blocks the request"],"whenToPreferThis":"Use this endpoint when you need DeFi protocol fee or revenue data ranked across the ecosystem or for a specific protocol over time. Prefer this over general crypto price endpoints when the goal is protocol-level economic analysis (fees earned, revenue generated). Ideal for comparing protocol monetization, tracking DeFi category leaders, or monitoring a single protocol's revenue trends.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:33.547Z","isFirstParty":false,"canonicalSlug":"defi-protocol-fees-revenue-rankings-defillama-6cbf8df2"}