Skip to content

Retrieve contributors metrics

GET
/api/v4/projects/{id}/repository/contributors

Retrieves a list of contributors to a specified repository.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
1
page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20
ref
string
nullable

The name of a repository branch or tag, if not given the default branch is used

Example
main
order_by
string
default: commits nullable
Allowed values: email name commits

Return contributors ordered by name or email or commits

sort
string
default: asc nullable
Allowed values: asc desc

Sort by asc (ascending) or desc (descending)

OK

Media type application/json
object
name
string
email
string
commits
integer
additions
integer
deletions
integer
Example
{
"name": "John Doe",
"email": "johndoe@example.com",
"commits": 117,
"additions": 3,
"deletions": 5
}

Bad Request

Not Found