v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-01-0382859610.0 MB
repos

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 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

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Query parameters

anonstring

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

per_pageinteger

The number of results per page (max 100). For more information, see "Using pagination in the REST API."

pageinteger

The page number of the results to fetch. For more information, see "Using pagination in the REST API."

Response

If repository contains content

loginstring
idinteger
node_idstring
avatar_urlstring uri
gravatar_idstring nullable
urlstring uri
html_urlstring uri
followers_urlstring uri
following_urlstring
gists_urlstring
starred_urlstring
subscriptions_urlstring uri
organizations_urlstring uri
repos_urlstring uri
events_urlstring
received_events_urlstring uri
typestring required
site_adminboolean
contributionsinteger required
emailstring
namestring