# DeFi Yields & Best APY Pools

> DeFi Yields & Best APY Pools is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-11).

Returns the best DeFi yield opportunities across ~15,000 lending, staking, LP, and vault pools with APY, TVL, IL risk, and exposure data, sourced from DefiLlama.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/defi/yields?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-defi-yields-best-apy-pools-7b4c0ac9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r9RJ30Kl5ITcsT7CuaGdp

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 agent-data-tools-revmesh2074-workers-dev-defi-yields-best-apy-pools-7b4c0ac9
```

Example prompt: What are the top 10 stablecoin pools right now with no impermanent loss risk, minimum $5M TVL, sorted by APY — show me the chain, protocol, and current APY for each?

## When to prefer this

Use this endpoint when an agent needs to discover or compare DeFi yield opportunities across lending, staking, LP, or vault pools and requires structured, filterable data including APY components, TVL, and risk signals. It is preferred over manual web scraping or general web search when real-time, structured pool data with IL risk and 30-day trend context is needed. It is especially valuable for agents helping users allocate idle crypto assets or compare protocols across chains.

## Known failure modes

- No pools returned if filters are too restrictive (e.g. very high minApy combined with noIl=true on a small chain)
- APY spikes from new or exploited pools may appear if maxApy is not set
- Symbol matching may miss pools where token appears under a different name or wrapped variant
- Protocol slug must match DefiLlama's exact slug format or no results are returned
- Stale data possible if DefiLlama upstream is delayed

## How this service works

DeFi yields, best APY pools. The best DeFi yields now across ~15,000 lending, staking, LP and vault pools: APY (base, reward), 30-day mean and change, TVL, stablecoin flag, impermanent-loss risk and exposure. Filter by chain, protocol, token, stablecoins, no IL, single exposure, TVL and APY range; sort by APY, TVL or 30-day mean. Source: DefiLlama. Use to find where to earn yield on a token or stablecoin. Not investment advice.

## Output

Returns a JSON object containing a list of matching pools (up to 50), each with: pool ID, symbol, chain, protocol name, current APY (total, base, and reward components), 30-day mean APY, 1/7/30-day APY change, TVL in USD, stablecoin flag, impermanent loss risk level, exposure type (single or multi), and a URL to the pool. Also includes metadata like sort order, matched pool count, and data source attribution.

## 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",
     "required": [],
     "properties": {
      "noIl": {
       "type": "string",
       "examples": [
        "true"
       ],
       "description": "true: only pools without impermanent-loss risk"
      },
      "sort": {
       "type": "string",
       "examples": [
        "apy"
       ],
       "description": "apy (default), tvl or apyMean30d"
      },
      "chain": {
       "type": "string",
       "examples": [
        "Base"
       ],
       "description": "Chain name(s), comma-separated: Ethereum, Base, Arbitrum, Solana…"
      },
      "limit": {
       "type": "integer",
       "examples": [
        10
       ],
       "description": "Number of pools (1-50, default 20)"
      },
      "maxApy": {
       "type": "number",
       "examples": [
        50
       ],
       "description": "Maximum APY in percent, to drop farm spikes (default 1,000)"
      },
      "minApy": {
       "type": "number",
       "examples": [
        3
       ],
       "description": "Minimum APY in percent (default 0)"
      },
      "minTvl": {
       "type": "number",
       "examples": [
        1000000
       ],
       "description": "Minimum TVL in USD (default 1,000,000)"
      },
      "single": {
       "type": "string",
       "examples": [
        "false"
       ],
       "description": "true: single-asset exposure only"
      },
      "symbol": {
       "type": "string",
       "examples": [
        "USDC"
       ],
       "description": "A token in the pool: USDC, ETH, WBTC…"
      },
      "project": {
       "type": "string",
       "examples": [
        "aave-v3"
       ],
       "description": "Protocol slug(s): aave-v3, lido, morpho-blue, pendle…"
      },
      "stablecoin": {
       "type": "string",
       "examples": [
        "true"
       ],
       "description": "true: stablecoin pools only"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "propert
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Yields change constantly and carry smart-contract, depeg and liquidation risk. Not investment advice.",
  "sort": "apy",
  "count": 1,
  "pools": [
   {
    "apy": 7.42,
    "url": "https://defillama.com/yields/pool/7e0661bf-8cf3-45e6-9424-31916d4c7b84",
    "meta": null,
    "chain": "Base",
    "poolId": "7e0661bf-8cf3-45e6-9424-31916d4c7b84",
    "symbol": "USDC",
    "tvlUsd": 48211230,
    "apyBase": 6.1,
    "outlook": "Stable/Up",
    "project": "morpho-blue",
    "exposure": "single",
    "apyChange": {
     "d1": 0.12,
     "d7": -0.4,
     "d30": 0.8
    },
    "apyReward": 1.32,
    "apyMean30d": 6.95,
    "stablecoin": true,
    "impermanentLossRisk": "no"
   }
  ],
  "source": "DefiLlama yields (yields.llama.fi)",
  "matched": 37
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-defi-yields-best-apy-pools-7b4c0ac9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
