Influencer Tracking API: Automate Growth Monitoring (2026)
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:
- The key is the account plus the day. Running it twice in a day replaces the row and does not duplicate it.
- A failed read writes nothing. Tomorrow's run fills tomorrow's row. A zero that nobody read never enters the table.
- The
idis stored. If a creator renames the account, the old handle comes back as not found. The storedidlets you recognize the same account under its new handle. - The medians come from the posts that have the counter. Photos have no views, so they are left out of the median of views.
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:
DROPwhen the count fell 1 percent or more since the last snapshot, andSPIKEwhen it rose 2 percent or more. Both are starting points. Tune them to the size of the accounts you track.QUIETwhen none of the posts read was published in the last 7 days.roundedon YouTube, where the subscriber count is published rounded. A large channel shows the same number for days and then jumps.NOT_FOUNDorPRIVATEwhen the account stopped answering as a public profile.
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
- There is no backfill. No public read returns last month's number. The history starts on the day your job starts.
- Read at the same hour. A daily change only means one day if the reads are about 24 hours apart.
- Lists are not strictly newest first. The posts come in the order the network shows them, and pinned posts can come first. Use
published_atandid, never the position. - Counters keep moving. The newest post is still collecting views. For a stable campaign report, read the post again after a few days. A single post can be read by URL with
/v1/post. - Hidden likes are not zero. When the owner hides the counts,
likesisnullandlikes_hiddenistrue. - Stories and private insights are out of reach. Reach, impressions, story views and audience data are not public, so no public data API returns them.
- Large rosters. The limit is 60 requests per minute per key, and parallel requests on the same key are supported.
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:
- If you can run a script, the reads are the small part of the bill. A hundred creators cost $14.25 a month, about 14 cents each, and a weekly schedule costs a seventh of that.
- If nobody on the team writes code, Modash is the product. You pay for the interface, the creator database and the tracking that runs without you.
- If you only track YouTube channels, the official API is free. Store the rows the same way.
- If you track tens of thousands of creators every day, a subscription costs less per read. That is a platform, not a team watching its roster.
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
- You want tracking without code. Modash and HypeAuditor include campaign and content tracking in their plans, with dashboards and reports. HypeAuditor's Basic plan starts at $299 a month, billed annually.
- You need the past. Social Blade has years of history for the accounts it follows. Your own table starts today. The trade is explained in Social Blade API Alternative.
- You need to find the creators first. A tracker follows handles you already have. Discovery by niche and audience needs a creator database.
- You need private numbers. Reach, story views and audience demographics come only from the creator's own login, through the network's official API or a connection product.
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.
Related guides
- Social Blade API alternative: build your own history
- How to track TikTok follower growth programmatically
- Engagement rate API for indie influencer apps
- Verify TikTok views for payouts via API
- n8n workflow: follower count tracker for 9 networks
- Track follower counts in Google Sheets with Apps Script
- How to get likes, views and comments for any post by URL
- YouTube Subscriber Count API: why the number is rounded
- Creator prospecting API: qualify a list by followers
- NIL follower count API: prove an athlete's audience