Querying an existing subgraph.
Each subgraph deployed on the decentralized network has a query URL that allows you to query the blockchain data indexed by that subgraph. Let’s learn how to use an existing subgraph to query data to your frontend application!
Using the Graph Explorer
API Keys are required to query subgraphs. You can receive 1,000 free queries on your first API key. You can create and manage your API keys in the Subgraph Studio from the API Keys section
Subgraph Studio >
- Click on “Create API Key”
- Enter the name of your API Key and hit “Create API Key”
- Enter email to claim 1,000 free queries
- Click on “Copy” to copy the API Key from the
Adding the API Key
Update the query URL for the subgraph with the newly created API Key from the previous step.