How to Show a Facebook or Instagram Follower Count on Your Website (Free Live Badge)
Show a public Facebook Page's or Instagram account's follower count on your website, blog or GitHub README with a free live badge: no account, no API key. WordPress, HTML and Markdown code.
You can show a public Facebook Page's or Instagram account's follower count on your website, blog or GitHub README with one line of HTML: a free live badge from SocialAPIs, refreshed about once a day. No account, no API key and no Meta developer app. This guide shows how to get the code, where to paste it on WordPress, GitHub and other site builders, and how to build your own counter with the API if you want the number inside your own design.
Here's what it looks like (live):
Get the code in 3 steps
- Open the Facebook follower count checker or the Instagram follower count checker.
- Look up the Page (its URL or username) or the Instagram username.
- Under the result, pick a style and theme, then copy the HTML, Markdown or forum (BBCode) code.
You can also write it by hand. The badge address is:
1https://socialapis.io/badge/facebook/<page>.svg
2https://socialapis.io/badge/instagram/<username>.svg<page> is the part after facebook.com/ in the Page's address (facebook.com/cocacola → cocacola), or its numeric ID. <username> is the Instagram username without the @.
Paste it into your site
Any website (HTML):
1<a href="https://socialapis.io/tools/facebook-follower-count"><img src="https://socialapis.io/badge/facebook/cocacola.svg" alt="Coca-Cola Facebook followers" height="20"></a>WordPress: in the block editor, add a Custom HTML block where you want the badge and paste the HTML above. In a widget area (sidebar, footer), use the Custom HTML widget.
Webflow, Squarespace, Wix, Shopify: use the builder's code or embed block (Embed, Code block, Embed HTML, Custom Liquid) and paste the same HTML.
GitHub README (Markdown):
1[](https://socialapis.io/tools/instagram-follower-count)Forums (BBCode): the checker gives you the [url][img]…[/img][/url] version.
Options
Add these to the end of the badge address:
| Option | What it does |
|---|---|
?theme=dark | Dark colours, for dark websites |
?style=flat | Square corners instead of rounded |
?label=Our%20fans | Your own text instead of "Facebook followers" |
Combine them with &: …/cocacola.svg?theme=dark&style=flat.
How it updates
- The count is refreshed about once a day. Follower counts change slowly, so this keeps the badge fast for your visitors.
- Facebook counts are the rounded number Facebook shows (for example 106M).
- If a count can't be refreshed for a while, the badge keeps the last one it had, with its date. If there's nothing to show (a private account, a typo), you get a neutral SocialAPIs badge, never a broken image.
- Only public Pages and public Instagram accounts work.
Want the number in your own design? Use the API
The badge is a ready-made image. If you want the follower count as a number, to style it yourself, store it every day or show it in a dashboard, call the API from your server:
1curl -G "https://api.socialapis.io/facebook/pages/details" \
2 -H "x-api-token: $SOCIALAPIS_API_KEY" \
3 --data-urlencode "link=https://www.facebook.com/cocacola"1curl -G "https://api.socialapis.io/instagram/profile/details" \
2 -H "x-api-token: $SOCIALAPIS_API_KEY" \
3 --data-urlencode "username=nasa"Keep the API key on your server, never in the page's JavaScript. For Facebook, add exact_followers_count=true to get the exact number instead of the rounded one. Prices are on the pricing page, and you can start on the free plan without a card.
To follow a Page's growth over time instead, the Facebook Page Tracker checks it every day and draws the chart for you.
FAQ
Is the badge free? Yes. Showing it costs you nothing and needs no account.
Does it slow my site down? No. It's a small image (about 1 KB) served from a CDN.
Can I show my own Page? Any public Page or account works, yours included.
Can I remove the link? You can, it's your site. The link takes your visitors to the free checker where they can make their own badge.