# SperaxOS DeFi Yield Pools API

> SperaxOS DeFi Yield Pools API is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns ranked DeFi yield pool data (APY, TVL, chain, project) across protocols, filtered by TVL, payable per-request with USDC via x402.

## Facts

- Endpoint: GET https://chat.sperax.io/api/x402/yields?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-defi-yield-pools-api-4709535f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UqUzpVppkXrqlBQwbo6T1

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 speraxos-defi-yield-pools-api-4709535f
```

Example prompt: Show me the top 50 DeFi yield pools with at least $5 million TVL — I want to see APY, chain, project, and whether each pool is stablecoin-based.

## When to prefer this

Choose this endpoint when you need live, cross-protocol DeFi yield pool data (APY, TVL, chain, project) without a long-term API key commitment — ideal for pay-as-you-go agent workflows, one-off yield research, or automated DeFi opportunity scanners that use x402 micropayments on Base. Prefer it over generic DeFiLlama API calls when you want a curated, AI-augmented view with built-in filtering by TVL and a structured summary.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- limit parameter exceeds 500 — may return validation error or be capped
- minTvl filter too high — returns empty pools array with valid summary
- Network or upstream DeFiLlama data unavailable — may return 503 or stale data
- Invalid parameter types (e.g. string instead of integer for limit) — returns 400 Bad Request

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

A JSON object containing an array of yield pool records — each with pool ID, project name, chain, symbol, APY (total, base, reward), TVL in USD, 7-day impermanent loss, stablecoin flag, and exposure type — plus a summary object with average APY, total TVL, and pool count, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "description": "Max pools returned (default: 200, max: 500)"
  },
  "minTvl": {
   "type": "number",
   "description": "Minimum TVL in USD (default: 1,000,000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pools": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "apy": {
      "type": "number",
      "example": 5.2
     },
     "il7d": {
      "type": "number",
      "nullable": true
     },
     "pool": {
      "type": "string",
      "description": "DeFiLlama pool ID"
     },
     "chain": {
      "type": "string",
      "example": "Ethereum"
     },
     "symbol": {
      "type": "string",
      "example": "USDC"
     },
     "tvlUsd": {
      "type": "number",
      "example": 150000000
     },
     "apyBase": {
      "type": "number",
      "nullable": true
     },
     "project": {
      "type": "string",
      "example": "aave-v3"
     },
     "exposure": {
      "type": "string",
      "nullable": true
     },
     "apyReward": {
      "type": "number",
      "nullable": true
     },
     "stablecoin": {
      "type": "boolean"
     }
    }
   }
  },
  "summary": {
   "type": "object",
   "properties": {
    "avgApy": {
     "type": "number"
    },
    "totalTvl": {
     "type": "number"
    },
    "poolCount": {
     "type": "integer"
    }
   }
  },
  "timestamp": {
   "type": "string",
   "format": "date-time"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-defi-yield-pools-api-4709535f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
