Skip to main content

Overview

The Uniswap Subgraph

Uniswap uses multiple subgraphs for indexing and organizing data from the Uniswap smart contracts. These subgraphs are hosted on The Graph and can be used to query Uniswap data.

Versions and Production Endpoints

Each version of Uniswap for each chain has its own dedicated subgraph. As hosted subgraphs have been depreciated, you will now need to call through their decentralized subgraphs.

Each subgraph has a dedicated endpoint for querying data, as well as a page on The Graph explorer that exposes the schema and available fields to query.

Creating an API Key

API Keys can be created by users inside the Studio. This key will be included into the endpoint to associate a consumers usage to their billing.

v4 (Mainnet)
v3 (Mainnet)
v2 (Mainnet)
v1 (Mainnet)

v3 Subgraphs for other chains

ChainV3
ArbitrumSubgraph
BaseSubgraph
OptimismSubgraph
PolygonSubgraph
BSCSubgraph
AvalancheSubgraph
CeloSubgraph
BlastSubgraph