Skip to main content
POST
/
api
/
github
/
commits
/github/commits
curl --request POST \
  --url https://api.anysite.io/api/github/commits \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "commit": "<string>",
  "timeout": 300
}
'
[
  {
    "sha": "<string>",
    "@type": "@github_commit",
    "text": "",
    "author": {
      "@type": "@github_commit_user",
      "name": "<string>",
      "email": "<string>",
      "login": "<string>",
      "id": 123,
      "image": "<string>"
    },
    "committer": {
      "@type": "@github_commit_user",
      "name": "<string>",
      "email": "<string>",
      "login": "<string>",
      "id": 123,
      "image": "<string>"
    },
    "authored_at": "",
    "committed_at": "",
    "parents": [],
    "addition_count": 0,
    "deletion_count": 0,
    "total_count": 0,
    "is_verified": false,
    "verification_reason": "<string>",
    "comment_count": 0,
    "files": [],
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
commit
string
required

Commit as a GitHub commit URL, 'owner/repo@sha' form, or 'owner/repo/sha'. The sha may be a full or short commit hash, a branch name, or a tag.

Minimum string length: 1
Examples:

"https://github.com/torvalds/linux/commit/1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"

"octocat/Hello-World@7fd1a60"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

sha
string
required
@type
string
default:@github_commit
text
string
default:""
author
GithubCommitUser · object
committer
GithubCommitUser · object
authored_at
string
default:""
committed_at
string
default:""
parents
string[]
addition_count
integer
default:0
deletion_count
integer
default:0
total_count
integer
default:0
is_verified
boolean
default:false
verification_reason
string | null
comment_count
integer
default:0
files
GithubCommitFile · object[]
web_url
string
default:""