UNISWAP API · GraphQL · WebSocket · Kafka

Uniswap API: v1 to v4 trades on eight chains, one schema

One endpoint for every Uniswap swap, pool, position and price, from the first trade in November 2018 to the block that just landed. No subgraph per version, no indexer per chain.

EVM.DEXTradesEvery Uniswap v4 swap on Ethereum. v4 has no pool contracts, so the filter is the PoolManager.Docs
uniswap_v4_trades.graphqlCopy
{
  EVM(network: eth, dataset: realtime) {
    DEXTrades(
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
      where: {
        Trade: {
          Dex: { SmartContract:
            { is: "0x000000000004444c5dc75cb358380d2e3de08a90" } }
        }
      }
    ) {
      Block { Time }
      Trade {
        PoolId
        Buy { Currency { Symbol } Amount }
        Sell { Currency { Symbol } Amount }
      }
      Transaction { From Hash }
    }
  }
}
responseSTREAMING
PairSidePriceAmount
200 · GraphQL · realtimestreaming.bitquery.io
Trusted by 40,000+ developers & teams like
Binance logoChainalysis logoTRM Labs logoNansen logo0x logoCoinMarketCap logoCoin Metrics logoBybit logoLukka logo3Commas logoNexo logoTether logo
40+
Chains supported
1PB+
Blockchain data indexed
10B+
API calls / month
99.9%
Production uptime
01
Forks wear the same label

A "uniswap_v2" label is not Uniswap.

Most APIs name a DEX after the code its pools run. Forks run the same code, so they carry the same name, and filtering on the label brings them along. Here is what that costs, measured in Bitquery's own data for 18 September 2026.

ChainLabelled uniswap_v2, ran elsewhereLargest fork under the label
BNB Chain99.7%PancakeSwap V2, about 96% of the label
Polygon89%QuickSwap, about 86% of the label
Ethereum21%SushiSwap, about 12% of the label
Every Bitquery trade carries the factory that deployed its pool, and v4 trades carry the PoolManager, so Uniswap's own pools are one line of filter away.

See the factory filters in the docs

03
Coverage

Eight chains, every version.

Uniswap v1 only ever ran on Ethereum. The rest carry v2, v3 and v4, counted through Uniswap's own factories and PoolManager rather than the protocol label.

Chainv1v2v3v4
EthereumIndexedYesIndexedYesIndexedYesIndexedYes
BNB ChainNot deployedNoIndexedYesIndexedYesIndexedYes
BaseNot deployedNoIndexedYesIndexedYesIndexedYes
PolygonNot deployedNoIndexedYesIndexedYesIndexedYes
ArbitrumNot deployedNoIndexedYesIndexedYesIndexedYes
OptimismNot deployedNoIndexedYesIndexedYesIndexedYes
ArcNot deployedNoIndexedYesIndexedYesIndexedYes
Robinhood ChainNot deployedNoIndexedYesIndexedYesIndexedYes
On 17 and 18 September 2026, v4 carried more transactions than v2 and v3 combined on Robinhood Chain, Arc and BNB Chain. Ethereum still traded more through v3.
05
Beyond Uniswap

The same query, the rest of the market.

Move between the eight EVM chains by changing the network argument. Point the filter at another factory and the same query returns PancakeSwap or SushiSwap. Solana sits under its own root, where the buy and sell sides are written from the trader's point of view instead of the pool's, so those queries differ in shape.

What teams say about our data

"We did a thorough search of the market for the best onchain data. Bitquery came out on top and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."

A
Alexander Karsten
Nansen
8
Chains with Uniswap v2, v3 and v4
v1–v4
Versions in one schema
2018
History from Uniswap's first trade

Bitquery does the hard work of parsing blockchain transaction data into a usable form so that we don't have to. We use their interface to diagnose issues with complex transactions and their analytics as a starting point for our own.

0x Protocol logo
Alex Knaggs
0x Protocol

They proved they had the technology to deliver sophisticated data solutions. We extended our support through the Binance X fellowship — building an open-source library of visualization widgets on their blockchain data.

Director, Binance X logo
Flora Sun
Director, Binance X

The complex raw data is available at different levels of detail and from different viewpoints — whether we need simple aggregated transfers or parameters for failed contract calls. The support is responsive, friendly and quick.

Backend Developer, Blockpit logo
Jan Dreske
Backend Developer, Blockpit

Partnering with Bitquery has been highly cost-effective — leveraging their established infrastructure rather than building our own let us rapidly expand our blockchain support and reach a much broader segment of on-chain users.

Co-Founder, Syla logo
Nick Christie
Co-Founder, Syla

