3 minutes
Subgraph Gateway Providers
A Gateway Provider serves queries for Subgraphs published to The Graph Network. Multiple providers serve the network. Published Subgraphs live onchain, so every provider can serve every published Subgraph, and you can change providers without republishing.
What a Gateway Provider Does
When your application sends a query, the provider’s gateway:
- Checks your API key or other credentials.
- Selects Indexers that serve the Subgraph and routes the query to them.
- Pays those Indexers in GRT through GraphTally.
- Returns the response and bills you on the terms it sets.
Some providers also offer tools beyond querying, such as deployment and staging environments, version management, or tooling for AI agents.
Choosing a Gateway
The following providers are endorsed by The Graph ecosystem: each meets the endorsement criteria for transparency, conduct, and brand. Each one sets its own pricing, terms, and support. Endorsement does not mean that The Graph ecosystem operates or guarantees a provider’s service, but it does signal that those gateways aim to provide transparency about their service.
Examples in these docs use The Graph Foundation’s gateway at gateway.thegraph.com. With another provider, use that provider’s endpoint and API key with the same Subgraph ID or Deployment ID.
Comparing Subgraph Gateways
Your Subgraph, its IDs and your queries work the same way with every Gateway Provider. What differs is how each provider serves them.
Gateway Provider Standards
| Area | What every Gateway Provider shares |
|---|---|
| Subgraph code and tooling | The same manifest, mappings and Graph CLI |
| Publishing | One publish to The Graph Network, which every provider can serve |
| Curation signal | Signal on The Graph Network attracts Indexers for every provider |
| Subgraph IDs and Deployment IDs | The same IDs identify your Subgraph with every provider |
| GraphQL API | The same schema and queries |
| Indexer transparency | Each endorsed provider publishes its production changelog, Indexer blocklist and per-Indexer QoS data |
Gateway Provider Differences
| Area | What to look for |
|---|---|
| Networks | Whether the provider serves the networks your Subgraphs index |
| Endpoint format | How the endpoint identifies a Subgraph ID or Deployment ID |
| API keys and authentication | Restricting a key to domains or Subgraphs, and spending limits |
| Payment methods | GRT, credit card, or other methods |
| Pricing | The pricing model and any free allowance, on the provider’s live pricing page |
| Rate limits | Limits per key and what happens when you reach them |
| Staging | A development endpoint for testing before you publish |
| Additional services | Tools beyond querying that you might need |
| Support | Support channels, response times, and a public status page |
Subgraph Studio
Subgraph Studio, operated by The Graph Foundation, is provider-neutral for building Subgraphs. Whichever Gateway Provider you query through, you can use Studio to create a Subgraph, deploy and test versions with a development query URL and indexing logs, manage versions, and publish to The Graph Network. Once published, the Subgraph can be served by every provider.
Only Studio’s API keys and billing are tied to one gateway: they work with the Foundation Gateway.
Switching Gateway Providers
To query through a different provider:
- Create an account and an API key with the new provider.
- Change your query endpoint to the new provider’s endpoint, using the same Subgraph ID or Deployment ID.
- Run both endpoints side by side until you are confident, then retire the old key.
You do not need to republish your Subgraph or change its code or queries. API keys work only with the provider that issued them. For example, API keys from Subgraph Studio work only on The Graph Foundation’s gateway.
Run Your Own Gateway
Anyone can run a gateway on The Graph Network, without permission from The Graph Foundation. See the Subgraph Gateway docs and Gateway Collaboration Framework.