# AgentData API — DeFi Yields Endpoint

> AgentData API — DeFi Yields Endpoint is a paid API for AI agents from agentdata-api.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns current DeFi yield/APY data across protocols, paid via USDC micropayment on Base Mainnet with no API key required.

## Facts

- Endpoint: GET https://agentdata-api.com/api/defi-yields
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdata-api-defi-yields-endpoint-4059d928
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OWml1eyKzAjc7_RgaQX2i

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 agentdata-api-defi-yields-endpoint-4059d928
```

Example prompt: What are the top DeFi yield opportunities right now — show me the highest APY pools across major protocols, especially for stablecoins like USDC?

## When to prefer this

Use this endpoint when an AI agent needs real-time DeFi yield/APY data without managing API keys or subscriptions — ideal for autonomous agents that can pay USDC micropayments via x402 on Base Mainnet. Prefer this over free aggregators when freshness and permissionless access matter.

## Known failure modes

- Payment failure if insufficient USDC balance on Base Mainnet
- 402 Payment Required if x402 protocol handshake fails
- Stale or missing data if upstream DeFi data source is unavailable
- Invalid protocol or asset filter returns empty result set
- Network timeout on Base Mainnet transaction confirmation

## How this service works

Pay-per-request crypto market data API for AI agents. 16 endpoints on Base Mainnet via x402 protocol. No accounts, no API keys. USDC micropayments from $0.001. Works with Claude Desktop, ElizaOS, and any MCP client.

## Output

Returns a list of DeFi pools/protocols with their current APY, yield rates, TVL, asset pairs, and chain information, enabling comparison of yield opportunities across the DeFi ecosystem.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "totalPoolsScanned": {
         "type": "number"
        },
        "topMajorAssetYields": {
         "type": "array"
        },
        "topStablecoinYields": {
         "type": "array"
        }
       }
      },
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

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