Get the weekly commit activity
GET
/repos/{owner}/{repo}/stats/code_frequency
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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
Media type application/json
Array<Array<integer>>
Examples
Example default
[ [ 1302998400, 1124, -435 ]]Accepted
Media type application/json
object
Examples
Example default
nullA header with no content is returned.
Repository contains more than 10,000 commits