# DeFi Yield Pool Aggregator via DefiLlama

> DeFi Yield Pool Aggregator via DefiLlama is a paid API for AI agents from 4yearcycle.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns top DeFi liquidity pool yields ranked by APY or TVL, with optional filtering by chain, minimum TVL, and stablecoin status.

## Facts

- Endpoint: GET https://4yearcycle.com/x402/defi-yields
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-yield-pool-aggregator-via-defillama-100aee4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cXY8bIKMnsbjZyDTjv5vA

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-pool-aggregator-via-defillama-100aee4f
```

Example prompt: Show me the top 20 DeFi liquidity pools on Base sorted by APY, only include pools with at least $10M TVL.

## When to prefer this

Choose this endpoint when you need ranked, filterable DeFi yield data sourced from DefiLlama with minimal setup — ideal for agents comparing cross-chain APY opportunities, building yield dashboards, or screening pools by TVL and chain without running your own DefiLlama queries.

## Known failure modes

- Invalid chain name returns empty pool list or unfiltered results
- top value above 100 is silently capped at 100
- minTvlUsd with non-integer string may cause validation error
- DefiLlama upstream outage returns stale or empty data
- Payment not accepted returns HTTP 402

## How this service works

Interactive Bitcoin 4-year halving cycle chart on a polar disc. Live price, 200W MA, Mayer Multiple, RSI, MACD, Pi Cycle and optional paid cycle projections.

## Output

Returns a JSON object with a count of matching pools, a timestamp (generatedAt), and an array of pool objects each containing project name, token symbol, chain, TVL in USD, total APY (base + reward split), pool ID, impermanent loss risk flag, and stablecoin classification.

## 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": {
      "top": {
       "type": "string",
       "default": "20",
       "pattern": "^\\d{1,3}$",
       "examples": [
        "20",
        "50"
       ],
       "description": "Maximum number of pools to return. Integer 1-100; values above 100 are capped. Default: 20."
      },
      "sort": {
       "enum": [
        "apy",
        "tvl"
       ],
       "type": "string",
       "default": "apy",
       "examples": [
        "apy",
        "tvl"
       ],
       "description": "Ranking order: apy = highest total APY first, tvl = largest TVL first. Default: apy."
      },
      "chain": {
       "type": "string",
       "examples": [
        "Base",
        "Ethereum",
        "Arbitrum"
       ],
       "description": "Optional chain filter, matched case-insensitively against DefiLlama chain names (Ethereum, Base, Arbitrum, Solana, Polygon, BSC, ...). Empty = all chains."
      },
      "minTvlUsd": {
       "type": "string",
       "default": "10000000",
       "pattern": "^\\d+$",
       "examples": [
        "10000000",
        "1000000"
       ],
       "description": "Minimum pool TVL in USD; pools below it are dropped. Integer >= 0. Default: 10000000 ($10M)."
      },
      "stablecoinOnly": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "default": "false",
       "examples": [
        "true"
       ],
       "description": "If true, keep only pools DefiLlama classifies as stablecoin pools. Default: false."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "count",
      "generatedAt",
      "pools"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "description": "Number of pools returned (after filtering and top cap)"
      },
      "pools": {
       "type": "array",
       "items":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "pools": [
   {
    "apy": 22.23682,
    "chain": "Base",
    "ilRisk": "yes",
    "poolId": "d32f9c01-47d1-4077-8c73-8b91b08d1e91",
    "symbol": "USDC-AERO",
    "tvlUsd": 26728916,
    "apyBase": null,
    "project": "aerodrome-v1",
    "apyReward": 22.23682,
    "stablecoin": false
   },
   {
    "apy": 16.58258,
    "chain": "Arbitrum",
    "ilRisk": "yes",
    "poolId": "61b4c35c-97f6-4c05-a5ff-aeb4426adf5b",
    "symbol": "ETH-USDC",
    "tvlUsd": 40279708,
    "apyBase": 16.58258,
    "project": "gmx-v2-perps",
    "apyReward": null,
    "stablecoin": false
   }
  ],
  "generatedAt": 1787047200000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-pool-aggregator-via-defillama-100aee4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 4yearcycle.com](https://www.zero.xyz/host/4yearcycle.com/llms.txt)
