To create integrations, retrieve data, and automate your workflows, use the GitHub GraphQL API. The GitHub GraphQL API offers more precise and flexible queries than the GitHub REST API.
The GitHub GraphQL API offers flexibility and the ability to define precisely the data you want to fetch.
Learn useful terminology and concepts for using the GitHub GraphQL API.
Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.
Using pagination in the GraphQL API
Learn how to traverse data sets using cursor based pagination with the GraphQL API.
Migrating from REST to GraphQL
Learn best practices and considerations for migrating from GitHub's REST API to GitHub's GraphQL API.
Rate limits and query limits for the GraphQL API
The GitHub GraphQL API has limitations in place to protect against excessive or abusive calls to GitHub's servers.
The GitHub GraphQL API offers flexibility and the ability to define precisely the data you want to fetch.
Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.
The GitHub GraphQL API offers flexibility and the ability to define precisely the data you want to fetch.
Download the public schema for the GitHub GraphQL API.
Learn about recent and upcoming breaking changes to the GitHub GraphQL API.
GraphQL schema changes from 2026.
GraphQL schema changes from 2025.
GraphQL schema changes from 2024.
GraphQL schema changes from 2023.
GraphQL schema changes from 2022.
GraphQL schema changes from 2021.
GraphQL schema changes from 2020.
GraphQL schema changes from 2019.
GraphQL schema changes from 2018.
GraphQL schema changes from 2017.
Rate limits and query limits for the GraphQL API
The GitHub GraphQL API has limitations in place to protect against excessive or abusive calls to GitHub's servers.
Reference documentation for GraphQL schema types in the Actions category.
Reference documentation for GraphQL schema types in the Activity category.
Reference documentation for GraphQL schema types in the GitHub Apps category.
Reference documentation for GraphQL schema types in the Branches category.
Reference documentation for GraphQL schema types in the Checks category.
Reference documentation for GraphQL schema types in the Code scanning category.
Reference documentation for GraphQL schema types in the Commits category.
Reference documentation for GraphQL schema types in the Copilot category.
Reference documentation for GraphQL schema types in the Dependabot category.
Reference documentation for GraphQL schema types in the Dependency graph category.
Reference documentation for GraphQL schema types in the Deploy keys category.
Reference documentation for GraphQL schema types in the Deployments category.
Reference documentation for GraphQL schema types in the Discussions category.
Reference documentation for GraphQL schema types in the Enterprise administration category.
Reference documentation for GraphQL schema types in the Gists category.
Reference documentation for GraphQL schema types in the Git category.
Reference documentation for GraphQL schema types in the Issues category.
Reference documentation for GraphQL schema types in the Licenses category.
Reference documentation for GraphQL schema types in the Meta category.
Reference documentation for GraphQL schema types in the Migrations category.
Reference documentation for GraphQL schema types in the Organizations category.
Reference documentation for GraphQL schema types in the Other category.
Reference documentation for GraphQL schema types in the Packages category.
Reference documentation for GraphQL schema types in the Projects category.
Reference documentation for GraphQL schema types in the Projects (classic) category.
Reference documentation for GraphQL schema types in the Pull requests category.
Reference documentation for GraphQL schema types in the Reactions category.
Reference documentation for GraphQL schema types in the Releases category.
Reference documentation for GraphQL schema types in the Repositories category.
Reference documentation for GraphQL schema types in the Search category.
Reference documentation for GraphQL schema types in the Security advisories category.
Reference documentation for GraphQL schema types in the Sponsors category.
Reference documentation for GraphQL schema types in the Teams category.
Reference documentation for GraphQL schema types in the Users category.
Learn useful terminology and concepts for using the GitHub GraphQL API.
Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.
You can get global node IDs of objects via the REST API and use them in GraphQL operations.
Migrating from REST to GraphQL
Learn best practices and considerations for migrating from GitHub's REST API to GitHub's GraphQL API.
You can run queries on real GitHub data using various GraphQL clients and libraries.
Using pagination in the GraphQL API
Learn how to traverse data sets using cursor based pagination with the GraphQL API.
Using the GraphQL API for Discussions
Learn how to use the GitHub Discussions GraphQL API.
Migrating GraphQL global node IDs
Learn about the two global node ID formats and how to migrate from the legacy format to the new format.