{"uid":"cap_WvRQJgfaN8hPg5jlmw-er","slug":"defi-shield-hazel-vercel-app-09d97394","name":"DeFi Protocol Comparator","description":"","url":"https://defi-shield-hazel.vercel.app/api/protocol/compare","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"protocols":{"type":"array","description":"Array of 2-10 protocol names to compare"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"protocols":["Uniswap","Aave"]},"type":"http","method":"POST","bodyType":"json"}},"response":{"rankings":{"by_tvl":[{"tvl":12267811536.441292,"name":"Aave V3"},{"tvl":1489723666.798982,"name":"Uniswap V3"}],"by_7d_trend":[{"name":"Uniswap V3","change_7d":2.9698425392186323},{"name":"Aave V3","change_7d":1.8883089930307904}],"by_safety_score":[{"name":"Aave V3","safety_score":85},{"name":"Uniswap V3","safety_score":80}],"by_chain_diversification":[{"name":"Uniswap V3","chain_count":43},{"name":"Aave V3","chain_count":21}]},"comparison":[{"tvl":1489723666.798982,"name":"Uniswap V3","slug":"uniswap-v3","chains":["Ethereum","Base","Arbitrum","Binance","Polygon","Optimism","X Layer","Plasma","xDai","Celo","Avalanche","Unichain","RSK","Monad","Nibiru","World Chain","0G","XDC","Boba","zkSync Era","Filecoin","Etherlink","Mantle","Goat","BOB","Lens","Telos","Sonic","Redbelly","Hemi","Scroll","Linea","Sei","Blast","Taiko","Lisk","Polygon zkEVM","Moonbeam","Corn","Tempo","Manta","LightLink","Saga"],"symbol":"UNI","category":"Dexs","change_1d":1.6560144426697434,"change_7d":2.9698425392186323,"audit_count":2,"chain_count":43,"safety_score":80},{"tvl":12267811536.441292,"name":"Aave V3","slug":"aave-v3","chains":["Ethereum","Plasma","Arbitrum","Base","Avalanche","Binance","Polygon","Mantle","MegaETH","X Layer","xDai","Optimism","Linea","Sonic","Celo","Scroll","zkSync Era","Metis","Soneium","Fantom","Harmony"],"symbol":"AAVE","category":"Lending","change_1d":1.0790899876290183,"change_7d":1.8883089930307904,"audit_count":2,"chain_count":21,"safety_score":85}],"recommended":"Aave V3","protocol_count":2,"ranking_criteria":"Safety score combines: TVL size (battle-tested), TVL trend (stability), audit count (security), chain count (diversification)","response_time_ms":296,"recommended_reason":"Highest safety score (85/100) based on TVL, trends, audits, and chain diversification"}},"exampleRequest":{"protocols":["Uniswap","Aave"]},"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dxsgQnPwg3ivacaEXmsyk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares multiple DeFi protocols side by side across TVL, 7-day trend, safety score, and chain diversification","exampleAgentPrompt":"Can you compare Uniswap and Aave side by side — show me their TVL, 7-day trend, safety scores, and how many chains each one supports?","exampleUseCases":null,"resultDescription":"Returns ranked comparisons of the requested DeFi protocols across four dimensions: by TVL (total value locked in USD), by 7-day percentage change, by safety score (0-100), and by chain diversification count. Also includes a full detailed comparison object per protocol with chain list, token symbol, category, and other metadata.","failureModes":["Unknown or misspelled protocol names may return empty or partial results","Truncated response if too many protocols are requested simultaneously","Stale TVL or trend data if underlying DeFiLlama or similar data source is unavailable","HTTP 402 if payment header is missing or USDC balance is insufficient","Network timeout if upstream protocol data APIs are slow"],"whenToPreferThis":"Use this endpoint when you need a structured, multi-dimensional side-by-side comparison of two or more DeFi protocols — especially when the user wants to evaluate TVL, safety, recent momentum, and chain coverage in a single call. Prefer this over individual protocol lookups when ranking or decision-making across protocols is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:51:32.316Z","isFirstParty":false}