Decentralized swaps right in your app

Connect to our API and let your users access the decentralized exchange of any tokens for the best price. Additional functionality for your users. New capabilities for your application.
API Documentation

Why use YAD API?

Lowest transaction cost
Pissed off with high gas prices? We feel you. That’s why we developed a smart contract using the low-level programming language Yul, thus making our transactions more cost-efficient.
block
Low transaction cost
High transaction costs prevent users from making swaps on the Ethereum network. We have developed a smart contract written in the low-level programming language Yul, which enables lower gas costs while processing transactions.
block
24/7 support
Our support team is ready to answer any questions at any time. Besides, we are always happy to receive feedback from you.
block
Non-custodial
While a transaction is initiated through our API, it is still the user who signs and sends it into the smart contract for making a swap. We do not have access to their private keys and, therefore, to their funds.
block
Rock-solid
We pay great attention to the technological core of the product integrated within our service. Thanks to this, our uptime is above 99.99%, and response time is less than 200 ms.
block
Start your API integration

Start easy

Start now

Get token exchange prices and initiate a swap transaction in 2 steps.

Get price quote

Copy curl
URL https://api.yetanotherdefi.com/v1/1/quote
Buy amount
100
Buy token
DAI
Sell token
USDC
{
"amount_out_total": "1498144462890979468014",
"estimate_gas_total": "127000",
"token_in": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"token_out": "0x6b175474e89094c44da98b954eedeac495271d0f",
"gas_price": "16000000000",
"fee_recipient_amount": "12000",
"routes": [
{
"protocol_name": "UNISWAP_V3",
"amount_in": "100000000",
"amount_out": "1498144462890979468014",
"percent": 100
"pools": [
{
"zero_for_one": false,
"token0": "0x6b175474e89094c44da98b954eedeac495271d0f",
"token1": "0xdac17f958d2ee523a2206206994597c13d831ec7",
}
]
}
],
"calldata": "0x318ced5d000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000005067058af992dc7d7600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000059682f000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000018000000000000000000000006f48eca74b38d2936b02ab603ff4e36a6c0e3a77",
"to":"0x1aaad07998466cd3eb8140827dddb37570be1e63"
}