# x402-data-api DeFi Yields

> x402-data-api DeFi Yields is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns top DeFi lending and LP pool yields with APY breakdowns, TVL, IL risk, and stability forecasts, filterable by project, chain, or stablecoin-only

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/defi/yields
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-api-defi-yields-5785b5c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gjt2LUvfaVUJM_T5NlNuM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-data-api-defi-yields-5785b5c9
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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).

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-api-defi-yields-5785b5c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
