Getting Started

❗️

Deprecated Documentation

These documents are no longer maintained. Please visit hub.uniswap.org/docs for the latest documentation.

What are Uniswap APIs?

Uniswap Labs provides APIs which support the direct integration of swapping and liquidity staking through Uniswap Protocols (or smart contracts). The APIs provide easy-to-use REST calls, which both abstract the complexities of working directly with smart contracts and which add additional functionality beyond the smart contracts.

The APIs have two main feature groups:

  1. Token Trading: Token trading includes the ability to swap one token for another token (e.g. trade), to bridge a token from one chain to another chain, and to wrap and unwrap tokens.
  2. Liquidity Staking: Liquidity staking includes the ability create, modify, and remove staking positions from Uniswap protocol pools, to migrate staking positions between protocol versions, and to claim staking fees.

Why integrate with Uniswap APIs?

The APIs are designed for institutional customers to directly integrate token trading and/or liquidity staking into their existing systems. Direct integration can support a UI, for example to support trading from a wallet, or a program, for example an algorithmic bot. The benefits of integrating with the APIs include:

  • Access to public, private, and off-chain liquidity through the UniswapX RFQ protocol, with high-accuracy mid-market pricing and MEV protection.
  • Request-specific generation of appropriate and validated approvals and transactions, when an approval or transaction must be written to a chain by the API customer.
  • Access to thousands of trading pairs
  • Uniswap's tools are trusted by millions of users and hundreds of professional market makers and buy-sides

How do I get started?

To get started with the APIs you will require an API key. To get an API key, please visit https://hub.uniswap.org/ and fill out the intake form. While your intake form is processed, familiarize yourself with the workflows for token trading and liquidity staking in the following pages. All documentation for these flows, including code samples, can be found on this site.

If you are a market maker, visit our UniswapX quoter API documentation for more information.