Overview
The Graph is a decentralized indexing protocol that lets you query Ethereum and other blockchain networks using GraphQL. Use it to build dApps that need fast, structured access to on-chain data without running your own node.
Beginner Tip
You query subgraphs via GraphQL, not REST — start with a publicly deployed subgraph on the hosted service before creating your own. Use the Graph Explorer at thegraph.com/explorer to find existing subgraphs.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"id": "bitcoin",
"symbol": "btc",
"current_price": 65432.1,
"market_cap": 1280000000000,
"price_change_24h": 1250.5,
"price_change_percentage_24h": 1.95,
"total_volume": 28500000000
} Field Reference
data Root wrapper containing your queried GraphQL entity results data.pools List of liquidity pool entities matching the query filters data.pools[].id Unique on-chain address of the liquidity pool contract data.pools[].token0 First token in the trading pair, with symbol and decimals data.pools[].token1 Second token in the trading pair, with symbol and decimals errors Present only on failure; each item has a message describing the GraphQL error Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →Bitquery
Bitquery provides GraphQL APIs for querying on-chain data across 40+ blockchains including Ethereum, Solana, and BSC.
Etherscan
⭐ Beginner's PickEtherscan's API gives programmatic access to Ethereum blockchain data — account balances, transaction histories, token transfers, smart contract ABIs, and gas prices.
Nownodes
NOWNodes provides hosted blockchain node access for 50+ cryptocurrencies via a simple API key — no need to run your own full node for Bitcoin, Ethereum, or other chains.
Watchdata
Watchdata provides a simple JSON-RPC and REST gateway to the Ethereum blockchain, giving you account balances, transaction history, and token data without syncing a node.
Chainlink
Chainlink is a decentralized oracle network that connects smart contracts to real-world data like price feeds, random numbers, and external APIs.