Skip to main content

List repository contributors

Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance. GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.

GET/repos/{owner}/{repo}/contributors
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
Query Parameters
anon string
optional

Set to `1` or `true` to include anonymous contributors in results.

per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

Responses

application/json array[Contributor object]

if repository contains content

Headers
Link string
Example:
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"
items Contributor object

Contributor

avatar_url string<uri>
optional
contributions integer
required
email string
optional
events_url string
optional
followers_url string<uri>
optional
following_url string
optional
gists_url string
optional
gravatar_id string
optionalnullable
html_url string<uri>
optional
id integer
optional
login string
optional
name string
optional
node_id string
optional
organizations_url string<uri>
optional
received_events_url string<uri>
optional
repos_url string<uri>
optional
site_admin boolean
optional
starred_url string
optional
subscriptions_url string<uri>
optional
type string
required
url string<uri>
optional

Response if repository is empty

application/json Basic Error object

Forbidden

documentation_url string
optional
message string
optional
status string
optional
url string
optional
application/json Basic Error object

Resource not found

documentation_url string
optional
message string
optional
status string
optional
url string
optional