Uniswap API - Top 10 Essential Uniswap Trading Data APIs
The Uniswap APIs that matter in practice: Uniswap's own trading and subgraph APIs, indexed data platforms, analytics tools and market data feeds, covering trades, pools, liquidity and positions across Uniswap v2, v3 and v4.

Uniswap remains the leading decentralized exchange (DEX) on Ethereum, having pioneered the automated market maker (AMM) model. It is the largest DEX by trading volume and now runs four protocol versions side by side: v1, v2, v3 with concentrated liquidity and fee tiers, and v4, whose singleton PoolManager and hooks changed how pools are created and how swaps are observed on chain. It has also spread beyond Ethereum to Base, Arbitrum, Optimism, Polygon and BNB Chain.
"Uniswap API" means two different things depending on who is asking. Developers building swaps want Uniswap's own routing, quoting and execution interfaces. Developers building charts, screeners, bots and analytics want an indexed view of what happened on chain: trades, prices, pools, liquidity and positions, with history. This guide covers both, with the platform that does the second job most completely first, then Uniswap's official APIs, then the alternatives.
1. Bitquery - Complete Uniswap Data Platform
Bitquery covers Uniswap v1 through v4 on every chain it runs on, decoded into one schema that also covers 300+ other DEXs, so a query written for Uniswap on Ethereum works unchanged on Base or Arbitrum. Delivery is GraphQL over HTTPS, WebSocket subscriptions, Kafka streams and bulk exports, and the full history back to each factory's first block is queryable alongside real-time data.
Core APIs:
-
DEX Trades API: Real-time and historical swaps with buyer, seller, both token legs and USD prices across all Uniswap versions. The Crypto Trades API adds market cap and supply on every row and MEV filtering for the recent window; see DEX data APIs for worked queries.
-
Uniswap v4 API: Swaps and pool events from the PoolManager, keyed by
PoolIdrather than a pool address. -
Position Tracking API: Lifecycle tracking of Uniswap v3 NFT positions from mint to burn, including liquidity changes and tick ranges.
-
Trading Pairs API: Every pair a token trades in, across Uniswap and other DEXs.
-
Pools and Liquidity API: Pool creation, reserves in USD, spot prices and price impact per pool; the Uniswap pools post walks through it.
-
Top Traders API: Trades of a wallet, top traders of a token or pool, and smart-money tracking.
-
Token Statistics API: Buy and sell volume, price changes, maker counts and trending tokens.
Advanced Features:
-
OHLC candles: Pre-aggregated per pool from one second to one hour on the Crypto Price API, with daily and weekly bars rolled up from them.
-
Kafka Streams: For applications that need sub-second latency and replay, Bitquery offers Kafka streaming of Uniswap trades and pool events.
-
GraphQL IDE: An interactive playground with saved queries and instant visualisation.
-
DEXrabbit Dashboard: A free analytics dashboard for exploring Uniswap data without code.
Why Bitquery?
- Complete historical data since genesis, plus real-time subscriptions
- One schema across chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain and more)
- v4 covered, with
PoolIdon every v4 row - Active Telegram support
- A free trial and self-serve monthly plans; the pricing page has current limits
2. Uniswap's Official APIs
Uniswap Labs publishes the interfaces used for execution. The Trading API returns quotes and ready-to-sign swap transactions across supported chains, the SDKs wrap the protocol contracts for building swaps and positions in code, and the subgraphs expose indexed protocol state through The Graph. This is the right choice when the job is to execute a swap or read protocol state exactly as the protocol defines it.
Limitations: the official APIs are built for execution and protocol state, not for cross-venue analytics, USD-priced trade history or streaming feeds.
3. The Graph Protocol

The Graph is a decentralized protocol for indexing and querying blockchain data. A subgraph pulls data from a blockchain, processes it and stores it so that it can be queried with GraphQL. The Uniswap subgraphs index the Uniswap contracts chronologically, organising pairs, tokens, positions and protocol-wide totals, and update whenever a transaction touches Uniswap. They are maintained per protocol version and per chain, and are served by indexers on The Graph's decentralized network.
Uniswap V2 Subgraph is the source of one of them. Many teams fork a subgraph to add custom entities, which puts the indexing logic and re-syncs in their own hands. Substreams, The Graph's parallelised streaming indexer written in Rust, narrows the latency gap for teams that need faster than query-time.
4. Covalent (GoldRush)

The Covalent Unified API, now marketed as GoldRush, extracts token balances, positions and historical transaction data across many blockchain networks. It supports wallets, investor dashboards, tax tools and similar applications.
The three main products are a Balances API for a wallet's token balances, allowances, transfers and prices; a Transactions API for historical transactions across a hundred-plus chains; and an NFT API for media, metadata and sales. Uniswap coverage comes through those general endpoints rather than a DEX-specific model.
5. Moralis

