Auto Updating Media Kit: Live Follower Counts by API (2026)
Last updated and prices verified: .
A media kit updates itself when a scheduled job reads the creator's public numbers and writes them to a small JSON file that the page loads. With SocialLens (sociallens.dev), one GET request per network returns the follower count and a second one returns the recent posts with likes, views and comments, with no login from the creator. A new account starts with 250 free reads and no card.
This page shows the two reads with real responses, a Python job that builds the file, the snippet that prints it on the page, what a public media kit can and cannot show, the cost per creator, and when a product such as Beacons or Phyllo is the better choice.
How an auto updating media kit works
- A job runs once a day on your server. It reads each network and computes the averages.
- It writes
mediakit.jsonnext to the page. If a read fails, it keeps the previous value, so the kit never shows a blank. - The page loads that file. The browser never calls the API, so the API key stays on the server.
This fits a creator's own site and it fits a platform that hosts media kits for many creators. The only input is the handle on each network.
The two reads behind the numbers
The profile read returns the follower count:
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, trimmed to the fields a media kit uses:
{
"exists": true,
"username": "mkbhd",
"platform": "instagram",
"nickname": "Marques Brownlee",
"verified": true,
"private": false,
"followers": 5298235,
"is_exact": true,
"following": 590,
"videos": 2126,
"bio": "I promise I won't overdo the filters.",
"external_link": "https://mkbhd.com/",
"fetched_at": "2026-11-29T03:05:17Z"
}
The posts read returns one page of recent posts with their counters:
curl -G "https://api.sociallens.dev/v1/profile-posts" \
--data-urlencode "platform=instagram" \
--data-urlencode "username=mkbhd" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Real response, trimmed to two of the ten posts, with captions left out:
{
"exists": true,
"username": "mkbhd",
"platform": "instagram",
"count": 10,
"has_more": true,
"posts": [
{
"id": "DgQSOpsltN8",
"url": "https://www.instagram.com/p/DgQSOpsltN8/",
"published_at": "2026-11-27T18:06:27Z",
"likes": 197502,
"views": null,
"comments": 2225,
"shares": null,
"likes_hidden": false
},
{
"id": "DgOeKHZN_xd",
"url": "https://www.instagram.com/p/DgOeKHZN_xd/",
"published_at": "2026-11-27T01:28:19Z",
"likes": 8836,
"views": 441191,
"comments": 60,
"shares": null,
"likes_hidden": false
}
],
"fetched_at": "2026-11-29T03:05:26Z"
}
The first post is a photo, so views is null. The second is a video and has a view count. An average of views has to skip the null values, which the code below does.
Python: build mediakit.json
import json
import os
from datetime import datetime, timezone
import requests
API = "https://api.sociallens.dev/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SOCIALLENS_KEY']}"}
ACCOUNTS = [("instagram", "mkbhd"), ("tiktok", "mkbhd"), ("youtube", "mkbhd")]
def get(path, **params):
r = requests.get(f"{API}/{path}", params=params, headers=HEADERS, timeout=90)
return r.json() if r.status_code == 200 else None
def average(values):
values = [v for v in values if v is not None]
return round(sum(values) / len(values)) if values else None
def network_block(platform, username):
profile = get("profile", platform=platform, username=username)
if not profile or not profile["exists"]:
return None
block = {
"platform": platform,
"username": profile["username"],
"followers": profile["followers"],
"followers_exact": profile["is_exact"],
"verified": profile["verified"],
}
posts = get("profile-posts", platform=platform, username=username)
if posts and posts.get("posts"):
items = posts["posts"]
block["posts_sampled"] = len(items)
block["avg_views"] = average([p["views"] for p in items])
block["avg_likes"] = average([p["likes"] for p in items])
block["avg_comments"] = average([p["comments"] for p in items])
return block
def main():
try:
with open("mediakit.json") as f:
previous = {n["platform"]: n for n in json.load(f)["networks"]}
except FileNotFoundError:
previous = {}
networks = []
for platform, username in ACCOUNTS:
block = network_block(platform, username) or previous.get(platform)
if block:
networks.append(block)
kit = {"updated_at": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
"total_followers": sum(n["followers"] for n in networks),
"networks": networks}
with open("mediakit.json", "w") as f:
json.dump(kit, f, indent=2)
print(json.dumps(kit, indent=2))
if __name__ == "__main__":
main()
The file it wrote when we ran it, six reads in total:
{
"updated_at": "2026-11-29T03:14:27Z",
"total_followers": 29142171,
"networks": [
{
"platform": "instagram",
"username": "mkbhd",
"followers": 5298229,
"followers_exact": true,
"verified": true,
"posts_sampled": 10,
"avg_views": 2293169,
"avg_likes": 83375,
"avg_comments": 927
},
{
"platform": "tiktok",
"username": "mkbhd",
"followers": 2343942,
"followers_exact": true,
"verified": true,
"posts_sampled": 10,
"avg_views": 1131973,
"avg_likes": 53030,
"avg_comments": 711
},
{
"platform": "youtube",
"username": "mkbhd",
"followers": 21500000,
"followers_exact": false,
"verified": true,
"posts_sampled": 10,
"avg_views": 8433967,
"avg_likes": 125236,
"avg_comments": 9090
}
]
}
followers_exact is false on YouTube because YouTube publishes a rounded subscriber count. A good kit says "21.5M subscribers" there and does not pretend to more digits. To run the job every morning, one cron line is enough:
0 6 * * * cd /var/www/kit && SOCIALLENS_KEY=sk_live_YOUR_KEY python3 build_kit.py
Show it on the page
<div id="kit"></div>
<script>
fetch("/mediakit.json").then((r) => r.json()).then((kit) => {
const fmt = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 1 });
document.getElementById("kit").innerHTML = kit.networks.map((n) =>
`<p><strong>${n.platform}</strong> @${n.username}: ${fmt.format(n.followers)} followers` +
(n.avg_views ? `, ${fmt.format(n.avg_views)} average views` : "") + `</p>`
).join("") + `<small>Updated ${kit.updated_at.slice(0, 10)}</small>`;
});
</script>
Printing the date next to the numbers is what makes a brand trust them. A kit that says "updated today" is worth more than a PDF from three months ago.
Node: followers only
If the kit shows only follower counts, three reads are enough.
import { writeFile } from "node:fs/promises";
const ACCOUNTS = [["instagram", "mkbhd"], ["tiktok", "mkbhd"], ["youtube", "mkbhd"]];
async function followers(platform, username) {
const url = new URL("https://api.sociallens.dev/v1/profile");
url.search = new URLSearchParams({ platform, username });
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SOCIALLENS_KEY}` } });
if (res.status !== 200) return null;
const p = await res.json();
return p.exists ? { platform, username: p.username, followers: p.followers, exact: p.is_exact } : null;
}
const networks = [];
for (const [platform, username] of ACCOUNTS) {
const row = await followers(platform, username);
if (row) networks.push(row);
}
const kit = { updated_at: new Date().toISOString(), networks };
await writeFile("followers.json", JSON.stringify(kit, null, 2));
console.log(kit);
Details that make the kit credible
- Show the sample size. "Average of the last 10 posts" is a claim a brand can check. A bare average is not.
- Do not mix exact and rounded numbers silently. Use
followers_exactto decide how many digits to print. - Keep the history. Append each day of
total_followersto a file and you can show a growth chart after a few weeks. The API has no history of its own, so the chart starts on the day your job starts. - Confirm the handle belongs to the creator. On a platform, anyone can type a famous handle. A bio code check solves it, see Verify Social Media Account Ownership Without OAuth.
- Serve a static file. The page reads
mediakit.json, so a traffic spike on the kit costs no reads.
What a public media kit can and cannot show
| Metric | Available | Note |
|---|---|---|
| Followers or subscribers | Yes | Instagram, TikTok, YouTube, X, Facebook, Threads and Pinterest. Exact on most. YouTube publishes a rounded number |
| Average views of recent posts | Yes, where the network shows views | On Instagram only video posts have views. Threads shows none |
| Average likes and comments | Yes | From one page of recent posts, about ten |
| Verification badge | Yes | Read from the public profile. Not reliable on Facebook |
| Audience age, gender and country | No | Private data. Only the creator's own insights have it |
| Reach, impressions and story views | No | Private data |
| Link clicks and sales | No | They live in the creator's link and store tools |
Be direct about this with brands. A kit built on public reads proves the numbers anyone could check, kept fresh without work. It does not replace a screenshot of audience insights when a brand asks for demographics.
Cost per creator
Each creator on three networks costs six reads per refresh: three profiles and three pages of posts. Refreshed daily, that is 180 reads a month.
- One creator: about $0.43 a month at the Starter rate. One $19 pack lasts more than three years.
- A platform with 1,000 creators: 180,000 reads a month, which is the Scale pack, $299. That is about $0.30 per creator per month.
- A cheaper schedule: follower counts move every day, averages do not. Read profiles daily and posts once a week and the same creator costs about 103 reads a month.
For a roster of 20 creators refreshed daily, 3,600 reads a month, with prices read on each vendor's own page on November 29, 2026:
| Route | Networks | Smallest purchase | Cost of 3,600 reads | Free allowance |
|---|---|---|---|---|
| SocialLens (sociallens.dev) | 9, one response shape | $19 for 8,000 reads, prepaid, never expires | $8.55 at the Starter rate | 250 reads, one time, no card |
| SociaVault | Many, listed on its site | $29 for 6,000 credits | $17.40, at 1 credit per request on most endpoints | 50 credits |
| Apify, one Actor per network | Instagram, TikTok, YouTube | Pay per result on your Apify plan | From $1.60 to $2.40 per 1,000 results, with a different output per Actor | Depends on your Apify plan |
| EnsembleData | 8 platforms | $100 a month for 1,500 units a day | $100, the smallest paid plan | A free plan with 50 units a day |
| Data365 | 3 networks on the Standard plan | €850 a month | €850, because Basic covers one network | A trial on request |
How to read this table:
- For a creator or a small roster, the prepaid pack wins. The workload is tiny and it must not cost a monthly fee. Credits that never expire mean a quiet month costs nothing.
- On Instagram alone, the Apify Actor has a lower unit price. A kit with three networks then needs three Actors and three output formats. One response shape is what keeps the job at fifty lines.
- For a data team reading millions of profiles a month, a subscription costs less per read. That is not a media kit workload.
When to use Beacons, Phyllo or the official APIs instead
- You are a creator and want a finished page today. Beacons offers an auto updating media kit that fills in stats from the accounts you connect. No code, and the page is hosted for you.
- Brands ask for audience demographics. That data is private, so the creator has to log in and authorize it. Products built on a connect flow, such as Phyllo for platforms, exist for that. Its prices are on request.
- You only need your own account on one network. The official API of that network returns your own insights, with an app and a review process per network.
A common setup uses both: public reads for the numbers at the top of the kit, for every creator, with no onboarding step, and a connect flow only for the creators who need to show demographics.
Frequently asked questions
How do I make a media kit update automatically?
Run a daily job that reads the follower count and recent posts of each network and writes them to a JSON file, then load that file on the page. The Python script on this page does it with SocialLens (sociallens.dev) in about fifty lines.
Does the creator have to connect their accounts?
No. The reads use public profiles, so the only input is the handle. That is also the limit: only public numbers are available.
Can the kit show audience demographics?
No. Age, gender and country of the audience are private insights. Show them from a screenshot or from a tool where the creator logs in.
How fresh are the numbers?
Each read returns the number the network shows at that moment. With a daily job the kit is never more than a day old, and updated_at says when.
What happens if a read fails?
The script keeps the block from the previous run for that network, so the page never shows an empty number. Failed reads are not billed.
What does it cost?
One read is one credit. A creator on three networks, refreshed daily with post averages, uses 180 reads a month, about $0.43 at the Starter rate. A new account includes 250 free reads.
Related guides
- Engagement rate API for indie influencer apps
- How to get likes, views and comments for any post by URL
- YouTube Subscriber Count API: why the number is rounded
- Track follower counts in Google Sheets with Apps Script
- n8n workflow: follower count tracker for 9 networks
- Verify social media account ownership without OAuth
- Social Blade API alternative: build your own history
- Verify TikTok views for payouts via API
- NIL follower count API: prove an athlete's audience