This function first looks for the user's email in recent commits (last 30 days), and if not there, looks at commits in repos they own. The limita

Get the email address for GitHub username

submited by
Style Pass
2025-08-01 17:30:02

This function first looks for the user's email in recent commits (last 30 days), and if not there, looks at commits in repos they own.

The limitation is that this endpoint only gets events from the last 30 days, so if the user hasn't committed in the last month, you won't get any results from this method.

The GitHub API rate limits unauthenticated requests to 60 per hour per IP address. As a quick workaround, Val Town provides an IP-randomizer fetch proxy that makes it easy to get around these limits. These functions use that proxy by default. However, if you're using these functions at scale, please use a GITHUB_TOKEN to be a good GitHub citizen.

Leave a Comment
Related Posts