The Moralis DeFi API integrates with DEXs across EVM blockchains. It provides liquidity reserves and pair data, including reserves for a given pair address in Uniswap-based AMMs and the pair address for a pair of token addresses.
Moralis also offers an NFT API for cross-chain NFT transfers, prices and metadata, and a Token API for token prices, transfers and ownership.
6. Dune Analytics

Dune is a web-based platform for querying public blockchain data with SQL and turning it into shared dashboards. Its Uniswap coverage is deep and community-validated, and its public distribution is unmatched for research.
The Dune API turns an existing query into an endpoint or fetches its latest results, and a CRUD API lets premium users manage queries programmatically. It is a research and dashboard tool rather than a streaming API for production features.
7. Token Terminal

Token Terminal consolidates financial data from leading blockchains and applications, Uniswap included: fees, revenue, volume and users, standardised for comparison. The Token Terminal API exposes the data behind the web application to subscribers through an API key. It is read-only, REST, with resource-oriented URLs and JSON responses.
8. Parsiq

Parsiq has indexed transactions, calls and events from block zero across Ethereum, BNB Smart Chain, Avalanche, Polygon PoS, Polygon zkEVM, Arbitrum, opBNB and Metis. Its Balances API adds real-time balances and transaction histories across wallets and protocols, which covers Uniswap positions from the wallet side.
9. CoinGecko

CoinGecko, the largest independent crypto data aggregator, is integrated with hundreds of exchanges and lists thousands of coins. Its REST API serves price feeds, market data, metadata and history for assets, NFTs and exchanges, and its on-chain DEX endpoints cover Uniswap pools and tokens. It is the natural source for aggregated reference prices rather than trade-level detail.
10. 0x

0x provides the building blocks for trading in Web3 applications. Its API suite aggregates liquidity across DEX protocols, Uniswap among them, on several EVM chains, and returns quotes and swap transactions. Like Uniswap's own Trading API it answers "what price can I get and how do I execute", which complements rather than replaces a data API.
How to Choose the Best Uniswap Data Provider?
With this many options, the right choice depends on the job. When selecting a Uniswap data provider, consider the following factors:
- Execution or data? For quotes and swaps, Uniswap's own APIs or an aggregator such as 0x. For everything that looks at history, prices or pools, an indexed platform.
- Version coverage, v4 included. Hooks and the singleton architecture change how swaps and pools are observed. Ask each provider how it handles
PoolIdand test against your pools. - Multi-chain in one place. Uniswap runs on several chains; a per-chain, per-version integration adds up. Bitquery uses one schema across chains, while subgraphs are one endpoint per version per chain.
- Position-level data for v3. LP analytics need tick ranges and position state; subgraphs model positions directly and Bitquery tracks the position NFTs.
- Delivery. Live charts and alerts need push, not polling. Check for WebSocket, Kafka or equivalent.
- Ease of use. Bitquery's IDE has saved queries and visualisation for those new to GraphQL; Dune's dashboards need only SQL.
- Support. Bitquery answers on Telegram; community-driven tools rely on forums.
- Cost. Most providers have a free tier or trial and paid plans by usage. Compare what the free tier includes before committing.
Conclusion
Uniswap's data is more accessible than it has ever been, and also more fragmented across versions and chains. Pick Uniswap's own APIs when you execute, an indexed platform when you analyse, and make sure whichever you choose handles v4 the way your application needs. The links in each section go straight to working queries and docs.
FAQs
Does Uniswap have an official API?
Yes. Uniswap Labs publishes a Trading API for quotes and swap execution, SDKs for building against the protocol contracts, and subgraphs for indexed protocol state. They are built for execution and protocol data rather than cross-venue trade analytics.
What is the difference between Uniswap v2, v3 and v4?
v2 uses simple constant-product pools, one contract per pair. v3 adds concentrated liquidity, multiple fee tiers and positions represented as NFTs. v4 keeps every pool inside one PoolManager contract, identifies pools by PoolId and lets creators attach hooks that customise pool behaviour.
Which API covers Uniswap v4?
Uniswap's own APIs cover v4 for execution. Among data providers, Bitquery returns v4 swaps and pool events with PoolId on each row; subgraph coverage exists per chain. Because hooks can change how a pool behaves, test any provider against your specific pools.
How does Uniswap staking work?
Uniswap has no native staking; providing liquidity is the equivalent. Liquidity providers deposit tokens into a pool and earn a share of its trading fees, and on v3 and v4 they choose the price range their liquidity covers.
Why is DEX data important?
DEX data provides insight into trading volumes, liquidity, token prices and trader behaviour. Traders use it for execution and risk, developers for charts, screeners and bots, and analysts for research into on-chain markets.
Related reading
Subscribe to our newsletter
Subscribe and never miss any updates related to our APIs, new developments & latest news etc. Our newsletter is sent once a week on Monday.