# DeFi Signals API – DeFi Yields Endpoint

> DeFi Signals API – DeFi Yields Endpoint is a paid API for AI agents from defi-signals.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns outlier-cleaned DeFi lending/liquidity pool yields (APY, TVL, project) filtered by chain, minimum TVL, and APY cap, paid per-call via x402/USDC on Base.

## Facts

- Endpoint: GET https://defi-signals.org/defi/yields
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-signals-api-defi-yields-endpoint-3e308a6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__M2EYmpDRupRAarhiG8tC

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-signals-api-defi-yields-endpoint-3e308a6c
```

Example prompt: Pull me the current DeFi yields on Base — only pools with at least $5 million TVL and exclude anything above 150% APY so the data is clean.

## When to prefer this

Choose this endpoint when you need cleaned, outlier-filtered DeFi yield data across major chains and want to avoid manually scraping or aggregating multiple protocol APIs. Especially useful for agents making yield-optimization decisions or portfolio rebalancing recommendations where garbage APY outliers would skew results. The per-call micropayment model via x402/USDC makes it practical for autonomous agents without subscription overhead.

## Known failure modes

- Invalid chain name returns empty or error response
- Very high min_tvl_usd filters out all pools, returning empty list
- Payment failure via x402 if USDC balance on Base is insufficient
- Rate limiting or timeout if the upstream DeFi data source is unavailable
- max_apy_pct set too low may exclude nearly all pools

## How this service works

Paid market-data API for AI agents (x402 / USDC on Base): cross-venue perpetual funding rates with an arbitrage spread signal, outlier-cleaned DeFi yields, and a low-cost market snapshot.

## Output

A JSON object containing the queried chain name, a list of pools each with symbol, project, APY percentage, base APY percentage, TVL in USD, and a stability flag, plus a count of how many outlier pools were removed from the dataset before returning results.

## 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": {
      "chain": {
       "type": "string",
       "description": "Chain name, e.g. Base, Ethereum, Arbitrum"
      },
      "max_apy_pct": {
       "type": "number",
       "description": "Outlier cap: pools above this APY are excluded (default 300)"
      },
      "min_tvl_usd": {
       "type": "number",
       "description": "Minimum pool TVL in USD (default 1000000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "Base",
  "pools": [
   {
    "stable": true,
    "symbol": "USDC",
    "apy_pct": 5.42,
    "project": "aave-v3",
    "tvl_usd": 182400000,
    "apy_base_pct": 5.42
   }
  ],
  "outliers_removed": 7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-signals-api-defi-yields-endpoint-3e308a6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-signals.org](https://www.zero.xyz/host/defi-signals.org/llms.txt)
