Get best email addresses by GitHub node IDs
Fetch the best email address for GitHub users by their node IDs. Uses intelligent selection to prioritize personal emails over work emails and verifies domain validity. Returns the best email plus all other email candidates. Supports batch requests (1-100 IDs). Requires RAW service. Credits: 1 per result returned.
post/users/best-email
Request body
Example request
{
"githubIds": [
"MDQ6VXNlcjU4MzIzMQ==",
"MDQ6VXNlcjE="
]
}Response
Best emails retrieved successfully
Example response
{
"results": [
{
"githubId": "MDQ6VXNlcjU4MzIzMQ==",
"login": "octocat",
"bestEmail": "octocat@gmail.com",
"otherCandidates": [],
"profile": "WORK"
}
],
"count": 2
}Changes
Changed in 3 of the 43 revisions of this API.12
- ●
added the new
SCHOOLenum value to the//response property for the response statusresponse-property-enum-value-added
- ●
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
- ○
endpoint added
endpoint-added
- ○