Influencer Tracking API: Automate Growth Monitoring (2026)

Published · 8 min read

Last updated and prices verified: .

Influencer tracking by API is a scheduled job: every day it reads each creator's profile and recent posts, stores a snapshot, and compares it with the previous one. SocialLens (sociallens.dev) provides the two reads behind it, the follower count and the recent posts with their counters, for Instagram, TikTok, YouTube, X, Facebook and Threads, with one request format and one API key. It returns the numbers of the moment. It does not store history and it has no tracking dashboard: the history is the table your job fills, starting on the day it first runs. A new account includes 250 free reads and no card.

This page has the two reads with real responses, a Python tracker with SQLite, a digest that flags drops, spikes and quiet weeks, a Node alert for new posts, the cost for a roster of 100 creators and the cases where a platform such as Modash is the better choice.

What a tracker has to watch

Signal Where it comes from What it tells you
Follower count and its change followers in the profile read Growth, and sudden drops
New posts id and published_at in the recent posts read Whether the creator posted, and when
Views and likes of recent posts The counters of each post Whether the content is performing as usual
Account state exists and private A handle that vanished or an account that went private
The account behind the handle id in the profile read The same account after a rename

The two reads

Read 1, the profile.

curl -G "https://api.sociallens.dev/v1/profile" \
  --data-urlencode "platform=instagram" \
  --data-urlencode "username=mkbhd" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Real response, read on November 29, 2026, with the avatar, the bio, the cache flags, the fields that came back empty and the credits block left out:

{
  "exists": true,
  "username": "mkbhd",
  "platform": "instagram",
  "nickname": "Marques Brownlee",
  "verified": true,
  "private": false,
  "followers": 5298221,
  "is_exact": true,
  "following": 590,
  "videos": 2126,
  "id": "28943446",
  "external_link": "https://mkbhd.com/",
  "fetched_at": "2026-11-29T04:03:26Z"
}

Read 2, the recent posts.

curl -G "https://api.sociallens.dev/v1/profile-posts" \
  --data-urlencode "platform=instagram" \
  --data-urlencode "username=mkbhd" \
  --data-urlencode "limit=12" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

The first two posts of the real response. Captions are left out:

[
  {
    "id": "DgQSOpsltN8",
    "url": "https://www.instagram.com/p/DgQSOpsltN8/",
    "published_at": "2026-11-27T18:06:27Z",
    "likes": 197817,
    "views": null,
    "comments": 2229,
    "shares": null,
    "likes_hidden": false
  },
  {
    "id": "DgOeKHZN_xd",
    "url": "https://www.instagram.com/p/DgOeKHZN_xd/",
    "published_at": "2026-11-27T01:28:19Z",
    "likes": 8842,
    "views": 441652,
    "comments": 60,
    "shares": null,
    "likes_hidden": false
  }
]

The first is a photo post, so views is null. The second is a video. One call returns one page of posts and costs one credit.

Python: one snapshot per creator per day

import os
import sqlite3
import statistics
from datetime import datetime, timedelta, timezone

import requests

API = "https://api.sociallens.dev/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SOCIALLENS_KEY']}"}
ROSTER = [("instagram", "mkbhd"), ("tiktok", "mkbhd"), ("youtube", "mkbhd"),
          ("instagram", "ijustine"), ("youtube", "ijustine")]

db = sqlite3.connect("roster.db")
db.execute("""CREATE TABLE IF NOT EXISTS snapshots (
    platform TEXT, username TEXT, day TEXT, account_id TEXT, state TEXT,
    followers INTEGER, is_exact INTEGER,
    posts_7d INTEGER, median_likes INTEGER, median_views INTEGER,
    PRIMARY KEY (platform, username, day))""")

now = datetime.now(timezone.utc)
day = os.environ.get("SNAPSHOT_DAY", now.date().isoformat())
week_ago = (now - timedelta(days=7)).strftime("%Y-%m-%dT%H:%M:%SZ")


def read(endpoint, **params):
    r = requests.get(f"{API}/{endpoint}", params=params, headers=HEADERS, timeout=90)
    return r.json() if r.status_code == 200 else None


def median(values):
    values = [v for v in values if v is not None]
    return int(statistics.median(values)) if values else None


