The Graph
Indexing protocol for querying networks like Ethereum with GraphQL
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Blockchain
- Documentation / URL
- https://thegraph.com
Overview
The Graph provides indexed blockchain data via GraphQL — key-based (an invalid key returns HTTP 200 with an auth error, verified).
Quick Start
Subgraph query (replace YOUR_KEY):
curl "https://gateway.thegraph.com/api/YOUR_KEY/subgraphs/id/SUBGRAPH_ID" \
-H "Content-Type: application/json" \
-d '{"query":"{ __schema { types { name } } }"}'
{ "errors": [ { "message": "auth error: malformed API key" } ] }
Authentication
- Register at thegraph.com → API key.
- Send it in the path (
/api/KEY/) or header.
⚠️ Gotcha (verified): an invalid key returns HTTP 200 with an
errorsarray — checkerrors.
Rate Limits & Notes
- Free tier with limits (check the docs).
- Subgraph queries.
FAQ
Is The Graph free? Free tier with limits; more is paid.
Why 200 with an error?
Invalid keys return 200 + errors (verified) — check errors.
What’s the auth style? API key in path.
More in Blockchain
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Bitquery Onchain GraphQL APIs & DEX APIs | API Key | Yes | Yes | ↗ |
| Blockscout Multichain block explorer REST API (with Etherscan-compatible JSON-RPC) | API Key | Yes | No | ↗ |
| Chainlink Build hybrid smart contracts with Chainlink | No auth | Yes | Unknown | ↗ |
| Chainpoint Chainpoint is a global network for anchoring data to the Bitcoin blockchain | No auth | Yes | Unknown | ↗ |
| ClearTrace Cross-frontend DEX attribution and execution quality data across Ethereum and L2s | No auth | Yes | Yes | ↗ |