- Home
- Categories
- Blockchain
- The Graph API
The Graph API
The Graph API allows developers to efficiently query blockchain data using GraphQL, organizing data from Ethereum and Polygon networks into subgraphs for real-time access.
Developed by The Graph Foundation
Reference for available routes, request structures, and live examples.
Query blockchain data using The Graph
https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2curl -X POST 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"query": "{ pairs(first: 5) { id token0 { symbol } } }"
}{
"data": {
"pairs": [
{
"id": "0x...",
"token0": {
"symbol": "ETH"
}
}
]
}
}- DeFi dashboardsOptimized Capability
- NFT marketplace data retrievalOptimized Capability
- Blockchain explorersOptimized Capability
- On‑chain analytics toolsOptimized Capability
- Real‑time dApp data subscriptionsOptimized Capability
- ✓ Decentralized indexing for resilience
- ✓ Fast, structured GraphQL querying
- ✓ Multi‑network support (Ethereum, Polygon, etc.)
- ✓ Open‑source SDKs and tooling
- ✗ Requires understanding of GraphQL schema
- ✗ Rate limits may restrict bulk data extraction
- ✗ Potential latency on lightly indexed subgraphs
- ✗ Learning curve for subgraph deployment
FAQs
API Specifications
v1Under 15 minutes (sign up, deploy or pick subgraph, query)
1000 requests per minute
Up to 100,000 requests per month and 3 subgraphs indexed, no credit card required
Use Case: Best For
Developers building dashboards, explorers, analytics, and dApps with real‑time blockchain data needs
Not Recommended For
Large-scale historical bulk data extraction without paying for higher indexing tiers
Explore Related APIs
Discover similar APIs to The Graph API
Etherscan API
The Etherscan API offers developers free access to comprehensive Ethereum blockchain data, suitable for applications such as crypto wallets and analytics tools.
Covalent API
The Covalent API offers developers free access to aggregate blockchain data from over 100 networks, facilitating the building of multi-chain applications.
Web3.js Ethereum API
Web3.js is a free and open-source library for JavaScript and TypeScript, facilitating interaction with Ethereum and EVM-compatible networks, ideal for blockchain applications.