for platform, username in ROSTER:
    p = read("profile", platform=platform, username=username)
    if p is None:
        continue  # failed read: no row today, never a zero
    state = "not_found" if not p["exists"] else "private" if p["private"] else "ok"
    row = [platform, username, day, p.get("id"), state,
           p.get("followers"), int(bool(p.get("is_exact"))), None, None, None]
    if state == "ok":
        feed = read("profile-posts", platform=platform, username=username, limit=12)
        if feed and feed["exists"]:
            posts = feed["posts"]
            row[7] = sum(1 for x in posts if x["published_at"] and x["published_at"] >= week_ago)
            row[8] = median(x["likes"] for x in posts)
            row[9] = median(x["views"] for x in posts)
    db.execute("INSERT OR REPLACE INTO snapshots VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", row)
    print(day, platform, username, state, row[5], row[7], row[8], row[9])

db.commit()

The real output of the first run. The columns are the day, the network, the handle, the state, the followers, the posts published in the last 7 days, the median likes and the median views of the posts read:

2026-11-29 instagram mkbhd ok 5298224 3 70217 2076561
2026-11-29 tiktok mkbhd ok 2344100 0 48866 1067651
2026-11-29 youtube mkbhd ok 21500000 3 106238 8733145
2026-11-29 instagram ijustine ok 1635424 6 2699 95953
2026-11-29 youtube ijustine ok 7050000 1 4139 284223

How the script is built:

Ten reads took 53 seconds in our run. Schedule the job at the same hour every day:

15 5 * * * cd /srv/tracker && SOCIALLENS_KEY=sk_live_YOUR_KEY python3 tracker.py && python3 digest.py > digest.txt

The digest: what changed since the last snapshot

import sqlite3

db = sqlite3.connect("roster.db")
rows = db.execute("""
    SELECT a.username, a.platform, a.state, a.followers, a.is_exact,
           a.followers - b.followers AS delta,
           100.0 * (a.followers - b.followers) / b.followers AS pct,
           a.posts_7d, a.median_views, b.day
    FROM snapshots a
    LEFT JOIN snapshots b
      ON b.platform = a.platform AND b.username = a.username
     AND b.day = (SELECT MAX(day) FROM snapshots s
                  WHERE s.platform = a.platform AND s.username = a.username AND s.day < a.day)
    WHERE a.day = (SELECT MAX(day) FROM snapshots)
    ORDER BY a.username, a.platform""").fetchall()

for username, platform, state, followers, is_exact, delta, pct, posts_7d, views, since in rows:
    flags = []
    if state != "ok":
        flags.append(state.upper())
    if pct is not None and pct <= -1:
        flags.append("DROP")
    if pct is not None and pct >= 2:
        flags.append("SPIKE")
    if posts_7d == 0:
        flags.append("QUIET")
    if not is_exact:
        flags.append("rounded")
    pct_text = f"{pct:+.2f}%" if pct is not None and round(pct, 2) != 0 else "0.00%"
    change = f"{delta:>+8,} ({pct_text}) since {since}" if delta is not None else "first snapshot"
    views_text = f"{views:,}" if views is not None else "-"
    print(f"{username:<9} {platform:<10} {followers or 0:>11,}  {change:<38} "
          f"{posts_7d if posts_7d is not None else '-':>2} posts/7d  "
          f"median views {views_text:>10}  {' '.join(flags)}")

On the first day there is nothing to compare with:

ijustine  instagram    1,635,424  first snapshot                          6 posts/7d  median views     95,953
ijustine  youtube      7,050,000  first snapshot                          1 posts/7d  median views    284,223  rounded
mkbhd     instagram    5,298,224  first snapshot                          3 posts/7d  median views  2,076,561
mkbhd     tiktok       2,344,100  first snapshot                          0 posts/7d  median views  1,067,651  QUIET
mkbhd     youtube     21,500,000  first snapshot                          3 posts/7d  median views  8,733,145  rounded

To show the comparison without waiting a day, we ran the tracker again 25 minutes later with SNAPSHOT_DAY=2026-11-30. Both snapshots are real reads. The differences below are 25 minutes of change stored under two day labels, not a day of growth:

ijustine  instagram    1,635,421        -3 (0.00%) since 2026-11-29       6 posts/7d  median views     95,975
ijustine  youtube      7,050,000        +0 (0.00%) since 2026-11-29       1 posts/7d  median views    284,298  rounded
mkbhd     instagram    5,298,219        -5 (0.00%) since 2026-11-29       3 posts/7d  median views  2,076,578
mkbhd     tiktok       2,343,943      -157 (-0.01%) since 2026-11-29      0 posts/7d  median views  1,067,662  QUIET
mkbhd     youtube     21,500,000        +0 (0.00%) since 2026-11-29       3 posts/7d  median views  8,733,303  rounded

The flags:

Node: an alert when a creator posts

For a campaign you often need one thing: to know when the creator published. This script remembers the post ids it has seen and reports the new ones, to the terminal and to a webhook if you set one.

// Usage: node new_posts.mjs instagram mkbhd
import { readFile, writeFile } from "node:fs/promises";

