The Graph
Indexing protocol for querying networks like Ethereum with GraphQL
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Blockchain
- Data source
- public-apis + marcelscruz
- 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 | |
|---|---|---|---|---|
| Animica Post-quantum proof-of-work L1 blockchain explorer REST API and node JSON-RPC, with OpenAPI and OpenRPC documents | No auth | Yes | Unknown | ↗ |
| Bitquery Onchain GraphQL APIs & DEX APIs | API Key | Yes | Yes | ↗ |
| Blockscout Multi-chain explorer for Ethereum and 100+ EVM chains | API Key | Yes | Unknown | ↗ |
| Blockscout Multichain block explorer REST API (with Etherscan-compatible JSON-RPC) | API Key | Yes | No | ↗ |
| Bscscan Binance Smart Chain explorer API | API Key | Yes | Unknown | ↗ |