Code Hosting & Version Control
GitHub REST API
The GitHub REST API enables developers to programmatically manage repositories, branches, commits, pull requests, issues, releases, organizations, and GitHub Actions workflows. It supports integrations for code collaboration, repository automation, and software delivery.
Key features
- Create, retrieve, update, and delete repositories using authorized endpoints.
- Manage issues, pull requests, comments, labels, and milestones.
- Access commits, branches, tags, repository contents, and Git references.
- Trigger GitHub Actions workflows and inspect workflow runs and artifacts.
- Manage repository collaborators, teams, and organization resources with appropriate permissions.
- Create releases and manage release assets.
- Configure repository webhooks for event-driven integrations.
- Retrieve security-related information such as Dependabot alerts where permissions and product access allow.
Pricing
- GitHub offers a Free plan at USD $0, with paid Team and Enterprise offerings. REST API access is available with free accounts and generally has no separate per-request fee. Private repositories are supported on Free, subject to plan restrictions. GitHub Actions compute, artifact storage, GitHub Packages, Git LFS, and other metered services can incur separate charges. API access does not make paid platform features free. Current subscription and usage prices: https://github.com/pricing
Best use cases
- Automating repository administration and maintenance.
- Building pull request review and issue management dashboards.
- Triggering and monitoring CI/CD workflows.
- Creating developer productivity integrations and bots.
- Synchronizing repository metadata with internal systems.
- Building code hosting analytics and compliance tools.
Authentication method
Supports fine-grained personal access tokens, classic personal access tokens, GitHub App installation and user access tokens, and OAuth application tokens. Tokens are commonly supplied using the Authorization: Bearer header. GitHub App authentication can use signed JWTs to obtain installation tokens. Repository and organization permissions determine accessible resources. GitHub webhooks support HMAC-SHA256 payload signature verification using the X-Hub-Signature-256 header.
