Example of it on my GitHub profile here. Star it if it helps you! ⭐️
-
Go to Stackoverflow, then click on your profile. Once on your profile, you should see a number in the URL bar. This is your account ID.
For example, here is my account ID:
-
Displayed on the stats badge is "+ some number of reputation per some time period". You need to choose over what time period you want us to calculate your reputation gain. The options are
day
,week
,month
,quarter
, andyear
. This is your period. -
Take the base URL, and insert your newly found account ID and period where appropriate:
For example, here is the URL for my account if I wanted to show my reputation gain quarterly:
-
Here is the copyable version, just change the "USERNAME" and "PERIOD": https://stackoverflow-badge.herokuapp.com/stackoverflow?username=USERNAME&period=PERIOD.
-
Insert this URL from step 4 into your GitHub profile's
README.md
exactly like this (obviously with your own failure text and personalized URL):![some text to render if the image fails to load](step 4 URL)
-
If you're still struggling, check out how I added it to my own profile's
README.md
here.
This only shows the total reputation you have.
-
Do all the steps from the big badge above.
-
Append
&mini=true
to the URL (keep the other options, they just don't matter). Added via suggestion from @yubinjodev.
These restrictions shouldn't interfere with regular usage:
- The badge is cached for 15 minutes, so its data can possibly lag 15 minutes behind your true Stackoverflow stats. This is done to reduce server load.
- You're rate limited to loading 15 different stat badges every 60 seconds based on your IP.
- The StackAPI limits everyone to loading 300 different profiles every 24 hours based on IP.