# DeFi Yield Pools API (DefiLlama via klane402)

> DeFi Yield Pools API (DefiLlama via klane402) is a paid API for AI agents from klane402.deanhiki.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns top DeFi yield pool data from DefiLlama, filterable by token symbol, chain, stablecoin flag, minimum TVL, and result limit, with APY and TVL metrics.

## Facts

- Endpoint: GET https://klane402.deanhiki.workers.dev/api/yields?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-yield-pools-api-defillama-via-klane402-9e9bafc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CBiyviUMLH3nzMfVI9Xvs

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 defi-yield-pools-api-defillama-via-klane402-9e9bafc4
```

Example prompt: What are the top DeFi yield pools for USDC on Base right now? Show me stablecoins only, with at least $5M TVL, and give me the top 10 results including their APY and project names.

## When to prefer this

Use this endpoint when you need structured, filterable DeFi yield data sourced from DefiLlama without building your own DefiLlama integration. Ideal for agents that need to compare yields across protocols and chains, screen stablecoin opportunities, or monitor APY trends. The 30-day mean APY field is particularly useful for filtering out short-lived incentive spikes. Prefer this over raw DefiLlama API calls when you need a ready-to-use, cached, pay-per-call interface with no API key setup.

## Known failure modes

- No pools returned if symbol or chain filter matches nothing in DefiLlama data
- Very small min_tvl values may return illiquid or unreliable pools
- Stale data up to 15 minutes old due to caching
- Invalid chain name silently returns empty results
- Payment failure (402) if USDC payment of $0.01 is not properly included

## How this service works

Top DeFi yield pools from DefiLlama, filterable: query symbol (e.g. USDC), chain (e.g. Base), stable=1 (stablecoin only), min_tvl (default 1000000), limit (default 25). Returns project, chain, symbol, apy, apyBase, apyReward, tvlUsd, 30d mean apy. Cached 15 min. $0.01 per call.

## Output

A JSON array of yield pool objects, each containing project name, chain, token symbol, current APY, base APY (apyBase), reward APY (apyReward), TVL in USD, and 30-day mean APY. Results are cached for 15 minutes and ranked by relevance to the filters applied.

## 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": {
      "stable": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pools": [
   {
    "apy": 5.1,
    "chain": "Base",
    "symbol": "USDC",
    "tvlUsd": 120000000,
    "project": "aave-v3"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-pools-api-defillama-via-klane402-9e9bafc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klane402.deanhiki.workers.dev](https://www.zero.xyz/host/klane402.deanhiki.workers.dev/llms.txt)
