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