How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Commits API

The Commits API from GitHub — 24 operation(s) for commits.

GitHub Commits API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Commits. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 29 operations across 23 paths, and defines 34 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

29 operations 23 paths 34 schemas 3 DELETE20 GET1 PATCH5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Commits API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 29

Across 23 paths, the API surfaces 29 operations — 3 DELETE, 20 GET, 1 PATCH, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Commits 29
GET
/gists/{gist_id}/commits
GitHub List Gist Commits
listGistCommits 3 params → 200304403404
GET
/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures
GitHub Get Commit Signature Protection
getCommitSignatureProtection 6 params → 200404
POST
/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures
GitHub Create Commit Signature Protection
createCommitSignatureProtection 6 params → 200404
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures
GitHub Delete Commit Signature Protection
deleteCommitSignatureProtection 6 params → 204404
GET
/repos/{owner}/{repo}/pulls/{pull_number}/commits
GitHub List Commits on Pull Request
listCommitsOnPullRequest 8 params → 200
GET
/repos/{owner}/{repo}/comments
GitHub List Commit Comments for Repository
listCommitCommentsForRepository 7 params → 200
GET
/repos/{owner}/{repo}/comments/{comment_id}
GitHub Get Commit Comment
getCommitComment 6 params → 200404
PATCH
/repos/{owner}/{repo}/comments/{comment_id}
GitHub Update Commit Comment
updateCommitComment 6 params body → 200404
DELETE
/repos/{owner}/{repo}/comments/{comment_id}
GitHub Delete Commit Comment
deleteCommitComment 6 params → 204404
GET
/repos/{owner}/{repo}/comments/{comment_id}/reactions
GitHub List Reactions for Commit Comment
listReactionsForCommitComment 9 params → 200404
POST
/repos/{owner}/{repo}/comments/{comment_id}/reactions
GitHub Create Reaction for Commit Comment
createReactionForCommitComment 6 params body → 200201422
DELETE
/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
GitHub Delete Commit Comment Reaction
deleteCommitCommentReaction 7 params → 204
GET
/repos/{owner}/{repo}/commits
GitHub List Commits
listCommits 13 params → 200400404409500
GET
/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head
GitHub List Branches for Head Commit
listBranchesForHeadCommit 6 params → 200422
GET
/repos/{owner}/{repo}/commits/{commit_sha}/comments
GitHub List Commit Comments
listCommitComments 8 params → 200
POST
/repos/{owner}/{repo}/commits/{commit_sha}/comments
GitHub Create Commit Comment
createCommitComment 6 params body → 201403422
GET
/repos/{owner}/{repo}/commits/{commit_sha}/pulls
GitHub List Pull Requests Associated with Commit
listPullRequestsAssociatedWithCommit 8 params → 200
GET
/repos/{owner}/{repo}/commits/{ref}
GitHub Get Commit
getCommit 8 params → 200404422500503
GET
/repos/{owner}/{repo}/commits/{ref}/statuses
GitHub List Commit Statuses for Reference
listCommitStatusesForReference 8 params → 200301
GET
/repos/{owner}/{repo}/compare/{basehead}
GitHub Compare Two Commits
compareTwoCommits 8 params → 200404500503
GET
/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
GitHub Get Diff of the Dependencies Between Commits
getDiffOfTheDependenciesBetweenCommits 7 params → 200403404
POST
/repos/{owner}/{repo}/git/commits
GitHub Create Commit
createCommit 5 params body → 201404422
GET
/repos/{owner}/{repo}/git/commits/{commit_sha}
GitHub Get Commit Object
getCommitObject 6 params → 200404
GET
/repos/{owner}/{repo}/stats/code_frequency
GitHub Get the Weekly Commit Activity
getTheWeeklyCommitActivity 5 params → 200202204
GET
/repos/{owner}/{repo}/stats/commit_activity
GitHub Get the Last Year of Commit Activity
getTheLastYearOfCommitActivity 5 params → 200202204
GET
/repos/{owner}/{repo}/stats/contributors
GitHub Get All Contributor Commit Activity
getAllContributorCommitActivity 5 params → 200202204
GET
/repos/{owner}/{repo}/stats/participation
GitHub Get the Weekly Commit Count
getTheWeeklyCommitCount 5 params → 200404
GET
/repos/{owner}/{repo}/stats/punch_card
GitHub Get the Hourly Commit Count for Each Day
getTheHourlyCommitCountForEachDay 5 params → 200204
POST
/repos/{owner}/{repo}/statuses/{sha}
GitHub Create Commit Status
createCommitStatus 6 params body → 201

Schemas 34

The contract defines 34 schemas that model the data the API accepts and returns. The most detailed are repository (95 properties), pull-request-simple (36 properties), nullable-simple-user_2 (21 properties), simple-user (21 properties). Each schema is shown below with its type and property counts.

gist-commit
object
Gist Commit
5 properties 5 required
basic-error
object
Basic Error
4 properties
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
protected-branch-admin-enforced
object
Protected Branch Admin Enforced
2 properties 2 required
commit
object
Commit
11 properties 9 required
nullable-git-user
object
Metaproperties for Git author/committer information.
3 properties
simple-user
object
GitHub user.
21 properties 18 required
empty-object
object
An object without any properties.
verification
object
4 properties 4 required
diff-entry
object
Diff Entry
11 properties 9 required
participation-stats
object
2 properties 2 required
commit-comparison
object
Commit Comparison
13 properties 12 required
link
object
Hypermedia Link
1 property 1 required
team
object
Groups of organization members that gives permissions on specified repositories.
13 properties 11 required
scim-error
object
Scim Error
6 properties
repository
object
repository on GitHub.
95 properties 73 required
code-frequency-stat
array
Code Frequency Stat
git-commit
object
Low-level Git commit operations within a repository
10 properties 10 required
status
object
The status of a commit.
11 properties 11 required
validation-error
object
Validation Error
3 properties 2 required
branch-short
object
Branch Short
3 properties 3 required
pull-request-simple
object
Pull Request Simple
36 properties 31 required
commit-comment
object
Commit Comment
14 properties 13 required
commit-activity
object
Commit Activity
3 properties 3 required
contributor-activity
object
Contributor Activity
3 properties 3 required
reaction-rollup
object
10 properties 10 required
nullable-team-simple
object
Groups of organization members that gives permissions on specified repositories.
12 properties 10 required
dependency-graph-diff
array
diff of the dependencies between two commits.
auto-merge
object
The status of auto merging a pull request.
4 properties 4 required
reaction
object
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
5 properties 5 required
author-association
string
How the author is associated with the repository.
nullable-simple-user_2
object
GitHub user.
21 properties 18 required
nullable-milestone
object
collection of related issues and pull requests.
16 properties 16 required
nullable-license-simple
object
License Simple
6 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-commits-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Commits API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.