# 2s.io DeFi Yield & Lending Rates

> 2s.io DeFi Yield & Lending Rates is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-13).

Returns DeFi pool yield and lending rates across protocols, ranked and filtered by APY, TVL, chain, project, and symbol with trend data.

## Facts

- Endpoint: GET https://2s.io/api/crypto/defi-yields
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-defi-yield-lending-rates-91ce1e73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M-DOpToxNQoyhpEWwtcbO

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 2s-io-defi-yield-lending-rates-91ce1e73
```

Example prompt: Show me the top 20 USDC pools on Ethereum sorted by APY, only ones with at least $5 million TVL and a minimum 4% APY — I want to see base vs reward APY and the 7-day trend.

## When to prefer this

Use this endpoint when you need live DeFi yield or lending rate data across multiple protocols and chains — especially when filtering by specific assets (USDC, ETH), projects (Aave, Compound, Lido), or chains, and when APY trend history (1d/7d/30d) matters. Prefer over generic crypto price APIs when the goal is yield optimization or DeFi rate comparison.

## Known failure modes

- Invalid chain or project name returns empty result set or 400 error
- minApy or minTvlUsd filters too restrictive — returns empty array
- Limit exceeds maximum of 100 — validation error
- Upstream DefiLlama data temporarily unavailable — 502 or timeout
- Unknown symbol returns empty results with no error

## How this service works

DeFi yield & lending rates across protocols (via DefiLlama, free/keyless). Returns pools ranked by APY or TVL with base vs reward APY, TVL, 1d/7d/30d APY trend, stablecoin flag, and IL-risk. Filter by chain, project (aave, compound, lido…), symbol (USDC, ETH…), minApy, minTvlUsd. The yield/lending-rate layer beyond crypto.defi's TVL headline.

## Output

A ranked list of DeFi liquidity pools or lending markets, each with pool name, project, chain, token symbol, base APY, reward APY, total APY, TVL in USD, 1-day/7-day/30-day APY trends, stablecoin flag, and impermanent loss risk indicator.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "sort": {
       "enum": [
        "apy",
        "tvl"
       ],
       "type": "string"
      },
      "chain": {
       "type": "string",
       "maxLength": 40
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      },
      "minApy": {
       "type": "number",
       "minimum": 0
      },
      "symbol": {
       "type": "string",
       "maxLength": 40
      },
      "project": {
       "type": "string",
       "maxLength": 60
      },
      "minTvlUsd": {
       "type": "number",
       "minimum": 0
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-defi-yield-lending-rates-91ce1e73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
