# DeFiLlama Yield Pools API (via RelayhopResell)

> DeFiLlama Yield Pools API (via RelayhopResell) is a paid API for AI agents from free-api-resell.relayhop.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns all DeFi yield pools with APY and TVL data across chains, sourced from the DeFiLlama public API.

## Facts

- Endpoint: GET https://free-api-resell.relayhop.workers.dev/v1/defillama/yields
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/free-api-resell-relayhop-workers-dev-842578a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ba2Rdj-BrX68FuPyJDqej

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 free-api-resell-relayhop-workers-dev-842578a2
```

Example prompt: Pull all DeFi yield pools from DeFiLlama — I want to see the APY and TVL across every chain so I can find the best farming opportunities right now.

## When to prefer this

Use this endpoint when you need a comprehensive snapshot of DeFi yield pools across all chains and protocols from DeFiLlama. Ideal when the agent needs to compare APY and TVL across the ecosystem without filtering to a specific chain or protocol upfront.

## Known failure modes

- Upstream DeFiLlama API unavailable — returns gateway/service error
- Payment not processed — returns 402 Payment Required
- Rate limiting if too many requests in a short window
- Empty or stale data if DeFiLlama index has not refreshed recently

## How this service works

All DeFi yield pools (APY / TVL) across chains. Source: DeFiLlama public API (free).

## Output

A list of all DeFi yield pools aggregated from DeFiLlama, each with APY (annual percentage yield), TVL (total value locked), chain, protocol name, and pool identifier.

## Example request

```json
{
 "input": {}
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {}
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/free-api-resell-relayhop-workers-dev-842578a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from free-api-resell.relayhop.workers.dev](https://www.zero.xyz/host/free-api-resell.relayhop.workers.dev/llms.txt)
