How to Get an Instagram Follower Count via API

Published · 8 min read

To get an Instagram follower count through an API, send GET /v1/profile?platform=instagram&username=HANDLE to SocialLens with your key. The response is JSON and the followers field holds the exact count as an integer. It works for any public profile, personal accounts included, and it does not need a Meta app, a Graph API token or access to the account. The rest of this guide covers the response field by field, how this compares with the official route, post level numbers, bulk checks and the mistakes that cost people time.

The short answer

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

This is the response to that request, read on November 22, 2026. Only the avatar URL is shortened.

{
  "exists": true,
  "username": "instagram",
  "platform": "instagram",
  "nickname": "Instagram",
  "verified": true,
  "private": false,
  "followers": 685313695,
  "followers_rounded": 685313695,
  "is_exact": true,
  "following": 178,
  "likes": null,
  "videos": 8656,
  "bio": "Discover what's new on Instagram 🔎✨",
  "avatar": "https://scontent-dfw6-1.cdninstagram.com/...",
  "id": "25025320",
  "created_at": null,
  "external_link": "http://help.instagram.com",
  "category": null,
  "fetched_at": "2026-11-22T23:53:02Z",
  "cached": false,
  "source_cached": false,
  "credits": {
    "source": "free",
    "charged": 1,
    "balance": 0,
    "free_reads_total": 250,
    "free_reads_left": 248
  }
}

followers is 685,313,695. Not "685M", not a string. That is the whole answer for most use cases, and the next sections are for when you need more than the one number.

Two ways to get an Instagram follower count programmatically

There are two routes, and they solve different problems.

The official route is the Instagram API with Facebook Login, through a feature called Business Discovery. It lets your app read basic metadata and metrics, including followers_count and media_count, of other Instagram professional accounts. The request goes through an Instagram professional account of your own:

curl -G "https://graph.facebook.com/{api-version}/{your-ig-user-id}" \
  --data-urlencode "fields=business_discovery.username(TARGET_HANDLE){followers_count,media_count}" \
  --data-urlencode "access_token=YOUR_ACCESS_TOKEN"

To make that call you need a Meta developer app, an Instagram professional account connected to it, and an access token that you obtain and keep valid. The target also has to be a professional account, which means business or creator. Personal accounts are outside its scope, and Meta's documentation notes that age gated professional accounts are not returned either. The Business Discovery documentation has the current requirements.

The public data route reads what the public profile page shows to any visitor. You send a handle, you get the numbers. It covers any public profile regardless of account type.

Official Business Discovery SocialLens /v1/profile
Setup Meta app, connected professional account, access token One API key
Accounts you can read Other professional accounts (business or creator) Any public profile
Personal accounts Not covered Covered when public
Credential upkeep Token lifecycle is yours to manage Key does not expire
Follower count followers_count followers, exact integer
Other networks Instagram only Same request for 8 more networks

If your product already runs on a Meta app and only needs professional accounts, the official route is a reasonable fit. If you need any public handle, or you would rather not own a token lifecycle for one number, the public route is shorter.

Reading the response: what each field means on Instagram

The schema is shared by every network SocialLens covers, so it helps to know how Instagram fills it.

Private accounts and handles that do not exist

Both cases answer with HTTP 200, because both are definitive answers.

A handle that does not exist returns a three field body:

{
  "exists": false,
  "username": "some_handle_that_is_not_there",
  "platform": "instagram"
}

A private account returns exists: true with private: true and the public metadata Instagram shows for private profiles. Its posts are not public, so the posts endpoint described next answers with private: true and an empty list.

Check exists before you read followers. It is the difference between "this creator has 0 followers" and "this creator is not there", and mixing the two is a common source of bad data in creator databases.

Getting post likes and comments too

A follower count alone says little about an account. Two more endpoints use the same key and the same schema.

/v1/profile-posts returns the recent posts of a profile with the counters of each one. One call is one page from Instagram. The credits block is left out of the sample below.

curl "https://api.sociallens.dev/v1/profile-posts?platform=instagram&username=instagram&limit=2" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
{
  "exists": true,
  "username": "instagram",
  "platform": "instagram",
  "private": false,
  "count": 2,
  "has_more": true,
  "next_cursor": null,
  "is_exact": true,
  "posts": [
    {
      "id": "Df-eXldGxRb",
      "url": "https://www.instagram.com/p/Df-eXldGxRb/",
      "caption": "we’ve hit the Las Vegas Grand Prix jackpot. ...",
      "published_at": "2026-11-20T20:06:11Z",
      "likes": 367280,
      "views": null,
      "comments": 4934,
      "shares": null,
      "likes_hidden": false
    },
    {
      "id": "Df-N5-km8V4",
      "url": "https://www.instagram.com/p/Df-N5-km8V4/",
      "caption": "step into @dovecameron’s moodboard, ...",
      "published_at": "2026-11-20T17:42:20Z",
      "likes": 648426,
      "views": null,
      "comments": 3544,
      "shares": null,
      "likes_hidden": false
    }
  ],
  "fetched_at": "2026-11-22T23:54:23Z",
  "cached": false,
  "source_cached": false
}

