DEV Community

Cover image for List of interesting GitHub endpoints of APIs
Nelson Hernández
Nelson Hernández

Posted on

List of interesting GitHub endpoints of APIs

This post will show you some GitHub REST API endpoints that you can use

List of Contributors of an organization

GET https://api.github.com/repos/:owner/:repo/contributors
Enter fullscreen mode Exit fullscreen mode

List of repositories of a user

GET https://api.github.com/users/:user/repos
Enter fullscreen mode Exit fullscreen mode

Users by location

GET https://api.github.com/search/users?q=location:"El Salvador"&page=1
Enter fullscreen mode Exit fullscreen mode

Information of organization

GET https://api.github.com/orgs/:org
Enter fullscreen mode Exit fullscreen mode

Members of an organization

GET https://api.github.com/orgs/:org/public_members
Enter fullscreen mode Exit fullscreen mode

Organizations by location

GET https://api.github.com/search/users?q=type:"org"location:"El Salvador"&page=1
Enter fullscreen mode Exit fullscreen mode

Profile of a user

GET https://api.github.com/users/:user
Enter fullscreen mode Exit fullscreen mode

Followers of a user

GET https://api.github.com/users/:user/followers
Enter fullscreen mode Exit fullscreen mode

Gists of a user

GET https://api.github.com/users/:owner/gists
Enter fullscreen mode Exit fullscreen mode

Repositories of a user

GET https://api.github.com/users/:owner/repos
Enter fullscreen mode Exit fullscreen mode

Organizations of a user, don't include if is owner

GET https://api.github.com/users/:owner/orgs
Enter fullscreen mode Exit fullscreen mode

Top comments (0)