Follower Count API: One Request for Every Major Social Network

Published · 8 min read

A follower count API returns the number of followers of a public profile as a number your code can use, with no page to open and no HTML to parse. With SocialLens you send the same request to nine networks, GET /v1/profile?platform=...&username=..., and read the same followers field back. This guide shows the request, a real response for each network, what "followers" means on each one, and a script that checks a list of accounts across networks in one pass.

What is a follower count API?

It is an HTTP endpoint that takes a public handle and answers with the audience size of that account as structured data. There are two families.

The first is the official API of each network. Those are built for apps acting on behalf of an account that logged in and granted permission. They work well for "show my own stats" features, and poorly for "tell me how many followers this other account has", because most of them only return numbers for accounts that authorized your app or that pass an approval process. The rules of each one are laid out in Social Media APIs Compared.

The second family is a public data API. It reads what the public profile page already shows to any visitor and returns it as JSON. No login from the account owner, no app review, and the target can be any public account. SocialLens is in this second family, and it adds one thing that matters when you work with more than one network: the response has the same shape everywhere.

That last point is the real cost of doing this by hand. One source calls the field followers_count, another follower_count, another subscriberCount, and one of them returns it as text. Some networks round the number and some do not. A follower count API that covers several networks has to settle those differences for you, and has to tell you when a number is exact and when it is not.

The request: one endpoint, nine networks

Every profile read is the same call. Only platform and username change.

curl "https://api.sociallens.dev/v1/profile?platform=tiktok&username=tiktok" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

The key goes in the Authorization header as a Bearer token. platform accepts tiktok, instagram, youtube, facebook, x, reddit, linkedin, threads and pinterest. What you send as username depends on the unit each network exposes:

Network platform What to send as username
TikTok tiktok The handle, for example tiktok. A leading @ is ignored.
Instagram instagram The handle, for example instagram.
YouTube youtube The channel handle, for example mrbeast.
Facebook facebook The page handle, for example microsoft, or the full page URL.
X (Twitter) x The handle, for example nasa.
Threads threads The handle, for example zuck.
Pinterest pinterest The user handle, for example nike.
LinkedIn linkedin A company name such as microsoft (the default), or a person with type=person, or the full profile URL.
Reddit reddit A subreddit, as technology or r/technology. Reddit has no follower count, see below.

What the response looks like

This is the response to the request above, read on November 22, 2026. The avatar URL is shortened here, everything else is as returned.

{
  "exists": true,
  "username": "tiktok",
  "platform": "tiktok",
  "nickname": "TikTok",
  "verified": true,
  "private": false,
  "followers": 97056999,
  "followers_rounded": 97100000,
  "is_exact": true,
  "following": 2,
  "likes": 469756897,
  "videos": 1520,
  "bio": "Your next discovery is waiting on TikTok.",
  "avatar": "https://p16-common-sign.tiktokcdn-us.com/...",
  "id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
  "created_at": "2015-02-28T17:22:29Z",
  "external_link": null,
  "category": null,
  "fetched_at": "2026-11-22T23:52:55Z",
  "cached": false,
  "source_cached": false,
  "credits": {
    "source": "free",
    "charged": 1,
    "balance": 0,
    "free_reads_total": 250,
    "free_reads_left": 249
  }
}

Four fields carry the follower count and its context:

id is worth storing too. It is the stable identifier of the account on that network, and it survives a handle change, which a username does not.

Follower counts on each network, with real numbers

The table below comes from live reads made on November 22, 2026 with the request shown above. Same endpoint, same field, eight networks that have a follower concept.

Network Account read followers returned is_exact
TikTok tiktok 97,056,999 true
Instagram instagram 685,313,695 true
YouTube mrbeast 528,000,000 false
Facebook microsoft 13,269,583 true
X nasa 92,143,654 true
LinkedIn (company) microsoft 29,570,468 full number
LinkedIn (person) williamhgates 40,842,787 true
Threads zuck 5,782,430 true
Pinterest nike 1,087,162 true

Seven of the eight return the full number. YouTube is the exception, and the API says so in the response instead of leaving you to find out later.

Exact versus rounded: why is_exact exists

Public pages round. The TikTok profile in the example shows 97.1M to a visitor. The API returned 97,056,999, and it also returned 97,100,000 in followers_rounded so you can reproduce what the page shows if you need to.

The difference is not cosmetic. A displayed figure of 97.1M stays the same across a range of a hundred thousand followers. If you track growth, compare two creators of similar size, or check a threshold such as "at least 10,000 followers", you need the full number.

YouTube is different because the network itself only publishes a rounded subscriber count, three significant figures, to everyone. No reader can give you more digits than the source publishes. In that case the API returns the rounded figure in both followers and followers_rounded and sets is_exact to false. Your code can branch on that flag instead of keeping a list of which networks round. There is a full walkthrough in YouTube Subscriber Count API.

Networks where "followers" needs a second look

A unified field is useful only if you know what sits behind it on each network. These are the cases that surprise people.

YouTube. followers is the subscriber count. following is null, because channels do not follow anyone. likes carries the total channel views (147,844,970,309 for the channel above) and videos the number of uploads.

Facebook. followers is the page follower count. Facebook folded the old page like count into followers, so there is one audience number per page. following is null, and videos comes as 0 because pages do not publish a post total.

Threads. The profile exposes followers and nothing else numeric. following is null, and videos comes as 0 for the same reason as on Facebook. Do not read that zero as "no posts".

Pinterest. You get followers plus an extra boards_count field (9 for the account above).

