{"slug":"agent402-tools-api-defi-fees-18f26f","title":"Protocols ranked by fees paid by users or by revenue kept, with 24h, 7d, 30d, 1y","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/defi-fees","category":"market","description":"Protocols ranked by fees paid by users or by revenue kept, with 24h, 7d, 30d, 1y and all-time totals, change, category and chains, and chain-level gas fees on request. Use it when an agent is comparing protocols on real usage rather than TVL or valuing a token against the fees its protocol earns.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1011,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"limit":5,"metric":"fees"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"category":{"description":"Optional category filter (Dexs, Lending, Derivatives, Liquid Staking, ...). Case-insensitive exact match.","type":"string"},"chain":{"description":"Optional chain scope as DefiLlama names it (Ethereum, Base, Solana, Arbitrum, BSC, OP Mainnet...). Case-insensitive; common aliases accepted. Omit for all chains.","type":"string"},"limit":{"description":"Rows to return (default 25, max 100).","type":"number"},"metric":{"description":"\"fees\" (default) or \"revenue\".","type":"string"},"search":{"description":"Optional name/slug substring filter (case-insensitive).","type":"string"},"type":{"description":"Row type: \"protocol\" (default), \"chain\" (chain-level rows such as network gas fees), or \"all\".","type":"string"}},"required":[]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"cached":{"type":"boolean"},"chain":{},"chains":{"type":"array"},"count":{"type":"integer"},"fetchedAt":{"type":"string"},"matched":{"type":"integer"},"metric":{"type":"string"},"protocols":{"type":"array"},"source":{"type":"string"},"totals":{"type":"object"},"unit":{"type":"string"}},"required":["source","fetchedAt","cached","metric","unit","totals","chains","matched","count","protocols"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1011,"error":null}],"description_full":"Protocols ranked by fees paid by users or by revenue kept, with 24h, 7d, 30d, 1y and all-time totals, change, category and chains, and chain-level gas fees on request. Use it when an agent is comparing protocols on real usage rather than TVL or valuing a token against the fees its protocol earns.","last_updated":"2026-09-22T11:47:14.751Z","schemes":["exact","upto"]}