Skip to main content

What Are Uniswap APIs?

Uniswap Labs provides API endpoints that make it easy to integrate swapping and liquidity providing into your application. These APIs abstract away the complexity of interacting with smart contracts and let you leverage Uniswap’s routing logic and intent-based swapping systems. To get started, grab an API key from the Developer Portal. For support, reach out to [email protected].

What Can You Build?

The APIs have two main feature groups: Swapping — Swap one token for another, bridge tokens across chains, and wrap/unwrap tokens. Includes support for limit orders, batched actions (EIP-5792), and smart wallets (EIP-7702). Liquidity Providing (LPing) — Create, modify, and remove liquidity positions from Uniswap protocol pools, migrate positions between protocol versions, and claim fees.

Why Integrate?

  • Access to public, private, and off-chain liquidity through UniswapX RFQ, with high-accuracy mid-market pricing and built-in MEV protection
  • Integrated routing that finds the most cost-efficient swap path
  • Request-specific generation of validated approvals and transaction calldata
  • Swap and LP across thousands of pairs on 15+ blockchains
  • Production-grade architecture trusted by millions of users and hundreds of professional market participants

Getting Started

Using the APIs requires an API key. Visit the Developer Portal to create one. We recommend familiarizing yourself with the workflows for token trading and liquidity providing in the following pages. All documentation, including code samples, can be found on this site. If you are a market maker interested in filling UniswapX orders, visit our UniswapX quoter API documentation.

Common Terms

  • Uniswap Protocols — The pools of liquidity created through protocol smart contracts, sometimes referred to as v2, v3, and v4 pools. Collectively called Classic.
  • UniswapX refers to the intent-based RFQ swap mechanism. UniswapX has two versions: UniswapX_V2 and UniswapX_V3. In API responses, the routing field will return DUTCH_V2 or DUTCH_V3 (respectively) for UniswapX quotes. Additionally, on Base and Unichain chains, the routing field may return PRIORITY for UniswapX_V2 quotes.
  • Permit2 — A smart contract that simplifies sharing and managing token approvals. All Uniswap workflows utilize Permit2. Users sign Permit2 messages allowing the contract to spend tokens with configurable permissions (single transaction, time-windowed, amount-limited). Read more about how Permit2 works.