LinkedIn. One platform, two units. A company answers with type: "company", followers and employee_count (230,547 for the company above). A person answers with type: "person" and followers. Companies are the default; add type=person or send a /in/ URL to read a person. See LinkedIn Company Data API.

Reddit. There is no follower count. The unit is the subreddit and the audience number is active_users, the weekly active figure (5,460,663 for r/technology on the day of the read). Details in Reddit Subreddit Stats API.

Check a list of accounts across networks in Python

This script reads eight accounts on eight networks and prints a CSV. It is complete: set SOCIALLENS_KEY in the environment and run it.

import csv
import os
import sys
import time

import requests

API = "https://api.sociallens.dev/v1/profile"
KEY = os.environ["SOCIALLENS_KEY"]

ACCOUNTS = [
    ("tiktok", "tiktok"),
    ("instagram", "instagram"),
    ("youtube", "mrbeast"),
    ("facebook", "microsoft"),
    ("x", "nasa"),
    ("linkedin", "microsoft"),
    ("threads", "zuck"),
    ("pinterest", "nike"),
]


def read_profile(platform, username):
    """One profile read. Retries the three statuses that mean 'try again'."""
    for _ in range(3):
        r = requests.get(
            API,
            params={"platform": platform, "username": username},
            headers={"Authorization": f"Bearer {KEY}"},
            timeout=60,
        )
        if r.status_code in (409, 429, 503):
            time.sleep(int(r.headers.get("Retry-After", 5)))
            continue
        break
    return r.status_code, r.json()


out = csv.writer(sys.stdout)
out.writerow(["platform", "username", "followers", "is_exact", "fetched_at"])
for platform, username in ACCOUNTS:
    status, data = read_profile(platform, username)
    if status != 200:
        out.writerow([platform, username, f"error: {data.get('error')}", "", ""])
    elif not data.get("exists"):
        out.writerow([platform, username, "not found", "", ""])
    else:
        out.writerow([
            platform,
            username,
            data.get("followers"),
            data.get("is_exact", ""),
            data["fetched_at"],
        ])

The loop is sequential on purpose. Reads for the same account are processed one at a time, so firing them in parallel gains nothing and can produce a 409 account_busy. The rate limit is 60 requests per minute per key, which a sequential loop does not reach.

The same check in JavaScript

Node 18 or newer has fetch built in. Save this as followers.mjs and run it with node followers.mjs.

const API = "https://api.sociallens.dev/v1/profile";
const KEY = process.env.SOCIALLENS_KEY;

async function followers(platform, username) {
  const url = `${API}?platform=${platform}&username=${encodeURIComponent(username)}`;
  const res = await fetch(url, { headers: { Authorization: `Bearer ${KEY}` } });
  const data = await res.json();
  if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
  if (!data.exists) return null;
  return { followers: data.followers, exact: data.is_exact, at: data.fetched_at };
}

// One at a time: reads for the same account are processed in sequence.
for (const [platform, username] of [["tiktok", "tiktok"], ["x", "nasa"], ["threads", "zuck"]]) {
  console.log(platform, username, await followers(platform, username));
}

Missing profiles, private accounts and errors

Three situations are answers, not failures, and come back with HTTP 200:

Real failures use HTTP status codes, and none of them is charged:

Status error What to do
400 bad_request Fix the parameter named in message.
401 invalid_token Check the key and the Bearer header.
402 no_credits, free_tier_exhausted The balance is used up.
409 account_busy Another read for your account is in flight. Retry in a moment.
429 rate_limited Wait the seconds given in the Retry-After header.
501 platform_not_available That platform is not offered on that endpoint.
503 source_unavailable The network could not be read. Retry after Retry-After.

What it costs to run

One successful read is one credit, on every network. A new account starts with 250 free reads and no card is asked for, so the script above can run about thirty times before it costs anything. The credits block in each response shows what was charged and what is left, which saves a separate balance call.

If you only need to look at one profile by hand, the free tools do the same read in the browser without an account, for example the TikTok follower count and Instagram follower count pages. They are rate limited per visitor and meant for one-off checks, while the API is the path for anything scripted.

Two guides apply this same call to a specific job. Social Media Followers Count API for SMM Panels uses it to verify orders: start count, delivery tracking and drop detection. Enrich a Clay Table with Follower Counts via HTTP API runs it from a Clay column, one row per company.

Frequently asked questions

Is there one API that returns follower counts for every social network?

SocialLens returns follower counts for TikTok, Instagram, YouTube, Facebook, X, LinkedIn, Threads and Pinterest through one endpoint, /v1/profile, with the same followers field. Reddit is also covered by the same endpoint, but as a subreddit with weekly active users, because Reddit has no follower count.

Are the follower counts exact?

On TikTok, Instagram, Facebook, X, LinkedIn, Threads and Pinterest the API returns the full number, and is_exact is true on every creator style profile. On YouTube the network only publishes a rounded subscriber count, so is_exact is false and followers holds the rounded figure.

How fresh is the number?

Every read goes to the network when you make the request. fetched_at in the response is the time of that read in UTC.

Can I get the list of followers, not only the count?

Only on TikTok, through /v1/followers and /v1/following, paginated with a cursor. Other networks do not expose follower lists publicly, so for them the API offers the count through /v1/profile. The TikTok list is covered in How to Track TikTok Follower Growth Programmatically.

Do I need the account owner's permission?

No. The API reads public data only, the same numbers any visitor sees on the profile page. It does not log in to the account and does not return anything that is not public.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading