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 thex-api-key header:
YIELD_API_KEY).
Base URL
https://api.staging.yield.xyz/v1
Step-by-Step Instructions
Step 1: List Yield Opportunities
Endpoint:GET /v1/yields
Query Parameters:
Example Request:
Step 2: Filter and Refine Results
Use combination filters to narrow results:- By network + type:
?network=ethereum&type=lending - By token:
?token=USDCor?inputToken=ETH - By provider:
?provider=aaveor?providers=aave,compound - By multiple networks:
?networks=ethereum,arbitrum,base - Search by name:
?search=lido
Step 3: Paginate Through All Results
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:- Query yields filtered by token:
GET /v1/yields?token=ETH&limit=100 - Sort results client-side by
rewardRatedescending - Present top results with yield ID, provider, type, APY/APR, and network
- Query each network:
GET /v1/yields?network=ethereum&token=USDCthen?network=arbitrum&token=USDC - Merge and sort by reward rate
- 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
rewardTypefield. 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).