const [platform, username] = process.argv.slice(2);
const stateFile = `seen-${platform}-${username}.json`;

const url = new URL("https://api.sociallens.dev/v1/profile-posts");
url.search = new URLSearchParams({ platform, username, limit: 12 });
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SOCIALLENS_KEY}` } });
if (res.status !== 200) process.exit(1); // failed read: keep the state, try on the next run
const feed = await res.json();
if (!feed.exists) process.exit(1);

let seen = [];
try {
  seen = JSON.parse(await readFile(stateFile, "utf8"));
} catch {}
const fresh = seen.length ? feed.posts.filter((p) => !seen.includes(p.id)) : [];

for (const p of fresh) {
  const text = `New ${platform} post by @${username}: ${p.url} (${p.likes ?? "hidden"} likes so far)`;
  console.log(text);
  if (process.env.ALERT_WEBHOOK) {
    await fetch(process.env.ALERT_WEBHOOK, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ text }),
    });
  }
}
if (!fresh.length) console.log(seen.length ? "No new posts." : `First run: remembering ${feed.posts.length} posts.`);

const ids = [...new Set([...seen, ...feed.posts.map((p) => p.id)])];
await writeFile(stateFile, JSON.stringify(ids));

Real output of two runs in a row:

$ node new_posts.mjs instagram mkbhd
First run: remembering 12 posts.

$ node new_posts.mjs instagram mkbhd
No new posts.

To see an alert without waiting for a post, we removed the two newest ids from the state file and ran it again, with the webhook pointed at a local listener:

$ ALERT_WEBHOOK=http://127.0.0.1:8799/hook node new_posts.mjs instagram mkbhd
New instagram post by @mkbhd: https://www.instagram.com/p/DgQSOpsltN8/ (197837 likes so far)
New instagram post by @mkbhd: https://www.instagram.com/p/DgOeKHZN_xd/ (8842 likes so far)

The listener received one JSON body per post, in the {"text": "..."} shape that Slack incoming webhooks accept. The script compares ids and not positions, so a pinned post at the top of the list does not hide a new one.

Details that keep the data honest

Cost to track 100 creators every day

Two reads per creator per day on one network is 6,000 reads a month. Prices were read on each vendor's own page on November 29, 2026.

Route What you get Smallest purchase Cost of this workload Free allowance
SocialLens (sociallens.dev) Today's numbers on 9 networks. You store the history and run the job $19 for 8,000 reads, prepaid, never expires $14.25 a month at the Starter rate, $11.85 at the Pro rate 250 reads, one time, no card
SociaVault Today's numbers. You store the history $29 for 6,000 credits, never expires $29.00 a month at the Starter rate, with most endpoints at 1 credit 50 credits
EnsembleData Today's numbers on 8 platforms. You store the history $100 a month for 1,500 units a day $100 a month 50 units a day
Modash A platform that tracks creators' content for you, with discovery and outreach Essentials at $199 a month, billed yearly The content of 100 creators is tracked on Essentials, 250 on Performance at $499 a month A free trial that tracks 10 creators
YouTube Data API Today's numbers, YouTube only Free $0 within the default quota 10,000 quota units a day by default

How to read this table:

Polling drives the cost. The new post alert above, run every hour for one creator, is 720 reads a month, or $1.71 at the Starter rate. Run it once a day and it is 7 cents.

When to use Modash, HypeAuditor or Social Blade instead

And when the build is the better choice: you have a fixed roster, on several networks, you want the numbers inside your own product, sheet or channel, and a few dollars a month is the budget.

Frequently asked questions

How do I track an influencer's follower growth automatically?

Read the profile once a day, store the follower count with the date, and subtract the previous value from the newest. The tracker and the digest on this page do that for a list of creators with SocialLens (sociallens.dev) and SQLite.

Does SocialLens (sociallens.dev) keep the history for me?

No. It returns the numbers at the moment of the read and has no history endpoint. The history is what your job stores, and it starts at your first read.

How do I know when a creator posts?

Read the recent posts on a schedule and compare the post ids with the ones you have already seen. The Node script on this page does that and can send each new post to a webhook.

Can I track creators who have not connected an account?

Yes. The reads use public profiles, so there is no login and no permission step. That is also why private data, such as reach, is not available.

How often should I read?

Once a day is enough for growth. For a live campaign, read the recent posts every hour on the days content is due. Each read is one credit, so the schedule sets the cost.

What does it cost?

One read is one credit: $0.0024 at the Starter rate. A creator tracked daily with two reads costs about 14 cents a month. A new SocialLens (sociallens.dev) account starts with 250 free reads.

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