PancakeSwap · GraphQL Specification

PancakeSwap GraphQL API

PancakeSwap exposes on-chain DeFi data through GraphQL subgraphs hosted on The Graph Protocol and NodeReal. The primary subgraph is the Exchange V3 subgraph, which indexes concentrated liquidity pool data on BNB Smart Chain and Ethereum mainnet. It provides queryable entities covering tokens, liquidity pools, tick ranges, positions, swaps, mints, burns, fee collections, and flash loans, as well as aggregated time-series data at hourly and daily granularity for pools, tokens, and the overall protocol.

Documentation Endpoint View on GitHub DeFiDEXBNB ChainDecentralized ExchangeBlockchainSwapLiquidityYield FarmingNFTWeb3GraphQL

Overview

PancakeSwap GraphQL API is a GraphQL API specification published by PancakeSwap on the APIs.io network.

PancakeSwap exposes on-chain DeFi data through GraphQL subgraphs hosted on The Graph Protocol and NodeReal. The primary subgraph is the Exchange V3 subgraph, which indexes concentrated liquidity pool data on BNB Smart Chain and Ethereum mainnet. It provides queryable entities covering tokens, liquidity pools, tick ranges, positions, swaps, mints, burns, fee collections, and flash loans, as well as aggregated time-series data at hourly and daily granularity for pools, tokens, and the overall protocol.

The GraphQL endpoint is available at https://gateway.thegraph.com/api/subgraphs/id/78EUqzJmEVJsAKvWghn7qotf9LVGqcTQxJhT5z84ZmgJ. documentation is published at https://developer.pancakeswap.finance/apis/subgraph.

The specification includes 2 reference links.

Tagged areas include DeFi, DEX, BNB Chain, Decentralized Exchange, and Blockchain.

Endpoint

https://gateway.thegraph.com/api/subgraphs/id/78EUqzJmEVJsAKvWghn7qotf9LVGqcTQxJhT5z84ZmgJ

References

Related API Specs

PancakeSwap Info API v2 (OpenAPI) PancakeSwap Profile API (OpenAPI)
Back to PancakeSwap · All GraphQL Specs · GitHub