GET
/repos/{owner}/{repo}/stats/code_frequencyGet the weekly commit activity
Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
[!NOTE] This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains 10,000 or more commits, a 422 status code will be returned.
- 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.
200Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
202Accepted
204A header with no content is returned.
422Repository contains more than 10,000 commits
Error handling
A 422 is returned: Repository contains more than 10,000 commits.
Was this helpful?