# X402 Hub DeFi Yield API

> X402 Hub DeFi Yield API is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.09/call, status unknown (last checked 2026-10-11).

Returns DeFi yield data and rates for decentralized finance protocols, paid via x402 micropayments on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/defi-yield?utm_source=zero.xyz
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-defi-yield-api-63161d04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1PBBdU5e-O8qY5IdJ5-Z6

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 x402-hub-defi-yield-api-63161d04 -d '<json body>'
```

Example prompt: What are the current DeFi yield rates for USDC staking across major protocols on Base?

## When to prefer this

Use this endpoint when you need current DeFi yield rates, APY comparisons, or protocol-level return data and are operating in an x402-enabled micropayment context on Base. Prefer this over manual web scraping or free-tier APIs when you need structured data in an agent workflow and can tolerate a $0.09 per-call cost.

## Known failure modes

- Missing or empty query field returns validation error
- Unrecognized protocol or token name may return empty or irrelevant data
- Payment failure via x402 if insufficient USDC balance on Base
- Upstream DeFi data provider downtime causing stale or missing data
- Malformed query string may result in unexpected response structure

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a data object containing DeFi yield information such as APY rates, protocol details, and yield metrics for the queried DeFi asset or protocol. The response wraps upstream DeFi data in a standard envelope.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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