# DeFi Yield Rankings via DefiLlama

> DeFi Yield Rankings via DefiLlama is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns the highest-APY DeFi lending and liquidity pool yields across chains, sourced from DefiLlama, with optional filtering by chain, minimum TVL, and result count.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/defi/yields
- Price: $0.05/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-rankings-via-defillama-fe484411
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5OxwUZyCbYd0UNkJ88b-x

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-rankings-via-defillama-fe484411
```

Example prompt: What are the top 10 DeFi yield opportunities on Base right now, only showing pools with at least $5 million in TVL?

## When to prefer this

Use this endpoint when you need a ranked, up-to-date list of DeFi yield opportunities sourced from DefiLlama without building your own aggregation. Prefer it over direct DefiLlama API calls when you need pay-per-use access without API key management, or when you want chain-filtered and TVL-filtered results in a single call. Ideal for agents making DeFi investment recommendations or portfolio yield comparisons.

## Known failure modes

- Invalid chain slug returns empty results or error
- Limit exceeding 100 is capped or rejected
- DefiLlama upstream API unavailability causes timeout or stale data
- Very high min_tvl values may return zero pools
- Payment of $0.005 USDC not provided results in 402 response

## How this service works

Best DeFi yields (APY) across lending/liquidity pools, highest first, source DefiLlama. Optional parameters: ?chain=<slug> (e.g. base), ?min_tvl=<usd> (minimum pool TVL), ?limit=<n> (default 20, max 100).

## Output

A JSON object containing a list of DeFi pools ranked by APY (highest first), each with the pool's APY percentage, chain name, token symbol, project name, TVL in USD, and whether it's a stablecoin pool. Also includes the total count of results, the DefiLlama source URL, and the timestamp of when data was fetched.

## 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": {
      "chain": {
       "type": "string",
       "description": "Filter by chain name (e.g. base, ethereum). Optional."
      },
      "limit": {
       "type": "integer",
       "description": "Number of pools to return (1-100, default 20)."
      },
      "min_tvl": {
       "type": "number",
       "description": "Minimum pool TVL in USD. Optional."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 20,
  "pools": [
   {
    "apy": 4.2,
    "chain": "Base",
    "symbol": "USDC",
    "project": "aave-v3",
    "tvl_usd": 85000000,
    "stablecoin": true
   }
  ],
  "source": "https://yields.llama.fi/pools",
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-rankings-via-defillama-fe484411/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
