Get Repository Contributors Statistics
GET/api/v5/repos/:owner/:repo/contributors/statistic
Request
Path Parameters
Repository space address (address path of the enterprise, organization, or individual)
Repository path (path)
Query Parameters
User authorization code
Filter contributors by username. Supports specifying a username to get contribution data for that user. Returns contribution data for all users by default.
Whether to return data only for the current user. true indicates that only the contribution data of the current user will be returned; false or omission will result in returning the contribution data of all users. When set to true, it has a higher priority than the author parameter.
Start date, formatted as YYYY-MM-DD or YYYY-MM-DD HH:mm:ss. Used to limit the start time of the contribution data returned.
End date in the format of YYYY-MM-DD or YYYY-MM-DD HH:mm:ss. Used to limit the end time of the contribution data returned.
Specify the ref_name (branch name, commit ID, or tag name) to get contribution data. If not provided or empty, use the default branch.
Responses
- 200
Successful Response
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- Array [
- ]
- ]
overview object
contributions object[]
[
{
"name": "string",
"email": "string",
"overview": {
"additions": 0,
"deletions": 0,
"total_changes": 0,
"commit_count": 0
},
"contributions": [
{
"date": "string",
"additions": 0,
"deletions": 0,
"total_changes": 0,
"commit_count": 0
}
]
}
]
{
"name": "test",
"email": "aa@ss.com",
"overview": {
"additions": 762,
"deletions": 0,
"total_changes": 0,
"commit_count": 8
},
"contributions": [
{
"date": "2024-12-05",
"additions": 759,
"deletions": 0,
"total_changes": 759,
"commit_count": 5
},
{
"date": "2024-12-08",
"additions": 2,
"deletions": 0,
"total_changes": 2,
"commit_count": 2
},
{
"date": "2024-12-09",
"additions": 1,
"deletions": 0,
"total_changes": 1,
"commit_count": 1
}
]
}