Skip to main content

Free Token Swap API

No API keys. No accounts. Returns executable calldata. Built for AI agents and autonomous systems.

bash
$ curl "https://api.swapapi.dev/v1/swap/1? tokenIn=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE& tokenOut=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48& amount=1000000000000000000& sender=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
response.json
{
  "success": true,
  "data": {
    "status": "Successful",
    "swapPrice": 2500.0,
    "expectedAmountOut": "2500000000",
    "tx": {
      "to": "0x...router",
      "data": "0x...calldata",
      "value": "1000000000000000000",
    }
  }
}
Try it yourself
500+

agents trust swapapi.dev

Built for machines, usable by humans

No API keys

Every other swap API requires registration. AI agents can't sign up for accounts. We removed the barrier entirely.

No authentication

No OAuth, no headers, no tokens. A raw HTTP GET is all you need. Works from curl, from code, from an autonomous agent.

Returns calldata

You don't just get a quote — you get a complete transaction object ready to sign and broadcast. No extra steps.

Free forever

We make money on positive slippage, not on you. Your quoted price is our commitment.

Live on 46 networks

Ethereum1
Arbitrum42161
Base8453
Optimism10
Polygon137
BSC56
Avalanche43114
Fantom250
Gnosis100
Linea59144
Scroll534352
Blast81457
Mantle5000
Mode34443
Sonic146
Berachain80094
Monad143
MegaETH4326
Manta169
Taiko167000
zkSync Era324
Polygon zkEVM1101
Arbitrum Nova42170
Celo42220
Cronos25
Kava2222
Metis1088
Filecoin314
Core1116
Boba288
Boba BNB56288
BTTC199
Haqq11235
Harmony1666600000
ThunderCore108
ZetaChain7000
SKALE Europa2046399126
Rootstock30
zkLink810180
ApeChain33139
Hemi43111
Tatara129399
Katana747474
HyperEVM999
Plasma9745
X Layer196

Get started in 30 seconds

One GET request. No signup. Calldata in the response.