{"uid":"cap_u4TLFZIil8vX9cPUVyl1A","slug":"defillama-fees-revenue-all-protocols-f14ae563","name":"DefiLlama Fees & Revenue — All Protocols","description":"Fees & revenue by DefiLlama — all protocols with daily fees and revenue summaries.","url":"https://defillama.use.x402atlas.com/fees","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":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"dataType":{"type":"string","maxLength":200,"description":"Optional data type (e.g. dailyFees, dailyRevenue)"},"excludeTotalDataChart":{"type":"string","maxLength":200,"description":"Optional true/false to exclude the aggregate data chart"},"excludeTotalDataChartBreakdown":{"type":"string","maxLength":200,"description":"Optional true/false to exclude the per-protocol chart breakdown"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","data"],"properties":{"data":{"type":"object","properties":{"total24h":{"type":"number","description":"Aggregate 24h fees or revenue in USD, per dataType"},"protocols":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"total24h":{"type":"number"}}}}},"description":"Raw DefiLlama fees overview payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"total24h":12300000,"protocols":[{"name":"Uniswap","total24h":1200000}]},"queried_at":"2026-07-01T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LwhaEj-FJiKKCt7CZoGNF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily fees and revenue summaries across all tracked DeFi protocols via DefiLlama.","exampleAgentPrompt":"Pull the latest daily fees and revenue summaries for all DeFi protocols from DefiLlama — I just want the dailyFees data and skip the aggregate chart breakdown to keep things simple.","exampleUseCases":[{"title":"Top fee-generating protocols today","prompt":"Hey, can you pull the daily fees and revenue for all DeFi protocols from DefiLlama and tell me which ones are generating the most in fees right now? I want a ranked list of the top earners."},{"title":"Compare protocol revenue across DeFi","prompt":"I'm trying to compare how much revenue different DeFi protocols are bringing in day-to-day — can you grab the latest daily revenue summaries across all protocols from DefiLlama and highlight which ones are pulling ahead?"},{"title":"DeFi ecosystem fee overview","prompt":"Give me a broad overview of fees being generated across the entire DeFi ecosystem today — pull all the protocol data from DefiLlama and summarize the daily fee figures so I can get a feel for where activity is concentrated."}],"resultDescription":"A structured response listing all tracked DeFi protocols with their associated daily fees and daily revenue figures, optionally including or excluding aggregate time-series charts and per-protocol chart breakdowns.","failureModes":["Invalid dataType value returns an error or empty result","Malformed query parameters may cause 400 Bad Request","Temporary DefiLlama data unavailability returns 5xx","Payment not processed or insufficient USDC balance results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a broad, cross-protocol view of DeFi fees and revenue across all protocols at once. Prefer this over the single-chain fees endpoint when the user wants ecosystem-wide data rather than one chain's breakdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:49:59.383Z","isFirstParty":false}