# SocialLens > SocialLens, a social media data API. Public profile, post, profile posts and comment data for every major social network (TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads and Pinterest) as clean JSON. Base URL: https://api.sociallens.dev Website: https://sociallens.dev ## In short SocialLens is a unified API for public profile data (follower counts, profile stats) across 9 networks: TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads and Pinterest. Free to try: create an account with just an email (no credit card) and get 250 free reads total, usable in the dashboard or through the API with your key. The 250 reads are a one time starting balance, not a daily or monthly quota. After they run out you can buy credits to keep going. No account needed for the free web tools at https://sociallens.dev/tools (public, rate limited per IP). Those are separate from the 250 account reads. Start here: https://sociallens.dev/register ## What it does SocialLens reads public data from social platforms and returns it as a normalized JSON object. One schema per endpoint, the same for every platform: /v1/profile (one public profile): - exists (bool), username, platform, nickname - id (stable platform id, survives an @username change), verified (bool), private (bool or null) - followers (exact when is_exact is true) and followers_rounded (rounded figure the platform shows): integer, or null when a private profile exposes no public counts; is_exact (boolean), following, videos (integers), likes (integer or null) - bio, avatar (URL), external_link (link in the bio, or null), created_at (account creation date, or null when the platform does not expose it), category (or null, see note) - fetched_at (ISO 8601, UTC), cached (bool) /v1/post (one public post or video, by URL): - exists (bool), id (platform post id), url, platform - author (object: username, name, verified), caption (post text, title on YouTube), published_at (ISO 8601 UTC) - description (YouTube only: the video description) - likes, views, comments, shares (exact integers or null when the platform does not expose that counter) - is_exact (boolean), likes_hidden (Instagram: owner turned off like counts, likes comes as null instead of a fake 0) - fetched_at (ISO 8601, UTC), cached (bool) Platforms: TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads and Pinterest, all live. Reddit is read as a subreddit, LinkedIn as a person or a company page, Pinterest as a user, board or pin. followers is the exact count when the platform exposes one (TikTok, Instagram, Facebook, X, Threads, LinkedIn, Pinterest). followers_rounded is the rounded figure shown on the public page. is_exact=false means the platform only exposes a rounded number (for example YouTube subscribers), and then followers equals followers_rounded. Post likes and views are exact integers across the supported platforms; YouTube comment counts are rounded by YouTube itself. If a platform is temporarily unavailable the API returns HTTP 501 platform_not_available, never charged. The profile field category is exposed where the source provides it; today it often comes as null even for business accounts, so treat it as best effort and do not rely on it. id, external_link and created_at are returned when the platform exposes them: created_at is null on Instagram (the source does not send it), and its format follows whatever the platform publishes (ISO on TikTok, a plain date on YouTube and Facebook). ## Quick public lookup (no key) For a quick public profile lookup without a key: GET https://sociallens.dev/lookup?username=X&platform=tiktok (rate limited per IP, currently 5 requests per day, CORS open). Same JSON schema as /v1/profile, without the "credits" block, plus "source": "public_lookup". Every major social network is available on the public lookup. For production use, post metrics or any volume, get a free API key: https://sociallens.dev/register (250 free reads to get started, no card), then use the authenticated API below. Example: curl "https://sociallens.dev/lookup?username=tiktok&platform=tiktok" ## How to call it (API key) Every request needs an API key sent as a Bearer token. Get a free key at https://sociallens.dev/register (free tier: 250 free reads to get started, no card required). ### Profile GET https://api.sociallens.dev/v1/profile?username=USERNAME&platform=tiktok Authorization: Bearer sk_live_KEY Parameters: - username (required): the public handle, with or without the leading @. Letters, digits, dot, underscore and hyphen. For facebook you may also send the full page URL. - platform (required): tiktok, instagram, youtube, facebook, x, reddit, linkedin, threads, pinterest. - fresh (optional): fresh=1 skips the short read cache and forces a new read at the source. - cache_max_age (optional): 1d, 3d, 7d, 14d or 30d. Lets the source answer from its own stored copy (see Cache below). Cost: 1 credit per successful call (HTTP 200). Example request: curl "https://api.sociallens.dev/v1/profile?username=tiktok&platform=tiktok" \ -H "Authorization: Bearer sk_live_KEY" Example response (HTTP 200): { "exists": true, "username": "tiktok", "platform": "tiktok", "nickname": "TikTok", "verified": true, "private": false, "followers": 96643368, "followers_rounded": 96600000, "is_exact": true, "following": 2, "likes": 467312316, "videos": 1515, "bio": "Your next discovery is waiting on TikTok.", "avatar": "https://p16-sign.tiktokcdn-us.com/...", "id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM", "created_at": "2015-02-28T17:22:29Z", "external_link": "tiktok.com/discovermore", "category": null, "fetched_at": "2026-11-08T03:12:45Z", "cached": false, "credits": { "source": "paid", "charged": 1, "balance": 7999 } } ### Post GET https://api.sociallens.dev/v1/post?url=POST_URL&platform=tiktok Authorization: Bearer sk_live_KEY Parameters: - url (required): full public URL of the post or video, starting with https://. TikTok video/photo (vt.tiktok.com and vm.tiktok.com short links are resolved), Instagram /p/ or /reel/, YouTube watch?v=, youtu.be or Shorts, Facebook post, video or reel, X post on x.com or twitter.com, Reddit post permalink, Threads post on threads.net or threads.com, Pinterest pin (pinterest.com/pin/ID/). - platform (required): tiktok, instagram, youtube, facebook, x, reddit, threads, pinterest. Must match the URL's domain. LinkedIn has no single post read. - fresh (optional): fresh=1 skips the short read cache and forces a new read at the source. - cache_max_age (optional): 1d, 3d, 7d, 14d or 30d. Lets the source answer from its own stored copy (see Cache below). Cost: 1 credit per post delivered (HTTP 200 with exists:true). exists:false is returned when the post is not found (deleted, private account, login wall), is age restricted, or the link is invalid. On TikTok, Instagram, YouTube, Facebook, X, Threads and Pinterest that answer is not charged (credits.charged is 0), and a not found answer can be temporary, so it does not prove the post was deleted. Reddit is different: the source answers a missing Reddit post as a normal read and bills it, so it comes back with exists true, the caption "Page not found" and no author, and it is charged. Example request: curl "https://api.sociallens.dev/v1/post?url=https://www.tiktok.com/@tiktok/video/7106594312292453675&platform=tiktok" \ -H "Authorization: Bearer sk_live_KEY" Example response (HTTP 200): { "exists": true, "id": "7106594312292453675", "url": "https://www.tiktok.com/@tiktok/video/7106594312292453675", "platform": "tiktok", "author": { "username": "tiktok", "name": "TikTok", "verified": null }, "caption": "how many frogs did you find?", "published_at": "2022-06-07T20:15:29Z", "likes": 98929, "views": 593923, "comments": 1265, "shares": 361, "is_exact": true, "likes_hidden": false, "fetched_at": "2026-11-09T04:32:20Z", "cached": false, "credits": { "source": "paid", "charged": 1, "balance": 7998 } } Per platform: TikTok gives likes, views, comments, shares. Instagram gives likes, views (reels/videos; null for photos) and comments, shares is null; likes_hidden=true means the owner hid the counts. YouTube gives likes and views exact, comments rounded by YouTube, shares null. Facebook gives likes (reactions), comments, shares, and views for videos/reels. X gives likes, views, replies (in comments) and reposts (in shares). Reddit gives the upvote score (in likes) and comments; views and shares are null. Threads gives likes, replies (in comments) and reposts (in shares); views is null. Pinterest gives reactions (in likes), shares and an extra saves field with how many times the pin was saved; views and comments are null. ### Profile posts GET https://api.sociallens.dev/v1/profile-posts?username=USERNAME&platform=tiktok&limit=10 Authorization: Bearer sk_live_KEY Recent public posts or videos of a profile, each with its own counters. One call = one page from the platform (about 10 to 30 posts) = 1 credit. You pay per request, never per post. Parameters: - username (required): public handle, as in /v1/profile. For Facebook, send the page handle or the full page URL. - platform (required): tiktok, instagram, youtube, facebook, x, reddit, linkedin, threads, pinterest. - limit (optional): 1 to 50, default 10. Trims the page; does not fetch more pages. - fresh (optional): fresh=1 skips the short read cache. - cache_max_age (optional): 1d, 3d, 7d, 14d or 30d. Lets the source answer from its own stored copy (cheaper monitoring, possibly stale). See Cache below. Response (HTTP 200): exists, username, platform, private (bool or null), count, has_more, is_exact, posts[] where each post has id, url, caption (title on YouTube), published_at (ISO 8601 UTC, same format as /v1/post for the same post), likes, views, comments, shares, likes_hidden; then fetched_at, cached, source_cached, credits. Honesty per platform: TikTok and Instagram counters are exact. Instagram photos have views null; a post with hidden likes has likes and views null and likes_hidden true. YouTube likes and views are exact, comments is the rounded figure YouTube publishes (59000 for "59K"). Facebook returns the page's posts with their counters (likes as the summed reactions, comments, shares, and views for videos). A profile that is not found answers exists false and is not charged (TikTok, Instagram, Facebook, Reddit, LinkedIn, Threads, Pinterest). On YouTube the source bills the lookup of a channel it cannot find and returns an empty list, so that call is charged. On X the source bills that lookup too, so an account that does not exist answers exists false and is charged. A private or restricted Instagram profile has no public post list: the call answers exists false or 503 source_unavailable and is not charged either. ### Post comments GET https://api.sociallens.dev/v1/post-comments?url=POST_URL&platform=tiktok&limit=20 Authorization: Bearer sk_live_KEY Public comments of one post or video. One call = one page from the platform (10 to 20 comments) = 1 credit. Parameters: - url (required): full public URL of the post or video, as in /v1/post. For Facebook, the post URL. - platform (required): tiktok, instagram, youtube, facebook, reddit. Must match the URL's domain. - limit (optional): 1 to 100, default 20. Trims the page; does not fetch more pages. - fresh (optional): fresh=1 skips the short read cache. - cache_max_age (optional): see Cache below. Not honored by every source endpoint (comments usually are not). Response (HTTP 200): exists, url, platform, count, total (post's total comment count when the platform sends it, TikTok; otherwise null), has_more, comments[] where each comment has id, text, author (object: username, name, verified; verified is null when the platform does not expose it, e.g. TikTok), likes, replies, published_at; then fetched_at, cached, source_cached, credits. Honesty: TikTok and Instagram comment likes are exact; YouTube rounds comment likes and reply counts (570000 for "570K"); Facebook comment likes are the summed reactions on the comment. Order is the platform's default. A post that is not found answers exists false and is not charged (Instagram, YouTube, Facebook). On Reddit the source answers a missing post as a normal read and bills it, so the call returns an empty comment list and is charged. ### Followers and Following GET https://api.sociallens.dev/v1/followers?username=USERNAME&platform=tiktok Authorization: Bearer sk_live_KEY GET https://api.sociallens.dev/v1/following?username=USERNAME&platform=tiktok Authorization: Bearer sk_live_KEY The follower list and the following list. TikTok only: these lists exist only for TikTok at the source. For every other network, use /v1/profile for the follower COUNT (the followers field). One call = one page = 1 credit. Parameters: - username (required): public handle, as in /v1/profile. - platform (required): tiktok. Any other platform returns 501 platform_not_available, never charged. - cursor (optional): the next_cursor value from the previous response, to page forward. Omit on the first call. - cache_max_age (optional): see Cache below. Response (HTTP 200): exists, username, platform, total (the account's total follower/following count when the source sends it), count (users in this page), has_more, next_cursor (pass it as cursor on the next call; null when there is no next page), users[] where each user has username, nickname, user_id, sec_uid, verified, followers, following, posts, region, avatar, signature; then fetched_at, cached, source_cached, credits. Each page is 1 credit; paginate with next_cursor until has_more is false. ### Other endpoints GET /v1/ping (free, checks the key) and the public GET /lookup (no key, rate limited, profile schema). Live data endpoints: /v1/profile, /v1/post, /v1/profile-posts, /v1/post-comments, /v1/followers (tiktok), /v1/following (tiktok). Anything else under /v1 answers 501 and is never charged. Error codes (JSON body has "error" and "message"). Only successful (200) requests are charged; every error below costs 0 credits: - 400 bad_request: missing or invalid parameter (for /v1/post also when the url does not match the platform) - 401 invalid_token: key missing, wrong or revoked - 402 no_credits, free_tier_exhausted: no balance left - 403 email_not_verified: confirm your e-mail before using the API - 409 account_busy: another request for this account is in progress, try again in a moment - 429 rate_limited: 60 requests per minute per key (Retry-After header) - 501 platform_not_available: platform not supported on this endpoint, or a non-live endpoint - 503 source_unavailable: the platform could not be read, Retry-After header (seconds). 503 on purpose: a 502 would be rewritten by the CDN ## Honesty - followers is the count the network exposes (TikTok, Instagram, Facebook, X, Threads, LinkedIn, Pinterest expose it in full, so is_exact is true); followers_rounded is the rounded figure shown on the public page. When the network only publishes a rounded number (YouTube), is_exact is false and followers equals followers_rounded. - Post counters are exact integers when the platform exposes them; a counter the platform does not expose comes as null, never 0. On Instagram, when the owner hid likes, likes is null and likes_hidden is true. - Freshness: every read goes live to the source, so you always get the current number. The response carries fetched_at (when it was read) and cached is always false. cache_max_age=1d (or 3d, 7d, 14d, 30d) is optional and only lets the SOURCE answer from its own stored copy if it has one at most that old; source_cached in the response tells you what you got. Leave it off for a live read. - Billing: only a delivered answer (HTTP 200) is charged, 1 credit. For profiles a definitive answer counts as delivered: a non-existent profile (exists false) and a private profile (200 with public metadata only) are charged. For single posts, exists false is not charged when the post is not found, age restricted or the link is invalid. On Reddit a missing post, or the comments of one, comes back as a normal read that the source bills, so it is charged; on YouTube the same happens with /v1/profile-posts of a channel that is not found, and an X account that does not exist answers exists false and is charged on /v1/profile and /v1/profile-posts. The rule in one line: we charge when the source bills us for the read; when the source does not bill (a post 404), we do not charge. The credit is taken only after the read succeeds. Every error costs 0 credits: 400, 401, 402, 403, 409, 429, 501 and 503 are never charged. - Paid credits never expire. Free reads run out as you use them and do not renew. - Public data only: no login, no non-public data, nothing beyond what the profile or post shows publicly. ## Guides Step by step guides on the SocialLens blog. Each one answers a single question with real requests, real responses and tested code. - [Follower Count API: One Request for Every Major Social Network](https://sociallens.dev/blog/follower-count-api) - [How to Get an Instagram Follower Count via API](https://sociallens.dev/blog/instagram-follower-count-api) - [How to Track TikTok Follower Growth Programmatically](https://sociallens.dev/blog/track-tiktok-follower-growth-api) - [YouTube Subscriber Count API: Why the Number Is Rounded and How to Read It](https://sociallens.dev/blog/youtube-subscriber-count-api) - [X (Twitter) Follower Count API: Exact Counts, Following and Post Totals](https://sociallens.dev/blog/x-twitter-follower-count-api) - [Reddit Subreddit Stats API: Weekly Active Users, Contributions and Posts](https://sociallens.dev/blog/reddit-subreddit-stats-api) - [LinkedIn Company Data API: Followers, Employee Count and Company Posts](https://sociallens.dev/blog/linkedin-company-data-api) - [Unified Social Media Data API: One Schema for 9 Networks](https://sociallens.dev/blog/unified-social-media-data-api) - [Social Media APIs Compared: Official APIs vs One Public Data API](https://sociallens.dev/blog/social-media-api-comparison) - [How to Get Likes, Views and Comments for Any Post by URL](https://sociallens.dev/blog/social-media-post-metrics-api) - [Social Media Followers Count API for SMM Panels: Read Instagram and TikTok Public Data (2026)](https://sociallens.dev/blog/social-media-followers-count-api-smm-panel) - [Enrich a Clay Table with Instagram, TikTok, YouTube and LinkedIn Follower Counts via HTTP API (2026)](https://sociallens.dev/blog/clay-enrichment-instagram-tiktok-follower-count-http-api) - [Engagement Rate API for Indie Influencer Apps: Live Instagram, TikTok and YouTube Metrics Without a Modash Contract (2026)](https://sociallens.dev/blog/engagement-rate-api-influencer-apps-modash-alternative) - [Data365 and EnsembleData Alternatives: Pay-As-You-Go Social Media API with No Sales Call (2026)](https://sociallens.dev/blog/data365-ensembledata-alternatives-pay-as-you-go-social-media-api) - [Social Media Data for Academic Research After CrowdTangle and the X API Paywall: An Affordable Multi-Platform API (2026)](https://sociallens.dev/blog/social-media-data-api-academic-research-after-crowdtangle) - [Track Instagram and TikTok Follower Counts in Google Sheets Automatically: Apps Script for 9 Networks (2026)](https://sociallens.dev/blog/track-instagram-tiktok-follower-count-google-sheets-apps-script) - [Automatically Verify an Affiliate Applicant's Social Media Followers: API Check for Signup Forms (2026)](https://sociallens.dev/blog/verify-affiliate-applicant-social-media-followers-api) - [n8n Workflow for a Social Media Follower Count Tracker: 9 Networks with One HTTP Request Node (2026)](https://sociallens.dev/blog/n8n-social-media-follower-count-tracker-workflow) - [Threads API: Get the Follower Count of Any Account, Exact and Without Login (2026)](https://sociallens.dev/blog/threads-follower-count-api) - [Pinterest API: Get the Follower Count of Any Profile and the Saves of a Pin, Without OAuth (2026)](https://sociallens.dev/blog/pinterest-follower-count-saves-api) - [All guides](https://sociallens.dev/blog) ## Links - Public lookup (no key, rate limited): https://sociallens.dev/lookup?username=X&platform=tiktok - Command line tool (sociallens profile ): https://sociallens.dev/cli - API reference: https://sociallens.dev/docs - Instagram API reference (profile, post, profile posts, post comments): https://sociallens.dev/docs/instagram - TikTok API reference (profile, post, profile posts, post comments, follower and following lists): https://sociallens.dev/docs/tiktok - X (Twitter) API reference (profile, post, profile posts): https://sociallens.dev/docs/x - Reddit API reference (subreddit, post, subreddit posts, post comments): https://sociallens.dev/docs/reddit - YouTube API reference (channel, video, channel videos, video comments): https://sociallens.dev/docs/youtube - Facebook API reference (page, post, page posts, post comments): https://sociallens.dev/docs/facebook - LinkedIn API reference (company or person, company posts): https://sociallens.dev/docs/linkedin - Threads API reference (profile, post, profile posts): https://sociallens.dev/docs/threads - Pinterest API reference (profile, pin, pins of a board): https://sociallens.dev/docs/pinterest - API overview: https://sociallens.dev/api - OpenAPI 3.0 spec (machine readable, for API directories and tools): https://sociallens.dev/openapi.json - Pricing: https://sociallens.dev/pricing - Create account: https://sociallens.dev/register - Agent integrations (tool definition for AI assistants, in the dashboard): https://sociallens.dev/dashboard/agents