Engagement Rate API for Indie Influencer Apps: Live Instagram, TikTok and YouTube Metrics Without a Modash Contract (2026)
Last updated and prices verified: .
An engagement rate API for an indie influencer app needs two reads per creator: the profile, for the follower count, and the recent posts, for likes, comments and views. SocialLens returns both as JSON for Instagram, TikTok and YouTube, live at the moment of the call, with pay as you go credits, no contract and no sales call. It is not a replacement for the Modash API: it has no creator search and no audience demographics. It covers the part many small apps need, which is live public metrics for handles they already have, starting at $19 and not at an annual contract.
This page shows the formula with real responses, a script that was run as shown, when to use Modash or HypeAuditor instead, and the monthly cost of vetting 2,000 creators on each option.
Engagement rate from two API calls: creator profile and recent posts
The formula is short. The work is getting honest inputs.
interactions of a post = likes + comments (+ shares, where the network publishes them)
engagement rate by followers = interactions / followers * 100
engagement rate by views = interactions / views * 100
engagement rate of a creator = the median of that rate over the last N posts
Call 1, the profile. It gives the follower count.
curl "https://api.sociallens.dev/v1/profile?platform=instagram&username=mkbhd" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Real response, read on November 25, 2026. Timestamps in the responses are UTC. The bio, the avatar and a few other fields are left out:
{
"exists": true,
"username": "mkbhd",
"platform": "instagram",
"nickname": "Marques Brownlee",
"verified": true,
"private": false,
"followers": 5296585,
"followers_rounded": 5296585,
"is_exact": true,
"following": 590,
"fetched_at": "2026-11-26T00:58:19Z"
}
Call 2, the recent posts. It gives the counters of each post.
curl "https://api.sociallens.dev/v1/profile-posts?platform=instagram&username=mkbhd&limit=12" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Real response with the first 2 of 12 posts. Captions are left out:
{
"exists": true,
"username": "mkbhd",
"platform": "instagram",
"private": false,
"count": 12,
"has_more": true,
"is_exact": true,
"posts": [
{
"id": "DgGVYfLtqm2",
"url": "https://www.instagram.com/p/DgGVYfLtqm2/",
"published_at": "2026-11-23T21:22:45Z",
"likes": 20262,
"views": null,
"comments": 144,
"shares": null,
"likes_hidden": false
},
{
"id": "Df7Tj_SBR2c",
"url": "https://www.instagram.com/p/Df7Tj_SBR2c/",
"published_at": "2026-11-19T14:35:30Z",
"likes": 49006,
"views": 1310832,
"comments": 756,
"shares": null,
"likes_hidden": false
}
],
"fetched_at": "2026-11-26T00:58:23Z"
}
These are the 12 posts that call returned, with the rate of each one against 5,296,585 followers:
| Published | Likes | Comments | Views | Engagement by followers |
|---|---|---|---|---|
| Nov 23 | 20,262 | 144 | none | 0.39% |
| Nov 19 | 49,006 | 756 | 1,310,832 | 0.94% |
| Oct 28 | 98,561 | 2,265 | 3,189,470 | 1.90% |
| Oct 27 | 34,339 | 392 | 1,181,277 | 0.66% |
| Oct 27 | 23,392 | 236 | 1,493,232 | 0.45% |
| Oct 21 | 256,769 | 1,417 | 5,829,157 | 4.87% |
| Oct 2 | 52,109 | 579 | 2,071,707 | 0.99% |
| Sep 14 | 87,790 | 1,141 | 2,709,064 | 1.68% |
| Sep 9 | 1,139,488 | 13,663 | 31,224,543 | 21.77% |
| Sep 9 | 129,742 | 695 | none | 2.46% |
| Aug 25 | 348,345 | 2,291 | 6,575,395 | 6.62% |
| Aug 18 | 30,979 | 176 | none | 0.59% |
The mean of the last column is 3.61%. The median is 1.34%. One video from September 9, with 1.1 million likes, pulls the mean to almost three times the median. For vetting a creator, the median is the figure that describes a typical post, so that is the one to show by default. Keep the mean next to it if your users want it: the gap between the two is a signal on its own.
The script, run as shown
This computes the rate by followers (mean and median) and by views (median) for the recent posts of a creator on three networks. It is complete: set SOCIALLENS_KEY and run it.
import os
import statistics
import time
import requests
BASE = "https://api.sociallens.dev/v1"
KEY = os.environ["SOCIALLENS_KEY"]
def get(path, **params):
for _ in range(3):
r = requests.get(f"{BASE}/{path}", params=params,
headers={"Authorization": f"Bearer {KEY}"}, timeout=90)
if r.status_code in (409, 429, 503): # busy, rate limited or source down: not charged
time.sleep(int(r.headers.get("Retry-After", 5)))
continue
break
r.raise_for_status()
return r.json()
def engagement(platform, username, limit=12):
profile = get("profile", platform=platform, username=username) # call 1
page = get("profile-posts", platform=platform, username=username, limit=limit) # call 2
followers = profile["followers"]
by_followers, by_views = [], []
for post in page["posts"]:
if post["likes"] is None: # hidden by the owner: leave it out, never count it as 0
continue
interactions = post["likes"] + (post["comments"] or 0) + (post["shares"] or 0)
by_followers.append(100 * interactions / followers)
if post["views"]:
by_views.append(100 * interactions / post["views"])
def stat(values, fn):
return round(fn(values), 2) if values else None
return {
"platform": platform,
"username": profile["username"],
"followers": followers,
"exact": profile["is_exact"],
"posts_used": len(by_followers),
"er_followers_mean": stat(by_followers, statistics.mean),
"er_followers_median": stat(by_followers, statistics.median),
"er_views_median": stat(by_views, statistics.median),
}
for platform in ("instagram", "tiktok", "youtube"):
print(engagement(platform, "mkbhd"))
Output:
{'platform': 'instagram', 'username': 'mkbhd', 'followers': 5296586, 'exact': True, 'posts_used': 12, 'er_followers_mean': 3.61, 'er_followers_median': 1.34, 'er_views_median': 3.28}
{'platform': 'tiktok', 'username': 'mkbhd', 'followers': 2343472, 'exact': True, 'posts_used': 10, 'er_followers_mean': 2.53, 'er_followers_median': 2.31, 'er_views_median': 6.43}
{'platform': 'youtube', 'username': 'mkbhd', 'followers': 21500000, 'exact': False, 'posts_used': 12, 'er_followers_mean': 0.59, 'er_followers_median': 0.53, 'er_views_median': 1.23}
The script ran a few minutes after the two calls above, and the Instagram follower count had moved from 5,296,585 to 5,296,586. The reads are live, not served from a stored index.
The same creator on three networks:
| Network | Followers | Posts used | Engagement by followers, median | Engagement by followers, mean | Engagement by views, median |
|---|---|---|---|---|---|
| 5,296,586 | 12 | 1.34% | 3.61% | 3.28% | |
| TikTok | 2,343,472 | 10 | 2.31% | 2.53% | 6.43% |
| YouTube | 21,500,000, rounded by YouTube | 12 | 0.53% | 0.59% | 1.23% |
Notes on using the result:
- Two calls per creator per network, so 2 credits. One call returns one page of recent posts (12 on Instagram, 10 on TikTok and 12 on YouTube in this run). The
limitparameter goes from 1 to 50 and only trims the page: it does not fetch more pages. - Compare like with like. Engagement by followers falls as accounts grow, so compare creators of similar size, on the same network, with the same definition.
- Shares are not published everywhere. TikTok returns
shares. Instagram and YouTube returnnull, so interactions there are likes plus comments. - Views exist only on video. On Instagram, photos have
views: null, so the rate by views is computed on reels and videos only. - YouTube rounds two inputs. The subscriber count is published rounded and comes with
is_exact: false, and the comment count of each video is the rounded figure YouTube shows. Likes and views are exact. - Hidden likes are not zero. When the owner hides the counts,
likesisnullandlikes_hiddenistrue. Leave the post out. - The newest post is still collecting. The first YouTube video in this run was published the same day. For a stable figure, skip posts from the last day or two.
- Other networks. The same two calls work on X, Facebook, Threads and Pinterest. LinkedIn posts come without counters and Reddit has no follower count, so this rate does not apply there.
What each counter means on each network, with more real responses, is in How to Get Likes, Views and Comments for Any Post by URL. The endpoint references are Instagram API, TikTok API and YouTube API.
When to use Modash or HypeAuditor instead
SocialLens reads public numbers for a handle you give it. That is all it does. Use an influencer data platform when your app needs any of the following, because SocialLens has none of them:
- Creator discovery. Modash lists more than 380 million creator profiles across Instagram, TikTok and YouTube, searchable with filters, and says it includes every public profile above 1,000 followers. HypeAuditor advertises a database of more than 200 million accounts. SocialLens has no database and no search: if you do not already have the handle, it cannot find the creator.
- Audience data. Age, gender and location of a creator's followers, fake follower checks and audience quality scores come from models these platforms run on their own indexed data. A public profile does not show them, so a public data API cannot return them.
- Ready made scores and history. They return a computed engagement rate, growth history and past brand collaborations. SocialLens returns raw counters at the moment of the call, and you compute and store the rest.
- Creator contact emails.
A simple test: if the core of your app is "find creators in a niche whose audience is women in Germany", you need Modash or HypeAuditor. If it is "show live numbers for the creators my user typed in, connected or imported", two public reads per creator are enough.
The trade is commitment. On its API pricing page, Modash sells the Discovery API from $16,200 a year and the Raw API from $10,000 a year, through a call with its team, and states that it has no monthly or pay as you go plan. HypeAuditor lists API access under "Contact sales".
Monthly cost to vet 2,000 creators: SocialLens, Scrape Creators, SociaVault and EnsembleData
The workload: 2,000 creators a month on one network, two requests each (profile and recent posts), so 4,000 requests. Prices were read on each vendor's own page on November 25, 2026.
| Option | What you get | How it is billed | Cost of this workload | Smallest way in |
|---|---|---|---|---|
| SocialLens | Live public counters on 9 networks. You compute the rate | 1 credit per delivered read. Prepaid packs that never expire | $9.50 at the Starter rate, $7.90 at the Pro rate | $19 pack of 8,000 reads. 250 free reads, no card |
| Scrape Creators | Live public counters on many platforms. You compute the rate | 1 credit per request on most endpoints. Packs that never expire | $7.52 at $1.88 per 1,000 | $47 pack of 25,000 credits. 100 free credits |
| SociaVault | Live public counters on 25+ platforms. You compute the rate | 1 credit per standard request. Packs that never expire | $19.33 at the Starter rate, $15.80 at the Growth rate | $29 pack of 6,000 credits. 50 free credits |
| EnsembleData | Live public data on 8 platforms. You compute the rate | Monthly subscription with a daily unit allowance | $100, the Wood plan with 1,500 units a day | $100 a month. Free trial with 50 units a day |
| Modash API | Creator database, audience data and computed metrics | Annual contract | From $833 a month (Raw API, $10,000 a year) or $1,350 a month (Discovery API, $16,200 a year) | A call with sales and a yearly commitment |
Three more names come up in this search, and none publishes a price. Upfluence quotes each plan and states a 12 month minimum contract. CreatorIQ publishes no price list: Vendr's procurement data puts the median buyer at $39,250 a year. HypeAuditor sells API access through its sales team.
How to read the table:
- SocialLens is not the cheapest per read. Scrape Creators is, at $1.88 per 1,000 against $1.98 to $2.38, and its $497 pack goes down to $0.99.
- SocialLens has the smallest paid entry, $19, and 250 free reads with no conditions, enough to vet 125 creators. Scrape Creators gives 100 credits on signup and more for tasks such as a review.
- EnsembleData is a flat fee. At this volume $100 a month is the highest price among the public data APIs here. It turns around at steady high volume: from its $200 plan up, using most of the daily allowance, a unit costs less than a SocialLens read. The numbers are in Data365 and EnsembleData Alternatives.
- None of the four public data APIs returns audience demographics. That is what the annual contracts pay for.
Where SocialLens fits: live metrics at the moment of the call, the same request on 9 networks, and no contract, subscription or minimum beyond a $19 pack.
Frequently asked questions
Is SocialLens an alternative to the Modash API?
Only for one part of it: live public metrics for creators whose handle you already have. It has no creator search, no audience demographics and no fake follower score. If you need those, Modash and HypeAuditor are the right tools.
How many API calls does an engagement rate take?
Two per creator per network: /v1/profile for the follower count and /v1/profile-posts for the counters of the recent posts. That is 2 credits.
Does the API return the engagement rate itself?
No. It returns the raw counters, and you apply the formula. That keeps the definition in your hands: by followers or by views, mean or median, with or without shares.
What is a good engagement rate?
There is no single threshold. The rate falls as accounts grow and differs by network, as the same creator shows above: 1.34% on Instagram, 2.31% on TikTok and 0.53% on YouTube, by followers. Compare creators of similar size on the same network, with the same definition.
How fresh are the numbers?
Each call reads the network at that moment. The fetched_at field carries the time in UTC.
Do I need the creator's login or permission?
No. A read needs only the public handle and your own SocialLens API key. Private accounts return no posts.
What does it cost to vet 2,000 creators a month?
4,000 reads: $7.90 at the Pro rate or $9.50 at the Starter rate. One $19 Starter pack covers it with 4,000 reads left, and credits never expire.
Can I compute engagement on TikTok and YouTube with the same code?
Yes. The request and the response fields are the same on every network. Only the platform parameter changes, as in the script above.
Related guides
- Social media followers count API for SMM panels
- Enrich a Clay table with follower counts
- Data365 and EnsembleData alternatives
- Social media data API for academic research
- Track follower counts in Google Sheets with Apps Script
- Verify an affiliate applicant's social media followers
- n8n workflow: follower count tracker for 9 networks