Get email id of user using GitHub userid

Lot of time you need to connect to people personally but you do not actually know their emailid. GitHub is a social coding platform where you can get email id’s of the active programmers who have submitted their code to repo’s. This information is actually publically available because with the user commits the email id also gets passed to the repo along with the code.

I hope this technique is used in a positive way rather than being misused.

GitHub API:

https://api.github.com/users/yssharma/events/public

Replace the yssharma with the user id of the person whose email id you want to extract.

You would receive a JSON with public activity of the user. Search for the email field in the JSON (Ctrl + F) and there your email is. Voila !!

Get email id of user from GitHub userid
Get email id of user from GitHub userid

Thats all for this post. Hope it was helpful.
Cheers

2 thoughts on “Get email id of user using GitHub userid

  1. Github has changed its rate limiting policies and the link does not return any response. The requests have to be authenticated for making the calls –

    {
    “message”: “API rate limit exceeded for 119.17.160.225. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)”,
    “documentation_url”: “https://developer.github.com/v3/#rate-limiting”
    }

Leave a Reply

Your email address will not be published. Required fields are marked *