The Graph · GraphQL Specification

The Graph GraphQL API

Per-subgraph GraphQL endpoints served by the decentralized network of Indexers. Each subgraph defines its own schema; queries are billed in GRT or via a hosted gateway in USD.

Documentation Endpoint View on GitHub Web3IndexingGraphQLSubgraphsMulti-ChainGraphQL

Overview

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

Per-subgraph GraphQL endpoints served by the decentralized network of Indexers. Each subgraph defines its own schema; queries are billed in GRT or via a hosted gateway in USD.

The GraphQL endpoint is available at https://gateway.thegraph.com/api/{apiKey}/subgraphs/id/{subgraphId}. documentation is published at https://thegraph.com/docs/en/subgraphs/querying/introduction/.

The specification includes 1 reference link.

Tagged areas include Web3, Indexing, Subgraphs, and Multi-Chain.

Endpoint

https://gateway.thegraph.com/api/{apiKey}/subgraphs/id/{subgraphId}

References

Related API Specs

The Graph Subgraphs API (OpenAPI)
Back to The Graph · 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/the-graph-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.