Get best email addresses by GitHub node IDs
POST/users/best-email
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.
Body Parameters
githubIds: array of string
Array of GitHub node IDs (1-100)
Returns
count: number
Number of results returned
Get best email addresses by GitHub node IDs
curl https://api.bountylab.io/v2/users/best-email \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $BOUNTYLAB_API_KEY" \
-d '{
"githubIds": [
"MDQ6VXNlcjU4MzIzMQ==",
"MDQ6VXNlcjE="
]
}'{
"count": 2,
"results": [
{
"bestEmail": "octocat@gmail.com",
"githubId": "MDQ6VXNlcjU4MzIzMQ==",
"login": "octocat",
"otherCandidates": [
"octocat@github.com",
"octocat@work.com"
]
}
]
}Returns Examples
{
"count": 2,
"results": [
{
"bestEmail": "octocat@gmail.com",
"githubId": "MDQ6VXNlcjU4MzIzMQ==",
"login": "octocat",
"otherCandidates": [
"octocat@github.com",
"octocat@work.com"
]
}
]
}