This page will help you get started with the Yield.xyz.
Welcome to the Yield.xyz REST API.
Yield.xyz provides developers with the easiest way to integrate yields like staking, lending, vault products, etc. into their applications. With 1000+ integrations supported on over 70 different blockchain networks, the Yield.xyz is your one-stop shop for enabling your users to earn yield.
The API accepts JSON-encoded request bodies for POST
endpoints, and returns JSON for all responses including errors. In all API requests, you must set the content-type HTTP header to application/json.
Using this reference, you can make raw HTTP requests to all of our endpoints, such as the GET /v1/yields
endpoint — a read endpoint for pulling all the yield opportunities supported — or thePOST /v1/actions/enter
endpoint — a write endpoint for getting the transaction data needed to enter a specific yield.