Skip to main content

Find Yields

Discover and search yield opportunities across the Yield.xyz platform. This skill enables an AI agent to query the full catalog of 2,900+ yield opportunities spanning staking, lending, vaults, restaking, liquid staking, and more across 80+ blockchain networks.

When to Use

Activate this skill when the user asks to:
  • Find or list yield opportunities (e.g., “What yields are available on Ethereum?”)
  • Filter yields by network, token, provider, type, or APY
  • Compare yield rates across protocols or networks
  • Search for a specific yield by name or ID
  • Discover the best staking or DeFi opportunities for a given token
  • List supported networks or providers

Authentication

All requests require an API key in the x-api-key header:
The API key is obtained from https://dashboard.yield.xyz. Store it in an environment variable (e.g., YIELD_API_KEY).

Base URL

Staging environment: https://api.staging.yield.xyz/v1

Step-by-Step Instructions

Step 1: List Yield Opportunities

Endpoint: GET /v1/yields Query Parameters: Example Request:
Example Response:

Step 2: Filter and Refine Results

Use combination filters to narrow results:
  • By network + type: ?network=ethereum&type=lending
  • By token: ?token=USDC or ?inputToken=ETH
  • By provider: ?provider=aave or ?providers=aave,compound
  • By multiple networks: ?networks=ethereum,arbitrum,base
  • Search by name: ?search=lido

Step 3: Paginate Through All Results

Continue until offset + limit >= total.

Step 4: List Available Networks

Endpoint: GET /v1/networks

Step 5: List Providers

Endpoint: GET /v1/providers

Aggregation Patterns

When the user asks “What are the best yields for ETH?”, follow this pattern:
  1. Query yields filtered by token: GET /v1/yields?token=ETH&limit=100
  2. Sort results client-side by rewardRate descending
  3. Present top results with yield ID, provider, type, APY/APR, and network
When asked to compare across networks:
  1. Query each network: GET /v1/yields?network=ethereum&token=USDC then ?network=arbitrum&token=USDC
  2. Merge and sort by reward rate
  3. Present a comparison table

Error Handling

Edge Cases

  • Empty results: If no yields match filters, the API returns {"items": [], "total": 0}. Suggest broadening filters.
  • Deprecated yields: Some yields may have status.enter: false. These cannot accept new deposits but may still allow exits.
  • Yield IDs are composite: Format is {network}-{token}-{provider}-{type} (e.g., ethereum-eth-lido-staking).
  • APY vs APR: Check the rewardType field. Staking yields with auto-compounding show APY; manual-claim yields show APR.
  • Rate limits vary by plan: Free (10 req/s), Starter (50 req/s), Pro (200 req/s), Enterprise (custom).