Bitquery's products are very intuitive and easy to use. We currently use their products to obtain DEX-related trading and liquidity information, which saves us the manpower and tedious technical details required to develop our own system. Their excellent technical team deserves special praise; they provide near-24/7 support and resolve issues quickly. I greatly appreciate their products and work ethic.

Ourbit logo
Data Team
Ourbit

Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.

Webacy
Webacy
webacy.com

Pricing

Start free. Scale when you ship.

Self-service plans cover 10 core chains with flat-rate add-ons: no surprise invoices. Every paid plan starts with a 7-day free trial.

Personal

For side projects, learning & testing. Personal use only, no commercial use.

$39/ month

billed annually ($468/yr) · save 20%

+ Add-on points anytime · $40 / 1M
  • 100k API points / mo ≈ 20k calls
  • 30 req/min · 3 simultaneous
  • Full GraphQL & REST schema
  • Real-time data · 10 core chains 30-day trades · 4–8h on-chain
  • API only, no streams
  • Community support
Start free trial

Pro

For trading bots, alerts & dashboards on live onchain and DEX data.

$79/ month

billed annually ($948/yr) · save 20%

+ Flat-rate add-ons: points, minutes & GB
  • 1M API points / mo ≈ 200k calls
  • 90 req/min · 6 simultaneous
  • 100k stream-minutes + 5 GB
  • 100 concurrent streams
  • All streams onchain + mempool
  • Commercial-use license
  • Real-time data · 10 core chains 30-day trades · 4–8h on-chain
  • Community + Telegram support
Start free trial
Recommended

Scale

For production real-time apps: every stream, scale on demand.

$239/ month

billed annually ($2,868/yr) · save 20%

+ Flat-rate add-ons: points, minutes & GB
  • 5M API points / mo ≈ 1M calls
  • 240 req/min · 12 simultaneous
  • 2M stream-minutes + 50 GB
  • 1,000 concurrent streams
  • All streams onchain + mempool
  • Commercial-use license
  • Dedicated Slack support
Choose Scale →

Enterprise

Full history, unlimited streams & bulk delivery at scale.

Custom

flat platform fee, no metering

◆ Flat platform fee: modelled, not metered
  • Complete history · 40+ chains
  • Unlimited WebSocket streaming no stream-min or GB limit
  • Custom points & rate limits
  • Kafka fixed-cost · S3 bulk export
  • Coinpath® money flow
  • SLA · SSO · dedicated support
Talk to sales

Flat-rate add-ons: $40 / 1M points on every self-service plan · $40 / 200k stream-minutes and $40 / 5 GB on Pro and Scale (bought yearly · save 20%). Billed only for what you add, with volume packs that cut the rate as you scale.

Historical data is sold separately: self-service plans are real-time only. Per-chain archive packs start at $100/mo ($70/mo billed yearly); transfers, balances & holders are $150/mo ($120/mo yearly) on most chains. EVM and Tron trading and transfers packs include calls and events. See historical add-ons →

FAQ

Uniswap data questions, answered.

Does filtering by protocol name return only Uniswap?
No. Forks of v2 and v3 run the same code and carry the same label. On 18 September 2026, 99.7% of BNB Chain transactions labelled uniswap_v2 ran through another factory's pools, and PancakeSwap V2 alone accounted for about 96%. Filter Trade.Dex.OwnerAddress to Uniswap's v2 or v3 factory, or Trade.Dex.SmartContract to the v4 PoolManager.
Which chains does Bitquery cover Uniswap on?
Ethereum, BNB Chain, Base, Polygon, Arbitrum, Optimism, Arc and Robinhood Chain. Each carries v2, v3 and v4. Uniswap v1 only ever ran on Ethereum.
How far back does Uniswap data go?
To the first trade of each version. On Ethereum that is 2 November 2018 for v1, 5 May 2020 for v2, 4 May 2021 for v3 and 24 January 2025 for v4. Other chains start at their own first trade, for example Polygon v3 in December 2021 and BNB Chain v3 in March 2023.
Can I see Uniswap v4 hooks?
Yes. A v4 pool is created by an Initialize event on the PoolManager that carries the hook contract, the fee, the tick spacing and both currencies, so pools can be grouped by hook.
Why can't I filter Uniswap v4 swaps by pool address?
v4 holds every pool in one contract, so each swap names its pool with a PoolId rather than a pool address. Filter on Trade.PoolId.
Can I stream Uniswap trades in real time?
Yes. WebSocket and gRPC on self-service plans, fixed-cost Kafka on Enterprise. For MEV-filtered swaps with a USD price, market cap and supply on every row over the last 30 days, use the Trading cube.

Query Uniswap in the next five minutes.

A free key and the IDE, open in a browser tab. The queries on this page run as written.

Free key · v1 to v4 on eight chains · WebSocket and gRPC on self-service