How to Track TikTok Follower Growth Programmatically

Published · 7 min read

To track TikTok follower growth programmatically, read the exact follower count of the account on a schedule, store every reading with its timestamp, and compute the difference between readings. TikTok does not publish follower history for accounts you do not own, so the history is something you build. This guide does it end to end with one API endpoint, SQLite and about 80 lines of Python, and every script below was run as shown.

Why you have to build the history yourself

A public TikTok profile shows one number: followers right now. There is no public page with last week's number, and no public endpoint that returns a growth series for an arbitrary account.

TikTok's own analytics do show growth, but only to the owner of the account and only for limited time windows. The official developer APIs follow the same logic. The Display API returns follower_count for a user who logged in and granted your app the user.info.stats scope, so it covers accounts that authorized you and nobody else. The Research API can read public accounts, but access goes through an application and approval process aimed at researchers. Both are documented on TikTok for Developers.

So for competitors, creators you are evaluating, clients who have not connected anything, or simply a long history of your own account, the method is the same: take a reading at a fixed interval and keep it. Growth is the subtraction.

Step 1: read the exact follower count

One request returns the current count for any public handle.

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

The fields a tracker needs, from a read made on November 22, 2026:

{
  "exists": true,
  "username": "tiktok",
  "platform": "tiktok",
  "followers": 97056999,
  "followers_rounded": 97100000,
  "is_exact": true,
  "following": 2,
  "likes": 469756897,
  "videos": 1520,
  "id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
  "created_at": "2015-02-28T17:22:29Z",
  "fetched_at": "2026-11-22T23:52:55Z"
}

The full response has more fields (bio, avatar, verified and others). These are the ones that matter here:

Why the exact count matters for growth

The profile page for that account shows 97.1M. The API returned 97,056,999. A rounded figure of 97.1M does not move while the account gains or loses tens of thousands of followers, which means a tracker built on the displayed number reports zero growth for days and then a sudden jump when the rounding flips.

The effect is the same at every size, only the scale changes. An account shown as 12.4K covers a range of a hundred followers. If a creator gains 40 followers a day, the displayed number moves once every two or three days and tells you nothing in between. With followers and is_exact: true you see every one of those days.

Step 2: a table for snapshots

One row per reading. SQLite is enough for thousands of accounts.

CREATE TABLE IF NOT EXISTS snapshots (
  account_id TEXT    NOT NULL,
  username   TEXT    NOT NULL,
  followers  INTEGER NOT NULL,
  likes      INTEGER,
  videos     INTEGER,
  fetched_at TEXT    NOT NULL,
  PRIMARY KEY (account_id, fetched_at)
);

The key is account_id, filled with the id from the response, not the username. Creators rename their accounts, and a history keyed by handle breaks in two the day that happens.

Step 3: the tracker script

Save as track.py. It reads each handle, writes one row per account and prints what it stored.

import os
import sqlite3
import sys
import time

import requests

API = "https://api.sociallens.dev/v1/profile"
KEY = os.environ["SOCIALLENS_KEY"]
DB = os.environ.get("TRACKER_DB", "tiktok_growth.db")
HANDLES = ["tiktok", "nasa"]

SCHEMA = """
CREATE TABLE IF NOT EXISTS snapshots (
  account_id TEXT    NOT NULL,
  username   TEXT    NOT NULL,
  followers  INTEGER NOT NULL,
  likes      INTEGER,
  videos     INTEGER,
  fetched_at TEXT    NOT NULL,
  PRIMARY KEY (account_id, fetched_at)
)
"""


