# HTTPay DeFi Yields API

> HTTPay DeFi Yields API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches top DeFi yield opportunities across protocols on Base, sourced from DeFiLlama, via a pay-per-call x402 endpoint.

## Facts

- Endpoint: POST https://httpay.xyz/api/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/httpay-defi-yields-api-116a3caa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fNkyv-TB3HxQZA6KteroU

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 httpay-defi-yields-api-116a3caa -d '<json body>'
```

Example prompt: What are the top DeFi yield opportunities on Base right now — show me the best APY rates across all protocols so I can decide where to put my USDC?

## When to prefer this

Choose this endpoint when you need live DeFi yield data specifically for the Base blockchain without setting up API keys or subscriptions. Ideal for agents that need on-demand, pay-per-call access to yield intelligence using USDC micropayments via x402. Prefer this over DeFiLlama's direct API when you want a pre-integrated, x402-compatible interface or when building autonomous agents that manage their own API payments.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required
- DeFiLlama upstream data unavailable — 502 or 503 error
- Rate limiting or network congestion on Base — delayed or failed payment
- No yields data available for the requested filter — empty result set
- Invalid request parameters — 400 Bad Request

## How this service works

Top DeFi yields across protocols on Base via DeFiLlama

## Output

A JSON response listing top DeFi yield opportunities on Base, including protocol names, pool details, and APY/APR rates sourced from DeFiLlama. The data helps compare yield options across lending protocols, liquidity pools, and other DeFi strategies available on the Base network.

## Example request

```json
{
 "chain": "base",
 "limit": 10
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Top DeFi yields across protocols on Base via DeFiLlama"
 }
}
```

## More

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