Three Instagram details show up here. views is null for photo posts and filled for reels and videos. shares is always null because Instagram does not publish it. And when an account owner hides like counts, likes comes as null with likes_hidden: true, so you can tell a hidden counter from a post with no likes.

/v1/post reads one post by its URL (/p/ or /reel/) and returns the same counters plus the author:

curl "https://api.sociallens.dev/v1/post?platform=instagram&url=https://www.instagram.com/p/Df-N5-km8V4/" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

With followers from the profile and likes plus comments from the posts you can compute an engagement rate. The method is in How to Get Likes, Views and Comments for Any Post by URL. A worked example for one creator on Instagram, TikTok and YouTube is in Engagement Rate API for Indie Influencer Apps.

A Python function you can reuse

import os
import time

import requests

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


def instagram_followers(handle):
    """Exact follower count of a public Instagram profile, or None if it does not exist."""
    for _ in range(3):
        r = requests.get(
            API,
            params={"platform": "instagram", "username": handle.lstrip("@")},
            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
    data = r.json()
    if r.status_code != 200:
        raise RuntimeError(f"{r.status_code} {data.get('error')}: {data.get('message')}")
    if not data["exists"]:
        return None
    return data["followers"]


if __name__ == "__main__":
    print(instagram_followers("instagram"))

The retry covers the three statuses that mean "try again shortly": 409 when another read for your account is still running, 429 when you pass 60 requests per minute, and 503 when Instagram could not be read at that moment. None of those is charged. Any other non 200 status is a problem with the request itself, so the function raises with the error code and the message from the body.

Checking many Instagram accounts

For a list of handles, loop in sequence and keep the id next to each row.

import csv
import sys

handles = ["instagram", "natgeo", "nasa"]

out = csv.writer(sys.stdout)
out.writerow(["handle", "followers"])
for handle in handles:
    out.writerow([handle, instagram_followers(handle)])

Two practical notes. Reads for the same account are processed one at a time, so a parallel pool does not make a list finish sooner and only produces 409 responses. And billing is per successful read, one credit each, so a list of 200 handles fits inside the 250 free reads that every new account starts with, no card required.

If the list is a Clay table and not a script, the same request runs from an HTTP API column, one row per account: see Enrich a Clay Table with Follower Counts via HTTP API.

What the public numbers cover, and what they do not

It helps to be precise about the boundary, because it decides which route you need.

Public data is what Instagram shows on a profile or a post to a visitor who is not logged in to that account: follower and following counts, the number of posts, the bio and its link, the verified badge, and for each public post its likes, comments and video views. All of that is available through the API for any public profile.

Account insights are a different category. Reach, impressions, profile visits, saves, story views, audience demographics and the hour by hour activity of followers are visible only to the account owner. No public data API can return them, for any account. If your product needs those, the account owner has to connect through Meta's official API and grant your app permission. Many products end up using both: the official API for the accounts of their own customers, and a public data API for everyone else, such as competitors, prospects and creators they are evaluating.

Tracking an Instagram account over time

Instagram does not publish history. A profile shows today's number and nothing about last week. If you want a growth chart you build it from your own readings: call the endpoint on a schedule, store id, followers and fetched_at, and subtract. One read per day per account is enough for most reports, and because the count is exact, small daily changes are visible instead of being hidden by rounding. The storage design, the scheduling and the delta query are the same on every network and are described step by step in How to Track TikTok Follower Growth Programmatically.

Common mistakes

Sending the profile URL as username. For Instagram the parameter is the handle: letters, digits, dot, underscore and hyphen. Strip https://www.instagram.com/ and the trailing slash before you call.

Treating likes: null as zero. On the profile it means Instagram does not publish that total. On a post it means the owner hid the counter, and likes_hidden confirms it.

Using the handle as the primary key. Handles change. Store id and treat the handle as a display value.

Reading followers without checking exists. A missing account has no followers field at all.

Calling in parallel. One read at a time per account. A simple loop is the correct design, not a shortcut.

Frequently asked questions

Can I get the follower count of a personal Instagram account?

Yes, when the profile is public. The read does not depend on the account being a business or creator account.

Does this need the account's login or permission?

No. The API reads public data only, the numbers a visitor sees on the profile page. It never logs in to the account.

Is the Instagram follower count exact?

Yes. Instagram exposes the full number, the API returns it as an integer and is_exact is true.

Can I get the list of an account's followers?

No. Instagram does not expose follower lists publicly, so the API returns the count and not the list. Follower lists are available on TikTok only, through /v1/followers.

Is there a way to check one account without writing code?

The Instagram follower count tool runs the same read in the browser with no account. For code, a new API account includes 250 free reads.

Does the same code work for other networks?

Yes. Change platform to tiktok, youtube, facebook, x, threads, pinterest or linkedin and the followers field stays in the same place. The overview is in Follower Count API.

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