← Back to blog
facebookinstagramfollower-countbadgewebsite

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.

SocialAPIs Team·

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):

NASA Facebook followers NASA Instagram followers

Get the code in 3 steps

  1. Open the Facebook follower count checker or the Instagram follower count checker.
  2. Look up the Page (its URL or username) or the Instagram username.
  3. 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:

text
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):

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):

markdown
1[![Instagram followers](https://socialapis.io/badge/instagram/nasa.svg)](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:

OptionWhat it does
?theme=darkDark colours, for dark websites
?style=flatSquare corners instead of rounded
?label=Our%20fansYour 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:

bash
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"
bash
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.

Try the SocialAPIs platform

Build on Facebook + Instagram data today (TikTok, X, LinkedIn, and YouTube on the roadmap). 200 free calls / month, no card.

Create a free account