One API for cross-chain swaps.
Quote, build and track swaps across 30+ chains and 14 liquidity providers with a single REST API. Free to use; you pay only per swap.
01
Three calls to a swap
- 1
Quote
/v3/quote prices the swap across every provider. Routes come tagged RECOMMENDED, FASTEST and CHEAPEST.
- 2
Build
/v3/swap turns a route into a ready-to-sign transaction, after a balance check and address screening.
- 3
Track
/track follows the swap across chains until it completes, refunds or fails.
curl -X POST "https://api.swapkit.dev/v3/quote" \
-H "Content-Type: application/json" \
-H "x-api-key: $SWAPKIT_API_KEY" \
-d '{"sellAsset":"ETH.ETH","buyAsset":"BTC.BTC","sellAmount":"0.05","slippage":3}' 02
Endpoints
| Endpoint | What it does |
|---|---|
| /providers | Available providers and the chains each supports |
| /tokens | Search supported tokens across chains and providers |
| /swapTo · /swapFrom | Which tokens a given token can be swapped into or from |
| /v3/quote | Routes, expected output, fees and timing for a swap |
| /v3/swap | A ready-to-sign transaction for a chosen route |
| /track | Status of a swap across every chain it touches |
| /price | Token prices |
| /v3/limit | Limit orders (pre-release) |
03
Built in
One key per app
Send your key in the x-api-key header. It carries your fees, limits and optional features.
Learn more →Limits in every response
Rate-limit headers report your standing on every call. Limits are raised on request.
OpenAPI spec
Generate a typed client from api.swapkit.dev/docs/json, or browse it at api.swapkit.dev/docs.
04
Turn swaps into revenue
Set your own affiliate fee, anywhere from 0 to 1,000 bps. It's added to every swap your users make and paid to your addresses automatically, with volume and earnings tracked per app in the dashboard.
- Your fee
- You choose
- Payout
- Automatic, on-chain
- SwapKit fee
- 0.10–0.15%
05
Questions
Is the API free?
Yes. There is no subscription; SwapKit earns a small fee only when your users swap.
What are the default limits?
New keys allow 10 requests per minute per service and trades up to $1,000. Both are raised on request.
How long is a quote valid?
Five minutes. After that, a swap request re-quotes with the original parameters.
Which language do I need?
Any. It's a REST API; the SDK is optional for TypeScript projects.
Ship cross-chain swaps this week.
One integration for 10,000+ assets across 30+ chains, with limit orders and Hyperliquid deposits included. Non-custodial by design.