# AiToollab DeFi Yield Rates API

> AiToollab DeFi Yield Rates API is a paid API for AI agents from api.aitoollab.top, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Returns top DeFi protocol yield rates (APY) and total value locked (TVL) across chains like Ethereum

## Facts

- Endpoint: GET https://api.aitoollab.top/api/defi/yields?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aitoollab-defi-yield-rates-api-28b41f47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IMagvT7SM9vMiH_3TNph5

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 aitoollab-defi-yield-rates-api-28b41f47
```

Example prompt: What are the top DeFi yield rates right now — show me the best APY and TVL across protocols like Aave and Compound on Ethereum?

## When to prefer this

Use this endpoint when you need current DeFi yield data including APY and TVL for major lending protocols on Ethereum and other chains. Best suited for DeFi dashboards, yield comparison tools, or investment decision support. Prefer this over manual scraping of protocol UIs when you need structured, machine-readable yield data.

## Known failure modes

- API returns stale data if upstream DeFi data sources are unavailable
- Empty or partial results if no protocols match filter criteria
- HTTP 402 if payment is not included or insufficient
- HTTP 500 if backend data aggregation fails
- Rate limiting if called too frequently without proper payment

## How this service works

AiToollab，普通人用AI做副业的实战平台。收录10+AI副业方向、50+提示词模板、真实赚钱案例。每周更新，找方向、找工具、找案例，一站搞定。

## Output

Returns a JSON object with a list of top DeFi yields, each including the protocol name (e.g. Aave, Compound), chain (e.g. Ethereum), APY percentage, and TVL in USD, plus a last_updated timestamp.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "top_yields": [
   {
    "apy": 5.2,
    "tvl": 1000000000,
    "chain": "Ethereum",
    "protocol": "Aave"
   },
   {
    "apy": 4.8,
    "tvl": 800000000,
    "chain": "Ethereum",
    "protocol": "Compound"
   }
  ],
  "last_updated": "2026-04-27T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aitoollab-defi-yield-rates-api-28b41f47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aitoollab.top](https://www.zero.xyz/host/api.aitoollab.top/llms.txt)
