DEV Community

Joodi
Joodi

Posted on

GitHub Shows 2.7K Followers, But the API Knows the Exact Number πŸ‘€

While building my project GitHub Followers Tracker, I noticed something interesting about GitHub profiles.

On the GitHub website, follower counts are rounded:
2.7K followers

But the GitHub API gives you the exact number:

{
  "followers": 2743
}
Enter fullscreen mode Exit fullscreen mode

No rounding, no guessing.

Why I Built This

GitHub shows your current followers, but it doesn't show your follower history.

You can't easily know:
Who followed you recently
Who unfollowed you
How your network changed over time

So I built a small tool that works like a memory for your GitHub profile.

GitHub Followers Tracker

πŸ”— Live Demo:
https://github-followers-tracker.netlify.app/

πŸ’» Source Code:
https://github.com/MiladJoodi/github-followers-tracker

Features:
βœ… Search any GitHub username
βœ… View followers and following lists
βœ… Track new followers
βœ… Detect unfollowed users
βœ… Save snapshots and compare changes
βœ… No login required
βœ… How It Works

GitHub provides profile data through a public API:

const response = await fetch(
  `https://api.github.com/users/${username}`
);

const profile = await response.json();

console.log(profile.followers);****

Enter fullscreen mode Exit fullscreen mode

The API returns useful information like:
{
"login": "MiladJoodi",
"followers": 2743,
"following": 1752,
"public_repos": 136
}


Built with:
➑️ Next.js 15 App Router
➑️ React 19
➑️ TypeScript
➑️ Tailwind CSS
➑️ Radix UI
➑️ Recharts
➑️ Zod

What I Learned
Sometimes a simple API can become the foundation of a useful developer tool.

GitHub gives you the data, but with a little creativity you can build something that solves a real problem.

If you are interested in GitHub APIs or frontend projects, feel free to check it out, fork it, or share your feedback πŸš€

Top comments (0)