{"uid":"cap_5TTKaF9rUPlSa7nseZFWg","slug":"defillama-fee-revenue-summary-by-protocol-805650a7","name":"DefiLlama Fee & Revenue Summary by Protocol","description":"Fees & revenue summary by DefiLlama — fee and revenue history for one protocol by slug.","url":"https://defillama.use.x402atlas.com/fee-summary","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","required":["protocol"],"properties":{"dataType":{"type":"string","maxLength":200,"description":"Optional data type (e.g. dailyFees, dailyRevenue)"},"protocol":{"type":"string","pattern":"^[^/?#]+$","maxLength":100,"minLength":1,"description":"Protocol slug (e.g. uniswap, aave)"},"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":{"name":{"type":"string","description":"Protocol display name"},"total24h":{"type":"number","description":"24h fees or revenue in USD, per dataType"},"totalAllTime":{"type":"number","description":"All-time cumulative fees or revenue in USD"}},"description":"Raw DefiLlama fee summary payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"name":"Uniswap","total24h":1200000,"totalAllTime":1230000000},"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_DShAmK8N8ghaSUZXfU2V1","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 fee and revenue history for a single DeFi protocol identified by its slug, with optional data type and chart filtering.","exampleAgentPrompt":"Pull the fee and revenue history for Uniswap from DefiLlama — just daily fees, and skip the aggregate chart data.","exampleUseCases":null,"resultDescription":"Returns a fee and revenue summary for the specified protocol including historical daily fees, daily revenue, and optional chart breakdowns depending on query parameters.","failureModes":["Invalid or unrecognized protocol slug returns error or empty result","Missing required 'protocol' query parameter causes validation error","Invalid dataType value may return unexpected or empty data","Network or upstream DefiLlama API downtime causes request failure","Payment failure (insufficient USDC) blocks access"],"whenToPreferThis":"Use this endpoint when you need fee or revenue data for a specific DeFi protocol by slug, particularly when you want historical daily fee/revenue trends. Prefer over general TVL or price endpoints when the question is about protocol earnings or fee generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:51:08.854Z","isFirstParty":false}