# CortexCloud DeFiLlama Yields API

> CortexCloud DeFiLlama Yields API is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches DeFi protocol yield/APY data from DeFiLlama via a pay-per-call x402 endpoint, returning current yield opportunities across DeFi pools and protocols.

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/defillama/yields
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-defillama-yields-api-903610c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ULRCy_RAHidQSyhJ_j5r8

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 cortexcloud-defillama-yields-api-903610c4
```

Example prompt: Pull the latest yield data from DeFiLlama and show me the top stablecoin pools by APY right now — I want to see which protocols are offering the best returns.

## When to prefer this

Choose this endpoint when you need on-demand DeFi yield data sourced from DeFiLlama without managing API keys or subscriptions — ideal for AI agents that need pay-per-call access to live DeFi APY data using USDC micropayments on Base via x402. Prefer this over direct DeFiLlama API calls when operating in a keyless, on-chain payment context.

## Known failure modes

- Payment not accepted or insufficient USDC balance returns HTTP 402
- DeFiLlama upstream API unavailable causes 503 or empty response
- Invalid filter properties in query may return empty results or 400 error
- Rate limiting or network timeout may cause delayed or failed responses

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

Returns a JSON object containing DeFi pool yield data sourced from DeFiLlama, including pool identifiers, protocol names, chains, current APY (base and reward components), and total value locked (TVL) for yield-bearing positions across DeFi protocols.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-defillama-yields-api-903610c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
