How to Add Stack Overflow Stats to Your GitHub Profile README
Displaying your Stack Overflow reputation on your GitHub profile connects two separate measures of developer credibility. A high reputation signals that your technical answers are trusted by thousands of developers — a form of expertise verification that GitHub contribution data alone cannot capture. This guide covers the omidnikrah/github-readme-stackoverflow widget, which renders your Stack Overflow profile stats as a styled card using just your Stack Overflow user ID.
Quick Setup Steps
- 1
Step 1: Find your Stack Overflow user ID from your profile URL (the number after /users/).
- 2
Step 2: Add the card to your README: [](https://stackoverflow.com/users/YOUR_ID)
- 3
Step 3: Replace YOUR_ID with your numeric Stack Overflow user ID.
- 4
Step 4: Add &theme=dark for dark mode profiles, or &layout=horizontal for a single-row layout.
- 5
Step 5: Commit and push. Verify the card displays your reputation, answers, questions, and badge counts.
What Is the Stack Overflow Stats Widget?
The github-readme-stackoverflow project renders a card showing your Stack Overflow reputation score, total answers, total questions, gold badges, silver badges, and bronze badges. It fetches this data from the Stack Exchange public API using your numeric user ID and formats it as an SVG image that embeds in your README.
Stack Overflow reputation is one of the few developer metrics that is difficult to game — it requires giving accurate, helpful answers that the community upvotes over time. A reputation above 1,000 signals genuine community engagement; above 10,000 indicates significant expertise in one or more technical areas. Including this on your GitHub profile is most valuable when your reputation is meaningfully high.
How to Find Your Stack Overflow User ID and Add the Card
Your Stack Overflow user ID is the number in your profile URL. Visit your profile at stackoverflow.com/users/YOUR_ID/your-name — the number after /users/ is your ID.
Add this to your README, replacing YOUR_STACKOVERFLOW_ID:
[](https://stackoverflow.com/users/YOUR_STACKOVERFLOW_ID)
For a card with a specific theme:
[](https://stackoverflow.com/users/YOUR_STACKOVERFLOW_ID)
For a layout variant with stats in a single row:
[](https://stackoverflow.com/users/YOUR_STACKOVERFLOW_ID)
Customizing the Stack Overflow Stats Card
The widget supports two main parameters:
theme:dark(dark background with light text) or default (light background). Usedarkfor profiles using dark-mode widget themes like tokyonight or radical.layout:vertical(default, stacked layout) orhorizontal(stats in a single row)
Link the card image to your Stack Overflow profile URL so visitors can click through to see your full answer history. Including the link is important — the card shows aggregate stats, but the real value comes when visitors can browse your specific answers in the domains they care about.
Place the Stack Overflow card alongside your GitHub stats card for a credibility-focused stats section. A natural grouping: GitHub stats (activity) + Stack Overflow stats (expertise) + streak (consistency).
Troubleshooting Stack Overflow Stats
If the card shows an error or empty stats, verify that your Stack Overflow user ID is correct. The ID is purely numeric — do not include the username portion of the URL, and do not prefix with 'user:'. Test your ID by accessing https://api.stackexchange.com/2.3/users/YOUR_ID?site=stackoverflow directly in your browser.
If your reputation or badge counts appear outdated, the card is likely serving a cached version. The Stack Exchange API has rate limits and the service may cache results for several hours. The data will update on the next cache refresh cycle.
For a Stack Overflow profile with a very low reputation (under 100), consider omitting this widget as it may highlight limited community participation rather than demonstrating expertise.
Frequently Asked Questions
How do I add my Stack Overflow stats to my GitHub README?
Find your numeric Stack Overflow user ID from your profile URL (stackoverflow.com/users/YOUR_ID/...), then add: `[](https://stackoverflow.com/users/YOUR_ID)` to your README. Add &theme=dark for dark mode profiles.
Is the Stack Overflow stats widget free?
Yes. The omidnikrah/github-readme-stackoverflow project is open source and the hosted Vercel service is free. It uses the public Stack Exchange API which is also free for read-only queries. No API key or Stack Overflow account connection is required beyond your user ID.
Why is my Stack Overflow reputation not showing correctly?
The service caches Stack Exchange API responses for performance. Your current reputation will be reflected after the cache expires, typically within a few hours. If the number is significantly different from your actual reputation, try accessing the card URL directly in your browser to force a fresh fetch.
Should I add Stack Overflow stats if my reputation is low?
Only include Stack Overflow stats if your reputation is meaningfully high — generally above 500 and ideally above 1,000. A very low reputation displayed prominently can work against you. Focus on building reputation through quality answers before adding this widget to your profile.
From Our Blog
- Complete Guide to GitHub Badges for Your README
Learn how to add shields.io badges, GitHub stats cards, and tool badges to your GitHub profile README. Includes ready-to-use code for 50+ popular technologies.
- Best GitHub README Widgets and Tools: The Complete 2026 List
A curated list of the best GitHub profile README widgets — from snake animations to Spotify players, stats cards to 3D contribution graphs. Includes setup instructions for each.
- How to Add GitHub Stats Cards to Your README (2026 Guide)
Step-by-step guide to adding GitHub stats cards, language cards, streak stats, and WakaTime cards to your GitHub profile README using github-readme-stats.
Generate Your GitHub Profile README
Generate a GitHub profile README featuring Stack Overflow Stats with AI
Try It Free — No Sign UpMore Widget Guides
How to Add Spotify Now Playing
Step-by-step guide to adding Spotify Now Playing to your GitHub README
How to Add WakaTime Coding Stats
Step-by-step guide to adding WakaTime Coding Stats to your GitHub README
How to Add Snake Contribution Animation
Step-by-step guide to adding Snake Contribution Animation to your GitHub README
How to Add Profile Views Counter
Step-by-step guide to adding Profile Views Counter to your GitHub README
How to Add Typing SVG Animation
Step-by-step guide to adding Typing SVG Animation to your GitHub README
How to Add GitHub Streak Stats
Step-by-step guide to adding GitHub Streak Stats to your GitHub README