That being said, what you’ve described could be done in two API calls per user.
The first being to api.github.com/users/:username
, which returns an object that has the follower counts you need:
{
"login": "nhcarrigan",
"id": 63889819,
"node_id": "MDQ6VXNlcjYzODg5ODE5",
"avatar_url": "https://avatars.githubusercontent.com/u/63889819?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nhcarrigan",
"html_url": "https://github.com/nhcarrigan",
"followers_url": "https://api.github.com/users/nhcarrigan/followers",
"following_url": "https://api.github.com/users/nhcarrigan/following{/other_user}",
"gists_url": "https://api.github.com/users/nhcarrigan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nhcarrigan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nhcarrigan/subscriptions",
"organizations_url": "https://api.github.com/users/nhcarrigan/orgs",
"repos_url": "https://api.github.com/users/nhcarrigan/repos",
"events_url": "https://api.github.com/users/nhcarrigan/events{/privacy}",
"received_events_url": "https://api.github.com/users/nhcarrigan/received_events",
"type": "User",
"site_admin": false,
"name": "Nicholas Carrigan (he/him)",
"company": "@freeCodeCamp",
"blog": "www.nhcarrigan.com",
"location": "Washington, USA",
"email": null,
"hireable": null,
"bio": "Open Source Scrivener and Bug-Hunter Errant @freeCodeCamp",
"twitter_username": "nhcarrigan",
"public_repos": 53,
"public_gists": 2,
"followers": 413,
"following": 125,
"created_at": "2020-04-18T02:23:22Z",
"updated_at": "2021-11-01T17:08:31Z"
}
The second would be to api.github.com/users/:username/repos
, to get a list of repository objects. If you only need the number of repositories, that’s included on the first call.