# DeFi Yield Pool Data API (x402)

> DeFi Yield Pool Data API (x402) is a paid API for AI agents from myearnings-seven.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns real-time DeFi yield pool data including APY, TVL, chain, symbol, and project, optionally filtered by blockchain.

## Facts

- Endpoint: GET https://myearnings-seven.vercel.app/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-data-api-x402-43c0d458
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w5uT7AQNN16h5v4JgryTG

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-data-api-x402-43c0d458
```

Example prompt: Can you pull the current DeFi yield pool data for Arbitrum — I want to see the APY, TVL, and project names for the available pools?

## When to prefer this

Choose this endpoint when you need real-time DeFi yield pool metrics (APY, TVL) filterable by blockchain and want pay-per-request pricing via USDC on Base (x402 protocol) rather than a subscription API key. Ideal for agents that need on-demand yield scouting without ongoing SaaS commitments.

## Known failure modes

- Invalid or unsupported chain name returns empty or zero results
- Payment not fulfilled via x402 returns 402 Payment Required
- Network timeout if upstream DeFi data provider is slow
- Stale data if underlying source has not updated recently
- Missing chain parameter returns all pools which may be a large payload

## How this service works

Real-time GitHub trending repos, repo analytics, npm download stats, Hacker News stories, and DeFi yield data for AI agents. Pay per request via x402 (USDC on Base).

## Output

Returns a JSON object containing a count of matching pools and an array of pool objects, each with the pool's APY (as a number), blockchain chain name, token symbol, project name, and TVL in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Filter by blockchain (e.g. ethereum, arbitrum, base)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer"
  },
  "pools": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "apy": {
      "type": "number"
     },
     "chain": {
      "type": "string"
     },
     "symbol": {
      "type": "string"
     },
     "project": {
      "type": "string"
     },
     "tvl_usd": {
      "type": "integer"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-pool-data-api-x402-43c0d458/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from myearnings-seven.vercel.app](https://www.zero.xyz/host/myearnings-seven.vercel.app/llms.txt)
