GET
/repos/{owner}/{repo}/stats/contributorsGet 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 additionsd- Number of deletionsc- Number of commits
[!NOTE] This endpoint will return
0values for all addition and deletion counts in repositories with 10,000 or more commits.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
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.
200Response
authorobjectrequired
A GitHub user.
totalintegerrequired
weeksarray<object>required
202Accepted
204A header with no content is returned.
Was this helpful?