def read_tiktok(handle):
    """One live profile read. Retries the statuses that mean 'try again shortly'."""
    for _ in range(3):
        r = requests.get(
            API,
            params={"platform": "tiktok", "username": handle},
            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()


def main():
    db = sqlite3.connect(DB)
    db.execute(SCHEMA)
    for handle in HANDLES:
        status, data = read_tiktok(handle)
        if status != 200:
            print(f"{handle}: {status} {data.get('error')}", file=sys.stderr)
            continue
        if not data["exists"]:
            print(f"{handle}: not found (renamed or removed?)", file=sys.stderr)
            continue
        db.execute(
            "INSERT OR IGNORE INTO snapshots VALUES (?, ?, ?, ?, ?, ?)",
            (data["id"], data["username"], data["followers"],
             data["likes"], data["videos"], data["fetched_at"]),
        )
        print(f"{data['username']}: {data['followers']:,} followers at {data['fetched_at']}")
    db.commit()


if __name__ == "__main__":
    main()

Two runs of that script, 25 seconds apart, printed this:

tiktok: 97,059,056 followers at 2026-11-23T00:06:13Z
nasa: 2,217,419 followers at 2026-11-23T00:06:15Z
tiktok: 97,057,206 followers at 2026-11-23T00:06:38Z
nasa: 2,217,420 followers at 2026-11-23T00:06:40Z

The loop is sequential on purpose. Reads for the same API account are processed one at a time, so parallel requests do not finish sooner and can return 409 account_busy. Errors are skipped instead of stopping the run, and nothing is charged for them: only a successful read costs a credit.

Step 4: run it on a schedule

A daily reading at a fixed hour is the standard setup. With cron:

0 9 * * * SOCIALLENS_KEY=sk_live_YOUR_KEY /usr/bin/python3 /opt/tracker/track.py >> /var/log/tracker.log 2>&1

Keep the hour constant. Growth per day is only comparable when the readings are about 24 hours apart. If you are following a launch or a campaign, an hourly schedule works with the same script, since every call is a live read.

Step 5: compute the growth

With two or more rows per account, a window function gives the gain between consecutive readings. Save as growth.py.

import sqlite3

db = sqlite3.connect("tiktok_growth.db")
rows = db.execute("""
    SELECT username,
           fetched_at,
           followers,
           followers - LAG(followers) OVER (
               PARTITION BY account_id ORDER BY fetched_at
           ) AS gained
    FROM snapshots
    ORDER BY username, fetched_at
""").fetchall()

for username, fetched_at, followers, gained in rows:
    change = "first reading" if gained is None else f"{gained:+,}"
    print(f"{username:<12} {fetched_at}  {followers:>12,}  {change}")

Output for the two runs above:

nasa         2026-11-23T00:06:15Z     2,217,419  first reading
nasa         2026-11-23T00:06:40Z     2,217,420  +1
tiktok       2026-11-23T00:06:13Z    97,059,056  first reading
tiktok       2026-11-23T00:06:38Z    97,057,206  -1,850

For a report over a period, compare the first and the last reading inside the window:

WITH win AS (
  SELECT username,
         FIRST_VALUE(followers) OVER w AS start_followers,
         LAST_VALUE(followers)  OVER w AS end_followers
  FROM snapshots
  WHERE fetched_at >= strftime('%Y-%m-%dT%H:%M:%SZ', 'now', '-30 days')
  WINDOW w AS (PARTITION BY account_id ORDER BY fetched_at
               ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
)
SELECT DISTINCT username,
       start_followers,
       end_followers,
       end_followers - start_followers AS gained,
       ROUND(100.0 * (end_followers - start_followers) / start_followers, 3) AS growth_pct
FROM win;

Reading the numbers: noise on very large accounts

Look at the output again. In 25 seconds the account with 2.2 million followers moved by +1, which is plausible real growth. The account with 97 million moved by -1,850, and it did not lose 1,850 followers in 25 seconds. On accounts of that size the counter TikTok serves varies by a few thousand from one read to the next, because the number is assembled from many servers that are not perfectly in sync.

This is a property of the source, and any tracker has to account for it:

Mistakes that break growth data

Beyond the count: likes, videos and posting pace

The same row stores likes and videos, which turns the tracker into more than a follower chart:

For per video numbers, /v1/profile-posts?platform=tiktok&username=HANDLE returns the recent videos with likes, views, comments and shares for each, and /v1/post reads a single video by URL. Both are described in How to Get Likes, Views and Comments for Any Post by URL.

Who the followers are: the TikTok follower list

TikTok is the one network where the follower list itself is available, through /v1/followers (and /v1/following for the accounts a profile follows).

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

The response is one page of 50 users, plus the account's total and a cursor for the next page. In this sample the user values are replaced with placeholders, the structure is as returned:

{
  "exists": true,
  "username": "tiktok",
  "platform": "tiktok",
  "total": 97069960,
  "count": 50,
  "has_more": true,
  "next_cursor": "1795391993",
  "users": [
    {
      "username": "example_user",
      "nickname": "Example User",
      "user_id": "7600000000000000000",
      "sec_uid": "MS4wLjABAAAA...",
      "verified": false,
      "followers": 37,
      "following": 2238,
      "posts": 0,
      "region": "AR",
      "avatar": "https://p16-common-sign.tiktokcdn-eu.com/...",
      "signature": ""
    }
  ],
  "fetched_at": "2026-11-23T00:01:56Z"
}

Pass next_cursor as cursor on the next call to page forward. Each page is one credit. A sample of a few pages is usually enough to answer questions like "which regions do the newest followers come from" or "how many of them have no posts and follow thousands of accounts". For any other network the list is not public, and /v1/followers answers 501 platform_not_available without charging.

How many reads a tracker uses

The arithmetic is one read per account per reading. A daily tracker for 8 accounts uses 8 reads a day, about 248 a month. A new SocialLens account starts with 250 free reads and no card, so that setup runs for a month before it costs anything. Failed reads (429, 503 and the other error statuses) are not charged, so retries do not eat into the balance.

Tracking other networks with the same code

Nothing in the design is specific to TikTok. Add a platform column to the table, pass a different platform to the endpoint, and the same followers, id and fetched_at fields come back for Instagram, YouTube, Facebook, X, LinkedIn, Threads and Pinterest. One difference to plan for: YouTube only publishes a rounded subscriber count, so the response has is_exact: false and the series moves in steps. The list of networks and what each returns is in Follower Count API.

Frequently asked questions

Does TikTok have an API for follower history?

Not for arbitrary public accounts. TikTok shows growth to the account owner inside its own analytics, and its official APIs return follower counts for accounts that authorized your app. For any other account, history comes from storing your own readings over time.

How often should I read the count?

Once a day at a fixed hour is enough for growth reports. Hourly readings make sense during a campaign or a launch. Every read is live, so the interval is your choice.

Is the TikTok follower count from the API exact?

Yes. The API returns the full number as an integer with is_exact: true, and also followers_rounded with the figure the profile page displays.

What happens if the creator changes their username?

Reads are made by handle, so a read with the old handle starts returning exists: false. Update the handle in your list and keep going: the id in the response is the same as before, so the history continues in the same series.

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

Yes, on TikTok only. /v1/followers returns the list in pages of 50 with a cursor, one credit per page.

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