Social Media Analytics API: One Schema, 17 Networks
Social Media Analytics API: One Schema, 17 Networks
A social media analytics API is the data layer underneath analytics. It returns structured public signals (followers, posts, likes, views, comments, shares) that you compute engagement, growth, and benchmarks from. SocialLens is a read-only analytics data API that covers 17 networks with one key and one identical JSON schema. It returns raw numbers, not charts, and you own the analytics layer.
Key facts
- SocialLens reads public data from 17 networks (TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub, Spotify) with one
sk_live_API key. - Every network returns the same field names (
followers,following,videos,is_exact,fetched_at), so one parser feeds your whole pipeline. - On 2026-12-04, Instagram @nasa read 104241747 followers (exact), TikTok @mrbeast 149219704 (exact), and YouTube @mkbhd 21500000 (rounded,
is_exact: false). - A real MrBeast TikTok video had 5683867 likes, 121697 comments, 696254 shares, and 27545701 views, which is a 23.60% engagement rate by views.
- SocialLens is read-only. It never logs in and never reads private accounts, DMs, or logged-in sessions.
Social media analytics API vs analytics dashboard
The phrase "social media analytics API" covers two different products, and choosing the wrong one costs weeks. One is a SaaS dashboard that also offers an API. The other is a data API built to feed your own dashboards, BI tools, and models.
Is a social media analytics API the same as a dashboard?
No. A dashboard computes metrics for you and shows charts, usually for accounts you own or a curated influencer database. A data API returns raw, structured public signals that you compute metrics from yourself. Pick a dashboard if you want answers today with no code. Pick a data API if you need custom metrics, your own storage, or an AI agent.
| Need | Analytics dashboard (SaaS) | Analytics data API (SocialLens) |
|---|---|---|
| Time to first chart | Minutes | An afternoon of code |
| Custom metric definitions | Limited to what the vendor computes | Anything you can compute from raw fields |
| Data ownership | Lives in the vendor's tool | Lands in your warehouse, CSV, or DataFrame |
| Feeds BI tools / AI models | Via export or a narrower API | Native, it is JSON |
| Accounts covered | Often your own accounts (via login) or a vendor database | Any public account on the 17 supported networks |
| Private metrics (reach, impressions, saves) | Yes, for owned accounts you connect | No. Public data only |
That last row is the honest limit. Reach, impressions, story views, and saves are private to the account owner. Only an owner-authorized integration (an official platform API with OAuth, or a creator-consent product) can read them. SocialLens does not, and will not, read them. If your report depends on impressions for your own brand account, use the official API for that account and a data API for everything public around it, such as competitors, creators, and benchmarks.
What "you own the analytics layer" means in practice
SocialLens returns likes, views, comments, and shares per post, plus profile counts. It does not return an "engagement score" because every team defines engagement differently. You decide the denominator (views or followers), the window (last 20 posts or last 90 days), and how to treat hidden like counts (likes_hidden). That control is the reason to choose a data API over a dashboard.
The three ways to get social media analytics data
Every analytics pipeline sources data in one of three ways. Most production teams combine them.
Official platform APIs
The X API, Meta's Instagram Graph API, the TikTok Research API, the YouTube Data API v3, the Reddit Data API, and the LinkedIn API are the sanctioned routes. They are the only way to get owner-private metrics, and they are the only route that also lets you publish.
The trade-offs for cross-network analytics are real:
- Six integrations, six schemas. YouTube calls it
subscriberCount, Instagram calls itfollowers_count, and each has its own auth, pagination, and error format. - Access gates. The Instagram Graph API needs app review and a Business or Creator account, and it reads other accounts only through Business Discovery. The TikTok Research API is limited to eligible researchers. LinkedIn's data access runs through partner programs.
- Quotas and paid tiers. The YouTube Data API v3 uses a daily quota-unit system. The X API uses paid access tiers. Check each pricing page because tiers change often.
- Rounding. The YouTube Data API returns abbreviated subscriber counts for public channels (see the
subscriberCountnotes in the channels resource docs). No API can give you the exact figure if the platform doesn't expose it.
Self-run scrapers
You can run your own headless browsers or rent scraping infrastructure from Apify (an Actor marketplace) or Bright Data (proxies, scraping APIs, and datasets). Coverage can be very broad. Bright Data and Apify together reach far more sites than 17 networks.
You pay in engineering time. Each target network has its own parser, its own breakage when the page markup changes, and its own output shape. Normalizing ten Actor outputs into one analytics schema is a project of its own. Running logged-in scrapers also moves you into much riskier legal and account-ban territory.
Read-only data APIs
A read-only data API handles collection and normalization and returns structured JSON. EnsembleData, HikerAPI (Instagram-focused), Data365, and SocialLens sit here, along with many single-network APIs listed on the RapidAPI marketplace. The differences are network coverage, schema consistency, precision flags, and pricing model.
SocialLens's position: 17 networks, one key, one identical schema, an explicit is_exact flag, an open source MCP server, and strictly public data.
The one-schema advantage, with real reads
Cross-network analytics breaks when every source names fields differently. SocialLens returns the same field names for every network. The three calls below differ only in the query string.
curl -s "https://api.sociallens.dev/v1/profile?platform=instagram&username=nasa" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
curl -s "https://api.sociallens.dev/v1/profile?platform=tiktok&username=mrbeast" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
curl -s "https://api.sociallens.dev/v1/profile?platform=youtube&username=mkbhd" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
The TikTok response from the 2026-12-04 read (other fields trimmed for length):
{
"exists": true,
"platform": "tiktok",
"username": "mrbeast",
"private": false,
"followers": 149219704,
"is_exact": true,
"following": 346,
"likes": 1589563463,
"videos": 494,
"fetched_at": "2026-12-04T…Z"
}
The YouTube response uses the same keys, with one difference that matters:
{
"exists": true,
"platform": "youtube",
"username": "mkbhd",
"private": false,
"followers": 21500000,
"is_exact": false,
"videos": 1871,
"fetched_at": "2026-12-04T…Z"
}
The full profile object carries exists, username, platform, nickname, verified, private, followers, is_exact, following, likes, videos, bio, avatar, id, created_at, external_link, category, fetched_at, cached, and source. YouTube subscribers arrive in followers, and Instagram posts arrive in videos (the content count field). You don't need a per-network mapping layer.
Original data: cross-network profile reads and derived ratios
The table below comes from live reads, with ratios computed from those reads. It shows why the precision flag belongs in every analytics table.
| Account | Network | Followers | is_exact | Following | Content count (videos) |
Followers per published item |
|---|---|---|---|---|---|---|
| @nasa | 104241747 | true | 91 | 5038 | 20,691.1 | |
| @mrbeast | TikTok | 149219704 | true | 346 | 494 | 302,064.2 |
| @mkbhd | YouTube | 21500000 | false (rounded) | n/a | 1871 | ~11,491.2 (approximate) |
Additional derived figure: @mrbeast's lifetime TikTok likes (1589563463) are 10.65 times his follower count, an average of 3,217,739.8 likes per published video.
Methodology: each profile was read live with GET /v1/profile on 2026-12-04. Ratios are simple divisions of the returned fields. Any ratio built on an is_exact: false input is marked approximate.
Data last verified: 2026-12-04
How do I calculate engagement rate from API data?
Engagement rate by views is (likes + comments + shares) / views. A real MrBeast TikTok video read on 2026-12-04 had 5683867 likes, 121697 comments, 696254 shares, and 27545701 views. Its interactions total 6,501,818, so the engagement rate is 6,501,818 / 27,545,701 = 23.60%. Pull the four fields from /v1/profile-posts and compute it yourself.
The video is https://www.tiktok.com/@mrbeast/video/7714754558655859998. Breaking the same numbers apart shows where the engagement comes from, and how much the denominator changes the headline.
| Metric (same video, same read) | Formula | Result |
|---|---|---|
| Engagement rate by views | (likes + comments + shares) / views | 23.60% |
| Like rate | likes / views | 20.63% |
| Share rate | shares / views | 2.53% |
| Comment rate | comments / views | 0.44% |
| Views per follower | views / profile followers (149219704) | 18.46% |
| Engagement rate by followers | (likes + comments + shares) / followers | 4.36% |
Data last verified: 2026-12-04
The same post reads as 23.60% or 4.36% depending on the denominator. Vendor dashboards often don't say which one they use. With raw fields you choose, document it, and stay consistent across networks. Use views where the platform exposes them per post (TikTok, YouTube, Reels). Fall back to followers where views are absent, and label the column.
The is_exact caveat: honest cross-network reporting
Some platforms publish precise counts and some publish only rounded figures. YouTube shows 21500000 for @mkbhd, not the true number. If your report ranks creators by growth, a rounded count can show zero growth for weeks and then jump. That is a reporting artifact, not a real event.
SocialLens sets is_exact: true when the number is a precise count and false when the platform exposes only a rounded figure. Three rules for analytics teams:
- Carry the flag into every table. Never drop it during a join.
- Don't compute day-over-day growth on rounded series. Use longer windows, or report growth as "at least X."
- Label mixed comparisons. A leaderboard mixing exact TikTok and rounded YouTube counts should say so in a footnote.
No data source can recover precision a platform hides. The difference is whether the source tells you.
Metrics you can compute, and the raw fields each needs
| Metric | Raw fields | Endpoint |
|---|---|---|
| Engagement rate (by views) | likes, comments, shares, views |
/v1/profile-posts |
| Engagement rate (by followers) | post interactions + profile followers |
/v1/profile-posts + /v1/profile |
| Follower growth | followers, is_exact, fetched_at over time |
/v1/profile (scheduled) |
| Posting cadence | published_at |
/v1/profile-posts |
| Content performance ranking | views, likes, caption, published_at |
/v1/profile-posts |
| Competitive benchmarking | the above across a peer set, any network | both |
| Share of voice | keyword search result counts and engagement by brand | keyword search |
| Comment sentiment | comment text | /v1/post-comments |
| Audience makeup | demographics where the platform exposes them | audience demographics |
For sentiment, pull comments with GET https://api.sociallens.dev/v1/post-comments?platform=PLATFORM&url=POST_URL&limit=N and score them with your model of choice. The full workflow is in the social media sentiment analysis API guide.
Growth needs history, and SocialLens returns current state. To get a time series, schedule reads, store each response with its fetched_at, and difference the snapshots. The cached field tells you whether a response was served from cache. Keep it so you don't mistake a cached repeat for a flat day.
Build your analytics pipeline in Python
This script reads a list of accounts into a pandas DataFrame, keeps is_exact, exports CSV for your BI tool, and computes engagement rate for posts.
import requests
import pandas as pd
API = "https://api.sociallens.dev/v1"
HEADERS = {"Authorization": "Bearer sk_live_YOUR_KEY"} # never commit a real key
accounts = [
{"platform": "instagram", "username": "nasa"},
{"platform": "tiktok", "username": "mrbeast"},
{"platform": "youtube", "username": "mkbhd"},
]
def get(path, **params):
r = requests.get(f"{API}/{path}", headers=HEADERS, params=params, timeout=30)
r.raise_for_status()
return r.json()
# 1. Profiles: one parser for every network, because the field names are identical
profiles = [get("profile", **a) for a in accounts]
df = pd.DataFrame(profiles)[
["platform", "username", "followers", "is_exact", "following", "videos", "fetched_at"]
]
df["followers_label"] = [
f"{f:,}" if exact else f"~{f:,} (rounded)"
for f, exact in zip(df["followers"], df["is_exact"])
]
print(df[["platform", "username", "followers_label", "is_exact", "videos"]].to_string(index=False))
df.to_csv("profiles_snapshot.csv", index=False) # append daily for growth series
# 2. Engagement rate by views
def engagement_rate(post):
if not post.get("views") or post.get("likes_hidden"):
return None # don't fabricate a rate when inputs are missing
interactions = (post.get("likes") or 0) + (post.get("comments") or 0) + (post.get("shares") or 0)
return interactions / post["views"]
posts = get("profile-posts", platform="tiktok", username="mrbeast", limit=20)["posts"]
posts_df = pd.DataFrame(posts)
posts_df["engagement_rate"] = [engagement_rate(p) for p in posts]
print(posts_df[["url", "views", "likes", "comments", "shares", "engagement_rate"]].head())
# Worked example with the real 2026-12-04 read of one MrBeast video:
real = {"likes": 5683867, "views": 27545701, "comments": 121697, "shares": 696254}
print(f"Engagement rate: {engagement_rate(real):.2%}") # Engagement rate: 23.60%
Expected profile output from the 2026-12-04 reads:
platform username followers_label is_exact videos
instagram nasa 104,241,747 True 5038
tiktok mrbeast 149,219,704 True 494
youtube mkbhd ~21,500,000 (rounded) False 1871
From DataFrame to dashboard
- Schedule the pull. Run the profile loop daily (cron, Airflow, or a serverless job) and append to a table keyed by
platform,username, andfetched_at. - Pull posts on a rolling window. Use
/v1/profile-postswith alimitthat covers your posting cadence, and upsert on postidso metrics update as views accrue. - Compute in SQL or pandas. Engagement rate, cadence, and growth deltas, each with an
is_exactcolumn carried through. - Send to BI. Load the CSV or table into your BI tool, or write straight to your warehouse. The schema is stable across networks, so a single dashboard template covers all 17.
- Document definitions. Write down the denominator and window next to every chart. This is the step dashboards most often skip.
Get a key at /register and test the reads first with the free utilities at /tools.
Connect the analytics API to an AI agent
The same data is available over the Model Context Protocol. The open source SocialLens MCP server lets an agent call profile, posts, and comments reads as tools, so you can ask "compare engagement rate across these five creators on TikTok and YouTube" and the agent fetches live numbers itself. The full agent setup, including every client, is in the pillar guide on social media data for AI agents.
What an MCP server is, in one diagram
AI agent (Claude, Cursor, your framework)
|
MCP client
|
SocialLens MCP server (npx -y sociallens-mcp)
|
===== BOUNDARY: read-only, public data only, no login =====
|
Public data on 17 networks
MCP is an open protocol for exposing tools to models (see modelcontextprotocol.io). The server is a thin, open source layer over the same REST endpoints shown above.
Steps by client
- Get a key at /register. It starts with
sk_live_. - Claude Code: add the server with
claude mcp add sociallens -- npx -y sociallens-mcp. See the Claude Code MCP docs for scopes and environment options. - Claude Desktop and Cursor: add a server entry to the client's MCP config whose command is
npxwith args-y sociallens-mcp, then supply your key as described in the server's README. - ChatGPT: ChatGPT connects to remote MCP servers where your plan supports connectors. A local stdio server needs an HTTP bridge (see Troubleshooting).
- Agent frameworks: most frameworks accept an MCP server or a plain HTTP tool. With the Anthropic SDK, expose
/v1/profileas a tool toclaude-sonnet-5-5with adaptive thinking. The same HTTP tool definition works with any function-calling model.
For citation workflows, SocialLens also offers a no-key lookup for AI crawlers: a page that returns a live, dated figure without an API key, so an LLM reading SocialLens content can fetch a current number itself instead of quoting a stale one.
What an agent CAN and CANNOT read
| CAN read (public) | CANNOT read |
|---|---|
| Public profiles: followers, following, likes, content count, bio, verified status | Private accounts of any kind |
| Public posts with likes, views, comments, shares | DMs or messages |
| A single post by URL and its public comments | Anything behind a login or session |
| Followers/following listings on TikTok | Owner-only metrics: reach, impressions, saves, story views |
| Keyword search, video transcripts, audience demographics where exposed | Posting, liking, following, or any write action |
Comparison: dashboards, official APIs, data APIs, and SocialLens
Competitor figures change often. Details below reflect publicly described models as of late 2026. Verify plans and limits on each vendor's own pricing page before committing.
| Approach / vendor | Type | Networks covered | Auth complexity | Precision (exact vs rounded) | Read or publish | Cost model | MCP server |
|---|---|---|---|---|---|---|---|
| X API | Official | X only | OAuth, developer account, paid tiers | Exact | Read + publish | Tiered subscription | Not official, check docs |
| Instagram Graph API | Official | Instagram (Business/Creator) | App review, Meta login | Exact for available fields | Read + publish | Free with rate limits | No official |
| TikTok Research API | Official | TikTok | Researcher application | Exact | Read only | Free to approved researchers | No official |
| YouTube Data API v3 | Official | YouTube | API key or OAuth | Subscribers rounded | Read + upload | Free daily quota units | No official |
| Reddit Data API | Official | OAuth | Exact | Read + post | Free tier, commercial terms vary | No official | |
| LinkedIn API | Official | Partner approval | Varies | Read + share (owned) | Partner programs | No official | |
| Apify | Scraper platform | Very broad (Actor marketplace) | API token, per-Actor config | Depends on Actor | Read | Usage / compute units | Yes |
| Bright Data | Scraping infra + datasets | Very broad | Account + zone setup | Depends on scraper | Read | Usage / per-record | Yes |
| EnsembleData | Data API | Several major networks | API token | Varies by endpoint | Read | Units | Check their docs |
| HikerAPI | Data API | Instagram-focused | API key | Instagram's figures | Read | Per-request | Check their docs |
| Data365 | Data API | Several networks | API key | Varies | Read | Subscription | Check their docs |
| RapidAPI | API marketplace | Depends on listed API | One marketplace key, per-API subscription | Varies by provider | Mostly read | Per-API plans | Varies |
| Phyllo | Creator-consent data API | Many creator platforms | Creator OAuth consent | Exact, incl. owner metrics | Read (consented) | Contract / subscription | Check their docs |
| Modash | Influencer SaaS + API | Instagram, TikTok, YouTube | API key | Varies | Read | Credits / subscription | Check their docs |
| HypeAuditor | Influencer analytics SaaS | Major creator networks | Account / API on plans | Includes estimated metrics | Read | Subscription | Check their docs |
| SocialLens | Read-only data API | 17 | One sk_live_ key |
is_exact flag on every count |
Read only | One key, one bill (see signup) | Yes, open source |
Where SocialLens loses, honestly
- Raw coverage. Apify and Bright Data reach far more websites than 17 networks. If you need an obscure regional forum, a general scraper wins.
- Owner-private metrics. Phyllo (with creator consent) and the official APIs (for accounts you own) can read impressions and reach. SocialLens cannot, by design.
- Ready-made analytics. Modash and HypeAuditor ship computed scores, audience quality estimates, and influencer search UIs. SocialLens gives you raw fields and you build the scoring.
- Lowest unit cost at massive scale. If you're pulling one network at very high volume, a single-network specialist or bulk dataset may cost less per record.
Where SocialLens wins
- One schema. Seventeen networks return identical field names, so one parser and one dashboard template serve all of them.
- Precision honesty.
is_exacttells you when a number is rounded. Most sources don't. - Read-only safety. No login, no sessions, no write actions, so there's less account risk and a simpler compliance story.
- Agent-ready. An open source MCP server plus a no-key lookup for AI crawlers.
What data you can pull across 17 networks
| Capability | Endpoint / description | Notes |
|---|---|---|
| Profile | GET /v1/profile?platform=PLATFORM&username=USERNAME |
Same fields on every network |
| Profile posts | GET /v1/profile-posts?platform=PLATFORM&username=USERNAME&limit=N |
id, url, caption, published_at, likes, views, comments, shares, likes_hidden |
| Post comments | GET /v1/post-comments?platform=PLATFORM&url=POST_URL&limit=N |
Public comments only |
| Post by URL | Single public post lookup | Useful for campaign tracking |
| Followers / following | Listing | TikTok |
| Keyword search | Public posts matching a term | Share of voice, trend tracking |
| Video transcript | Text of public videos | Topic and keyword analysis |
| Audience demographics | Where the platform exposes them | Read-only, public signals |
Networks: TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub, Spotify. Not every capability exists on every network, because some platforms don't expose a given signal publicly. A field the platform doesn't expose returns empty rather than estimated. For example, likes_hidden is set when a creator hides like counts.
What it costs and how pricing models differ
Analytics workloads are spiky. A backfill of a thousand accounts happens once, then daily snapshots are small. The pricing model matters as much as the price.
| Model | How it bills | Good for | Watch out for |
|---|---|---|---|
| Pay-per-use | Each successful call | Spiky backfills, prototypes | Unbounded loops in agents |
| Units | Endpoints cost different unit amounts | Mixed workloads | Hard to forecast without a unit table |
| Credits | Prepaid pool spent per action | Influencer lookups | Expiring credits |
| Per-request tiers | Monthly plan with a request cap | Steady volume | Overage pricing |
| Subscription (SaaS) | Seat or plan fee, includes UI | Teams wanting dashboards | Paying for UI you won't use |
| Compute / usage (scrapers) | Runtime, proxies, records | Huge or unusual targets | Cost varies with page complexity and retries |
| Official quotas | Free within quota, paid tiers above | Single-network, owned accounts | Quota exhaustion, tier jumps |
To estimate your own cost, multiply accounts by networks by snapshot frequency for profiles, then add posts pulls and comment pulls. One account on three networks read daily is roughly 90 profile calls a month before posts. Cache what doesn't change (bios, avatars) and pull counts only.
SocialLens bills one key across all 17 networks, so there are no per-network contracts. Current plans are listed at /register. Competitors use the models in the table above. Check their pricing pages directly, as of late 2026, rather than trusting third-party roundups.
Is it legal to use a social media analytics API?
Reading publicly available data is on firmer legal ground than accessing private data, but it isn't risk-free.
- hiQ Labs v. LinkedIn. The Ninth Circuit held that scraping publicly accessible profiles likely isn't access "without authorization" under the federal Computer Fraud and Abuse Act. The later district court proceedings found hiQ had breached LinkedIn's user agreement. The takeaway: anti-hacking risk is lower for public data, while contract and terms-of-service risk remains.
- Terms of service. Platforms' terms often restrict automated collection. Read the terms for each network you analyze.
- GDPR and CCPA. Public personal data is still personal data. If you store data about EU or California individuals, you need a lawful basis, retention limits, and a way to honor deletion requests. Aggregate metrics about public brand and creator accounts carry less exposure than building profiles of private individuals.
- Design choices that reduce risk. SocialLens reads public data only. It never logs in, never uses sessions, never touches private accounts or DMs, and never writes. Your own risk still depends on what you store and how you use it.
This is not legal advice.
Troubleshooting
401 or 403 from the REST API. The header must be exactly Authorization: Bearer sk_live_YOUR_KEY. Common causes are a missing Bearer prefix, a stray newline pasted with the key, or a key copied from the wrong environment.
exists: false or empty posts. Check the username format. Use the handle without @ and the platform name in lowercase. A private account returns no posts by design.
Growth chart is flat, then jumps. You're plotting a rounded series. Check is_exact, and switch to longer windows for those networks.
Engagement rate is null. The post has no views field on that network, or likes_hidden is true. Fall back to the follower denominator and label it.
MCP config does nothing. Malformed JSON is the top cause. A trailing comma or a missing brace makes most clients silently ignore the whole file. Validate the file with a JSON linter.
npx not found from a desktop app. GUI apps often don't inherit your shell PATH. Run which npx in a terminal and use that absolute path as the command. Relative paths fail for the same reason, because the working directory isn't your project.
Changes don't take effect. Claude Desktop and Cursor read MCP config at startup. Fully quit the app (not just close the window) and reopen it.
Remote server returns 401/403 during connection. Remote MCP servers may require an OAuth flow. Complete the browser authorization prompt in the client. If the client never shows one, remove and re-add the server.
Client supports only stdio (or only remote). A stdio-only client can't reach a remote HTTP server directly, and a remote-only client such as ChatGPT can't spawn a local npx process. Use a stdio-to-HTTP bridge package for the stdio-only case, and host the server remotely for the remote-only case.
Cursor uses the wrong server definition. Cursor reads both a global ~/.cursor/mcp.json and a project .cursor/mcp.json. When both define the same server name, the project file usually wins in current versions. Keep the key in one place and confirm which entry is active in Cursor's MCP settings.
FAQ
What is a social media analytics API?
A social media analytics API returns structured social data, such as followers, posts, likes, views, comments, and shares, that you compute metrics from. Some vendors attach an API to a dashboard. SocialLens is a pure data API: one key, 17 networks, one JSON schema, read-only public data.
Is a social media analytics API the same as a dashboard?
No. A dashboard computes and charts metrics for you, often only for accounts you own. A data API returns raw public signals for any public account, and you build the metrics, storage, and charts yourself. That gives you custom definitions and lets you feed BI tools or AI models.
How do I calculate engagement rate from API data?
Divide likes plus comments plus shares by views. A MrBeast TikTok video read on 2026-12-04 had 5683867 likes, 121697 comments, 696254 shares, and 27545701 views, which gives 23.60%. Dividing by followers instead gives 4.36%, so always state your denominator.
Can I get impressions or reach for competitor accounts?
No. Impressions, reach, saves, and story views are private to the account owner. No public data API can read them. Use the official platform API for accounts you own, and public engagement fields for competitors.
Why does YouTube show a rounded follower count?
YouTube publishes abbreviated subscriber counts, so @mkbhd read as 21500000 with is_exact: false. SocialLens returns what the platform exposes and flags it. Don't compute short-term growth on rounded series.
Which networks does SocialLens cover?
Seventeen: TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub, and Spotify. All use one sk_live_ key and identical field names.
How do I track follower growth over time?
Schedule /v1/profile reads, store each response with fetched_at and is_exact, and difference the snapshots. The API returns current state, so history is the series you build.
Can I use it with Claude or another AI agent?
Yes. Run the open source MCP server with npx -y sociallens-mcp, or expose the REST endpoints as an HTTP tool. The HTTP tool works with any function-calling model.
Does SocialLens log in to accounts or read private data?
No. It reads public data only, never logs in, never uses sessions, and never reads private accounts or DMs. It also never posts, likes, or follows.
Can I do sentiment analysis with it?
Yes. Pull public comments with /v1/post-comments and score them with your own model. See the sentiment analysis API guide.
How do I try it before writing code?
Use the free utilities at /tools, then create a key at /register and run the three curl calls above.
Related guides
- Social Media APIs Compared: Official APIs vs One Public Data API
- Unified Social Media Data API: One Schema for 17 Networks
- RapidAPI Social Media API Alternative: One Key for 17 Networks (2026)
- Social Media Sentiment Analysis API: Pull the Comments, Score Them Your Way
- How to Give AI Agents Live Social Media Data (MCP and API Guide for Claude, ChatGPT and Cursor)
- Social Listening API: Track Mentions Across 17 Networks With One Key
- Social Media Data for AI Agents: MCP vs API vs Function Calling (2026)