Over a million developers have joined DZone.

Find User Details for Your GitHub Repository

Want to collect some basic info on the users of your GitHub repo? Make it easier to reach out to them with this quick tool.

· Integration Zone

Build APIs from SQL and NoSQL or Salesforce data sources in seconds. Read the Creating REST APIs white paper, brought to you in partnership with CA Technologies.


This is an information gathering tool about your GitHub Repository. Using this simple API, you can get user details (name, company, location, email) about SubscribersStargazers, and Forks.

This is useful to contact users personally (informing about meetups, events, etc).

How to Use

Get the project using:

git clone https://github.com/devender-yadav/GitUserDetailsFinder.git

Now you just need to use the GitUsersDetails.getUserDetails() method, and it will return  List<UserDetail>.

 UserDetail Class:

public class UserDetail {
    private String name;
    private String company;
    private String location;
    private String email;
    //setters and getters

Behind the Scenes

This project is using GitHub REST API to get users' details.

Mode of Usage 

No Authentication

All you have to do is provide organization name, repository name, or user type ( e.g. subscriber, stargazer, etc).

List<UserDetail> userDetailList = GitUsersDetails.getUserDetails(ORG_NAME, REPO_NAME, UserType.SUBSC

NOTE : Without authentication, 60 calls per hour can be made to the GitHub API. So, if you have a small number of users (fewer than 60), this would work fine.

Basic Authentication

You need to provide the username and password along with organization name, repository name, and user type.

List<UserDetail> userDetailList = GitUsersDetails.getUserDetails(ORG_NAME, REPO_NAME, UserType.SUBSCRIBERS, userName, password);

Provide the username and password of any repository just to authenticate GitHub API.

NOTE: With authentication, 5,000 calls per hour can be made to the API. So, if you have a decent number of users (fewer than 5,000), this should be your option.

Check test case for more details.

The Integration Zone is brought to you in partnership with CA Technologies.  Use CA Live API Creator to quickly create complete application backends, with secure APIs and robust application logic, in an easy to use interface.

github,git,open source

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}