{"uid":"cap_DiaqXBminKt3rYQYP9yx1","slug":"api-web3identity-com-14dc046f","name":"DeFi Yield Opportunities Aggregator","description":"Get best yield opportunities across DeFi protocols","url":"https://api.web3identity.com/api/defi/yields","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"count":{"type":"number"},"yields":{"type":"array"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"_truncated":true,"_originalSize":36184}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020000","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.020000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BZQptSJt1_8O1Ce86Ncvs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the best current yield opportunities aggregated across multiple DeFi protocols","exampleAgentPrompt":"What are the best yield opportunities available across DeFi protocols right now — show me the top APY rates I can earn on my crypto.","exampleUseCases":[{"title":"Portfolio rebalancing for maximum returns","prompt":"I've got about 50k USDC sitting idle — where should I move it to earn the best yield right now across all DeFi protocols?"},{"title":"Comparing staking and lending opportunities","prompt":"Show me the highest APY opportunities for staking and lending my crypto assets today — I want to see what the top protocols are paying."},{"title":"Finding passive income for idle assets","prompt":"What are the current best yield farming rates across DeFi? I'm looking for the safest, highest-returning places to park my assets for passive income."}],"resultDescription":"Returns a list of yield opportunities across DeFi protocols including protocol names, APY rates, asset pairs, and a count of total opportunities found.","failureModes":["Upstream DeFi data unavailable — partial or empty yields array returned","Payment not processed — 402 response requiring x402 payment header","Rate limit exceeded — too many requests in short window","Protocol data stale — yields may not reflect real-time rates"],"whenToPreferThis":"Use this endpoint when you need a quick cross-protocol yield comparison without building your own aggregation logic. Ideal for agents helping users allocate idle crypto assets to the highest-returning DeFi positions. Prefer this over DefiLlama TVL endpoint when you need yield/APY data rather than liquidity metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:09.933Z","isFirstParty":false}