{"uid":"cap_S_sT33dbWt5P9qQxGSZC9","slug":"defi-protocol-fees-dex-volume-leaderboard-fb7002c9","name":"DeFi Protocol Fees & DEX Volume Leaderboard","description":"Protocol fees/revenue or DEX trading volume leaderboards (via DefiLlama, free/keyless). kind=fees ranks protocols by fees generated; kind=dexs ranks DEXes by trading volume. Each row has 24h/7d/30d/1y totals + 1-month change, plus catalog totals. Sort by total24h/7d/30d. The protocol-economics layer.","url":"https://2s.io/api/crypto/defi-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","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","properties":{"kind":{"enum":["fees","dexs"],"type":"string"},"sort":{"enum":["total24h","total7d","total30d"],"type":"string"},"limit":{"type":"integer","maximum":100,"minimum":1}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0036","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.0036/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BdjvFFCH8mM3sYso0c3E-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ranked leaderboards of DeFi protocol fees/revenue or DEX trading volumes (via DefiLlama), with 24h/7d/30d/1y breakdowns and month-over-month change.","exampleAgentPrompt":"Show me the top 20 DeFi protocols ranked by fees generated in the last 24 hours, and also pull up the top DEX trading volume leaderboard sorted by 7-day volume.","exampleUseCases":null,"resultDescription":"A ranked list of DeFi protocols or DEXes with their fee/volume figures across 24h, 7d, 30d, and 1y timeframes, plus a 1-month percentage change and aggregate catalog totals. Each row represents one protocol or exchange with its numeric fee or volume metrics.","failureModes":["Invalid 'kind' value (not 'fees' or 'dexs') returns an error","Invalid 'sort' value (not 'total24h', 'total7d', 'total30d') returns an error","Limit outside range 1–100 returns a validation error","Payment not included or insufficient USDC triggers 402 response","DefiLlama upstream unavailability may cause stale or missing data"],"whenToPreferThis":"Use this endpoint when you need ranked, up-to-date leaderboard data for DeFi protocol fees or DEX trading volumes sourced from DefiLlama, with multi-timeframe breakdowns (24h/7d/30d/1y) in a single call. Prefer this over building your own DefiLlama integration when you want pay-per-call access without an API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:58:27.826Z","isFirstParty":false}