GET/repos/{owner}/{repo}/stats/contributors

Get all contributor commit activity

Returns the total number of commits authored by the contributor. In addition, the response includes a Weekly Hash (weeks array) with the following information:

  • w - Start of the week, given as a Unix timestamp.
  • a - Number of additions
  • d - Number of deletions
  • c - Number of commits

[!NOTE] This endpoint will return 0 values for all addition and deletion counts in repositories with 10,000 or more commits.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

3 status codes
200Response
authorobjectrequired
A GitHub user.
totalintegerrequired
weeksarray<object>required
202Accepted
204A header with no content is returned.

Was this helpful?