This version of GitHub Enterprise Server will be discontinued on 2026-06-02. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.
GitHub GraphQL API documentation
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.
Recommended
About the GraphQL API
The GitHub GraphQL API offers flexibility and the ability to define precisely the data you want to fetch.
Introduction to GraphQL
Learn useful terminology and concepts for using the GitHub GraphQL API.
Forming calls with GraphQL
Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.
Articles
About the GraphQL API
The GitHub GraphQL API offers flexibility and the ability to define precisely the data you want to fetch.
Actions
Reference documentation for GraphQL schema types in the Actions category.
Activity
Reference documentation for GraphQL schema types in the Activity category.
Branches
Reference documentation for GraphQL schema types in the Branches category.
Breaking changes
Learn about recent and upcoming breaking changes to the GitHub GraphQL API.
Checks
Reference documentation for GraphQL schema types in the Checks category.
Commits
Reference documentation for GraphQL schema types in the Commits category.
Copilot
Reference documentation for GraphQL schema types in the Copilot category.
Dependabot
Reference documentation for GraphQL schema types in the Dependabot category.