FreeAPIHub
HomeAPIsAI ModelsAI ToolsBlog
Favorites
FreeAPIHub

The central hub for discovering, testing, and integrating the world's best AI models and APIs.

Platform

  • Categories
  • AI Models
  • APIs

Company

  • About Us
  • Contact
  • FAQ

Help

  • Terms of Service
  • Privacy Policy
  • Cookies

© 2026 FreeAPIHub. All rights reserved.

GitHubTwitterLinkedIn
  1. Home
  2. Categories
  3. Blockchain
  4. The Graph API
published

The Graph API

The Graph API offers free access to query indexed blockchain data via GraphQL, supporting major chains like Ethereum and Polygon, ideal for DeFi and NFT applications.

Developed by The Graph Foundation

Live API
99.90%Uptime
150msLatency
12kStars
API KeyAuth
NoCredit Card
GraphQLStyle
v1Version

Reference

API Endpoints

Endpoints

Available routes, request structures, and code examples.

Query blockchain data using The Graph

Endpoint URL
https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
Code Example
curl -X POST 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Request Payload
{
  "query": "{ pairs(first: 5) { id token0 { symbol } } }"
}
Expected Response
{
  "data": {
    "pairs": [
      {
        "id": "0x...",
        "token0": {
          "symbol": "ETH"
        }
      }
    ]
  }
}
Version:v1
Limit:100,000 requests/month (free tier)

Integration

Quick Start

cURL ExampleGraphQL
curl -X GET "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2"

Docs

Technical Documentation

What this API does

The Graph API allows developers to query indexed blockchain data efficiently using GraphQL. It supports Ethereum, Polygon, and Base, enabling access to real-time and historical data from popular DeFi platforms and NFT projects.

How it works

Developers send GraphQL queries to endpoints provided by The Graph API to retrieve indexed data. The API provides public subgraphs that organize complex blockchain data into a simplified structure, facilitating easy data retrieval.

Authentication

Access to The Graph API requires an API key for authentication, ensuring secure access to data. Developers can obtain their API key from the official site.

Example usage

  • query { uniswap { pairCount } } - Retrieves the number of pairs on Uniswap.
  • query { aave { reserves { id } } } - Retrieves reserve IDs from Aave.
  • query { nftProjects { totalSupply } } - Fetches the total supply of a specific NFT project.

Limits

The Graph API allows up to 1,000 free queries per month. Further details on rate limits are available in the official documentation.

Ideal use cases

  • Building decentralized applications (dApps) that require real-time blockchain data.
  • Creating analytics tools for DeFi protocols.
  • Integrating NFT data into applications.
  • Developing tools for blockchain research and insights.

Examples

Real-World Applications

  • Building decentralized finance (DeFi) dashboards
  • Retrieving real-time NFT ownership and transfer data
  • Integrating blockchain analytics in mobile or web applications
  • Querying historic transaction data for audit and compliance
  • Developing smart contract monitoring tools

Evaluation

Advantages & Limitations

Advantages
  • ✓ Supports multiple major blockchains including Ethereum, Polygon, and Base
  • ✓ Access to public subgraphs from top DeFi platforms like Uniswap and Aave
  • ✓ Uses GraphQL for flexible, efficient data querying
  • ✓ Secure API key authentication with scalable rate limits
Limitations
  • ✗ Limited free tier with 1,000 queries per month
  • ✗ Some advanced queries can have slower response times depending on data size
  • ✗ Requires familiarity with GraphQL query language
  • ✗ No official AI-powered data insights or recommendations

Support

Frequently Asked Questions

Important Notice

Verify Before You Decide

Last verified · Apr 30, 2026

The details on this page — including pricing, features, and availability — are based on our last review and may not reflect the provider's current offering. Providers update their products frequently, sometimes without prior notice.

What may have changed

Pricing Plans
Features & Limits
Availability
Terms & Policies

Always visit the official provider website to confirm the latest pricing, terms, and feature availability before subscribing or integrating.

Check official site

External Resources

Documentation Official Website Pricing Details Postman Collection

API Specifications

v1
Pricing Model
Freemium with tiered subscription plans
Credit Card
Not Required
Response Formats
JSON
Supported Languages
7 Languages
SDK Support
JavaScript (The Graph SDK), TypeScript, Python
Rate Limit

1000 queries per month for free tier; scalable paid plans available

Time to Hello World

Less than 30 minutes to get API key and start querying

Free Tier

1,000 free queries per month with access to all public subgraphs

Best For

DeFi developers, dApp creators, blockchain data analysts

Not Ideal For

Users needing ultra-high volume queries without paid plans, those unfamiliar with GraphQL

Tags

#indexing#subgraph#polygon#defi#graphql#blockchain#web3#ethereum#the-graph

You Might Also Like

More APIs Similar to The Graph API

Covalent API

The Covalent API provides developers with free access to blockchain data across multiple blockchains, making it ideal for various blockchain applications.

PublicREST

Bitquery API

The Bitquery API offers developers comprehensive access to on-chain data from over 40 blockchains, suitable for applications in analytics, compliance, and DeFi.

publicGraphQL

Web3.js Ethereum API

Web3.js is an open-source library that allows developers to interact seamlessly with the Ethereum blockchain, manage wallets, and build dApps.

PublicREST