# SperaxOS DeFi Yields API (DefiLlama)

> SperaxOS DeFi Yields API (DefiLlama) is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches DeFi yield/APY data from DefiLlama, filterable by chain, minimum TVL, and stablecoin status, payable per-request via x402 USDC on Base.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/defillama/getYields?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-defi-yields-api-defillama-24ec1d3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AZJi6Z9_sffKMzHKdbfdA

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-yields-api-defillama-24ec1d3c -d '<json body>'
```

Example prompt: Show me stablecoin yield pools on Arbitrum with at least $2 million TVL — I want to find the best current APY opportunities.

## When to prefer this

Choose this endpoint when you need real-time DeFi yield data filtered by specific blockchain, minimum TVL, or stablecoin type without needing an API key. Ideal for agents performing DeFi opportunity discovery, yield comparison, or portfolio research on a pay-per-use basis with no subscription overhead. Prefer over direct DefiLlama access when you want AI-curated DeFi intelligence via a standardized x402 micropayment flow.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted
- Invalid chain name returns empty results or error
- No pools found matching the TVL threshold — returns empty array
- DefiLlama data temporarily unavailable — upstream API error
- Malformed request body causes 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 list of DeFi liquidity pools matching the specified filters, including pool names, protocols, APY/yield rates, TVL figures, chain identifiers, and stablecoin classification — sourced from DefiLlama's yield database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Filter by blockchain (e.g. \"Ethereum\", \"Arbitrum\")."
  },
  "minTvl": {
   "type": "number",
   "description": "Minimum pool TVL in USD."
  },
  "stablecoin": {
   "type": "boolean",
   "description": "If true, only show stablecoin pools."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-defi-yields-api-defillama-24ec1d3c/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)
