Data API: Swaps APIs
We’re introducing the DeFi Swaps API, enabling developers to retrieve real-time token swap quotes and protocol routing across major DeFi ecosystems.
DeFi Swaps APIs
Get Best Swap Rate
GET /v4/data/defi/swaps/quote
Retrieve the single best token swap quote across all supported DEX protocols and aggregators.
Explore Docs →
Get Multi-Protocol Swap Rates
GET /v4/data/defi/swaps/quotes
Explore Docs →
Compare swap quotes across multiple DeFi protocols, including support for MEV-protected routing and execution model insights.
With the DeFi Swaps APIs, developers can:
- Retrieve the best available swap price across protocols
- Compare quotes from multiple DEXs and aggregators
- Detect and filter MEV-protected swap routes
- Build swap interfaces, trading dashboards, and DeFi wallets
- Estimate fees, settlement time, and slippage-adjusted amounts
- Power routing engines and portfolio applications
The APIs support both:
- Exact-input swaps (
kind=sell) — specify how much token to sell - Exact-output swaps (
kind=buy) — specify how much token to receive
Supported ecosystems include major EVM networks such as:
- Ethereum
- BNB Smart Chain
- Polygon
- Arbitrum
- Optimism
- Base
- Avalanche
- And more
These APIs simplify building applications that surface real-time DeFi trading opportunities, routing intelligence, and MEV-aware execution across blockchain ecosystems. Read more about this feature in Swaps - DeFi APIs.