Skip to main content

GET /api/defi/yields

Get Top DeFi Yields

Get top-performing DeFi yield opportunities across all chains.

Filters Available​

  • chain: Filter by blockchain
  • project: Filter by protocol
  • minTvl: Minimum TVL threshold
  • stablecoin: Only stablecoin pools

Response Includes​

  • APY (base + reward)
  • TVL
  • Pool composition
  • Risk indicators

Pricing​

  • $0.01 per request

Endpoint​

GET https://api.web3identity.com/api/defi/yields

Parameters​

NameInTypeRequiredDescription
chainquerystring❌Blockchain network (ethereum, base, polygon, etc)
limitqueryinteger❌Maximum number of results to return
minApyquerynumber❌Minimum APY filter
stablecoinqueryboolean❌Only stablecoin pools

Example Request​

curl -s "https://api.web3identity.com/api/defi/yields" | jq

Responses​

200 DeFi yield opportunities​

400 Bad Request - Invalid parameters or malformed request​

{
"error": "Invalid parameter format",
"code": "INVALID_PARAMETER"
}

402 Payment Required - Free tier exhausted​

{
"example": "response"
}

404 Not Found - Resource does not exist​

{
"error": "Resource not found",
"code": "NOT_FOUND"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec