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 Leaderboard API (OpenAPI) PancakeSwap Miscellaneous API (OpenAPI) PancakeSwap Pairs API (OpenAPI) PancakeSwap Summary API (OpenAPI) PancakeSwap Tokens API (OpenAPI) PancakeSwap Users API (OpenAPI)
Back to PancakeSwap · All GraphQL Specs · GitHub

Work with this as data

Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for graphql

4 MCP tools reach this
  • find_graphqlBrowse and filter every GraphQL schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This GraphQL schema
curl "https://apis.io/api/v1/graphql/pancakeswap-graphql"
All graphql
curl "https://apis.io/api/v1/graphql?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.