Example badge in use on my GitHub profile.
- Copy/paste into your Markdown:

. - Change
YOUR_USERNAME
to be your account ID. This is found by going to your Stack Overflow profile and getting the number in the URL. For example, for my account I'd go here, and then see13029516
in the URL. - Change
PERIOD
to be one of:day
,week
,month
,quarter
, oryear
. This is how we calculate the "+XXX this day/week/month/quarter/year" on the big badge. - Change
IS_MINI
to be eithertrue
orfalse
. A mini badge ignores thePERIOD
value, but still requires it.
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.
- Issues here.
- PRs here.
- Thanks @yubinjodev for the mini badge suggestion.