{"uid":"cap_gjt2LUvfaVUJM_T5NlNuM","slug":"x402-data-api-defi-yields-5785b5c9","name":"x402-data-api DeFi Yields","description":"Top DeFi lending/LP yields — project, chain, symbol, pool id, APY breakdown + 1d/7d/30d APY trend, IL risk (incl. il7d), exposure, reward/underlying tokens, outlier flag, mu/sigma, DefiLlama stability forecast, TVL. Filter by project, chain, or stablecoin-only; sort by TVL (default) or risk-adjusted APY (apy/sigma).","url":"https://x402-data-api.sigrunner.workers.dev/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","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"sort":{"type":"string","description":"Optional: \"tvl\" (default) or \"risk_adjusted\" (apy/sigma)"},"chain":{"type":"string","description":"Optional: filter to an exact chain name (case-insensitive)"},"limit":{"type":"string","description":"Max pools to return (default 20, max 100)"},"stable":{"type":"string","description":"Optional: \"true\" to return only stablecoin pools"},"project":{"type":"string","description":"Optional: filter to an exact project name (case-insensitive)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mu":3.47618,"apy":4.21,"il7d":null,"pool":"747c1d2a-c668-4682-b9f9-296708a3dd90","chain":"Ethereum","sigma":0.05347,"ilRisk":"no","symbol":"USDC","tvlUsd":512345678,"apyBase":3.1,"outlier":false,"project":"aave-v3","apyPct1D":0.001,"apyPct7D":-0.06,"exposure":"single","apyBase7d":3.05,"apyPct30D":0.15,"apyReward":1.11,"apyMean30d":4.1,"stablecoin":true,"volumeUsd1d":null,"rewardTokens":null,"underlyingTokens":["0x0000000000000000000000000000000000000000"],"risk_adjusted_apy":78.75,"predicted_probability":64}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ggQNcUw99WI3guyWC-0tZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns top DeFi lending and LP pool yields with APY breakdowns, TVL, IL risk, and stability forecasts, filterable by project, chain, or stablecoin-only","exampleAgentPrompt":"Show me the top 20 stablecoin-only DeFi yield pools on Arbitrum sorted by risk-adjusted APY, including their APY trends, IL risk, and TVL.","exampleUseCases":[{"title":"Find safest high-yield opportunities","prompt":"I want to find DeFi lending pools with the lowest impermanent loss risk but still earning good APY. Show me the top 15 stablecoin-only pools ranked by risk-adjusted returns, and highlight any with IL forecasts trending safer over the next week."},{"title":"Compare yields across major protocols","prompt":"Can you pull the highest-APY pools from Aave and Compound on Ethereum and Polygon, then sort them by how stable their returns have been over the last 30 days? I want to see which protocol is trending better."},{"title":"Identify emerging DeFi opportunities","prompt":"Show me pools that aren't outliers but are trending up in APY over the last 7 days. Filter for Arbitrum and Optimism only, sort by TVL, and flag any with low impermanent loss and good stability forecasts from DefiLlama."}],"resultDescription":"A ranked list of DeFi pools with project name, chain, symbol, pool ID, full APY breakdown, 1d/7d/30d APY trend, impermanent loss risk including il7d, exposure type, reward and underlying tokens, outlier flag, mu/sigma statistics, DefiLlama stability forecast, and TVL — filtered and sorted per request parameters.","failureModes":["Invalid chain or project name returns empty results or an error","Limit exceeding 100 is clamped or rejected","Unrecognized sort parameter defaults to TVL sort","Network or worker timeout returns 5xx error","Payment not completed (x402) returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a ranked, multi-dimensional view of DeFi yield opportunities including risk metrics (IL, mu/sigma), stability forecasts, and APY trends across protocols — especially when filtering by chain, project, or stablecoin-only pools. Prefer over raw DefiLlama if you want pre-processed risk-adjusted ranking and outlier flagging in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:41:06.154Z","isFirstParty":false}