---
title: "Social Media Analytics API: Official Platform APIs, Unified APIs and viral.app Compared"
description: "Which API returns creator and video analytics? The TikTok, Instagram, YouTube and Facebook APIs, unified APIs and viral.app compared, with limits and prices."
url: "https://viral.app/blog/guides/social-media-analytics-api"
language: "en"
author: "Dennis Zollmann"
datePublished: "2026-04-16"
dateModified: "2026-11-06"
---

# Social Media Analytics API: Official Platform APIs, Unified APIs and viral.app Compared

What the TikTok, Instagram, YouTube and Facebook APIs return for creator and video analytics, what unified APIs add, and what 3.3 million tracked videos show about public data and how often to pull it.

**For creators and competitors who won't log in to your app, the official APIs mostly come up empty.** TikTok's Display API and Facebook's video insights only return analytics for accounts that authorize your app. TikTok's Research API does cover public videos, but it is closed to commercial users. YouTube Data API v3 is the exception: it returns public view, like and comment counts for any public video, within a default budget of 10,000 quota units a day. Instagram sits in between. It returns like, comment and view counts for other professional accounts, and nothing for personal ones.

**So pick by whose accounts you measure.** For accounts you or your clients own, use the official APIs or a unified API such as Ayrshare, bundle.social or PostPeer, which wraps them behind one login flow. For creators and competitors who won't connect, you need public data. That means a public-data API, a pay-per-result scraper, or a tracking tool with an API, such as viral.app, which tracks public TikTok, Instagram, YouTube Shorts, Facebook and Snapchat accounts by URL. Below: each option's access rules and limits, checked October 2, 2026, and what our 3.3 million tracked videos show about public metrics and how often to refresh.

- **TikTok Research API quota**: 1,000 requests a day. Up to 100,000 records a day, for approved academic and non-profit researchers only.
- **YouTube Data API budget**: 10,000 units a day. Reading a video's counts costs 1 unit. Search has its own cap of 100 calls a day.
- **TikTok views by day one**: 65%. Median share of 30-day views. Instagram Reels: 86%. From about 150,000 videos we tracked.

## What does each official platform API return?

Each platform's own API is free and has the deepest metrics, such as reach and watch time, but mostly for accounts that log in to your app. Here is what each returns and who can use it.

### TikTok: Display API and Research API

The [Display API](https://developers.tiktok.com/docs/en/display-api-overview) returns the profile and recently uploaded public videos of a TikTok user who authorizes your app. Each [video object](https://developers.tiktok.com/docs/en/tiktok-api-v2-video-object) has `view_count`, `like_count`, `comment_count` and `share_count`, but no save count. Follower, following, like and video totals need the separate [`user.info.stats` scope](https://developers.tiktok.com/docs/en/tiktok-api-scopes). The user info, video list and video query endpoints each allow [600 requests a minute](https://developers.tiktok.com/docs/en/tiktok-api-v2-rate-limit).

The [Research API](https://developers.tiktok.com/products/research-api/) can query any public video and adds `favorites_count`. Only researchers qualify: academic institutions in the US, EEA, UK, Canada and Switzerland, non-profit researchers in the EU, and some youth-safety researchers in Brazil. Its [FAQ](https://developers.tiktok.com/docs/en/research-api-faq) says creators, advertisers and commercial users are not eligible. Approved projects get 1,000 requests and up to 100,000 records a day. A [video query](https://developers.tiktok.com/docs/en/research-api-specs-query-videos) returns at most 100 videos from a window of at most 30 days.

### Instagram: Instagram API (Graph API)

Instagram's API works only with professional accounts, Business or Creator. Meta switched off the Basic Display API for personal accounts on [December 4, 2024](https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/). For accounts that log in, [media insights](https://developers.facebook.com/documentation/instagram-platform/reference/instagram-media/insights) include views, reach, likes, comments, shares, saves, total interactions and Reels watch time. The data can be delayed up to 48 hours and is kept for up to two years. Impressions are deprecated for media created after July 2, 2024. Calls for a logged-in account are capped at [4,800 times its impressions per 24 hours](https://developers.facebook.com/docs/graph-api/overview/rate-limiting), counting how often its content entered someone's screen.

For accounts that don't log in, [Business Discovery](https://developers.facebook.com/documentation/instagram-platform/instagram-api-with-facebook-login/business-discovery) returns follower and media counts plus `like_count`, `comments_count` and `view_count` per post. It works only for professional accounts that aren't age-gated, and its view count mixes paid and organic views. Business Discovery falls under Meta's Platform Rate Limits instead: 200 calls an hour per user of your app.

### YouTube: Data API v3 and Analytics API

The [YouTube Data API v3](https://developers.google.com/youtube/v3/docs/videos) is the only official API here that returns counts for any public video without the owner's consent: `viewCount`, `likeCount` and `commentCount`. It has no share count. `dislikeCount` has been private since December 13, 2021, and `favoriteCount` has been 0 since 2015. A project gets [10,000 quota units a day](https://developers.google.com/youtube/v3/determine_quota_cost) for most endpoints, and a `videos.list` call costs 1 unit. Search and uploads have separate caps of 100 calls a day each.

Shares, watch time and average view duration come from the [YouTube Analytics API](https://developers.google.com/youtube/analytics/metrics), where every request [must be authorized by the channel or content owner](https://developers.google.com/youtube/reporting).

### Facebook: Graph API

[Video insights](https://developers.facebook.com/docs/graph-api/reference/video/video_insights/) such as `total_video_views`, `total_video_avg_time_watched` and `blue_reels_play_count` cover videos on Pages you manage. You need the `pages_manage_engagement` and `read_insights` permissions and a Page token from someone who can analyze the Page. Videos on personal profiles and in groups have no insights. Reading public posts on other Pages needs [Page Public Content Access](https://developers.facebook.com/docs/features-reference/page-public-content-access), which requires App Review and business verification. Page calls are capped at 4,800 times the Page's engaged users per 24 hours.

_Official APIs for creator and video analytics. Source: each platform's developer docs, checked October 2, 2026._

| API | Accounts you don't control | Video metrics | Main limit |
| - | - | - | - |
| TikTok Display API | No, only users who authorize your app | Views, likes, comments, shares | 600 requests a minute per endpoint |
| TikTok Research API | Yes, but no commercial use | Adds favorites (saves) | 1,000 requests, 100,000 records a day |
| Instagram API | Counts only, for other professional accounts | Own: views, reach, likes, comments, shares, saves, watch time | Own account: 4,800 x impressions per 24 hours. Others: 200 calls an hour per app user |
| YouTube Data API v3 | Yes, any public video | Views, likes, comments | 10,000 units and 100 searches a day |
| YouTube Analytics API | No, the owner must authorize | Watch time, shares, subscribers gained | Owner authorization per channel |
| Facebook Graph API | Public Page posts, after App Review | Own Pages: views, watch time, Reels plays | 4,800 calls x engaged users per 24 hours |

## What does public video data actually contain?

Public data has fewer metrics than owner insights, and the gaps differ by platform. Views and comments are public everywhere; likes, shares and saves are not. The table shows how often each count was available for the 3.3 million videos we track that were posted from October 2025 to August 2026.

_Share of videos with each count available. Source: viral.app tracking data, 3.3M videos posted Oct 2025 to Aug 2026._

| Platform | Videos | Likes | Shares | Saves |
| - | - | - | - | - |
| TikTok videos and slideshows | 1.7M | 100% | 100% | 100% |
| Instagram Reels | 1.2M | 96% | 63% | 29% |
| YouTube Shorts | About 240K | 99.8% | None | None |
| Facebook Reels | About 93K | 100% | 99.9% | None |
| Snapchat Spotlight | About 1.8K | 100% | 100% | None |

- **TikTok is the most complete.** Every video came with likes, comments, shares and saves.
- **Instagram hides the most.** About 4% of Reels had no like count, usually because the creator hid it. Share and save counts varied over the year with the data source: saves were available for 12% of Reels posted in October 2025 and 66% of those posted in August 2026. Feed videos and carousels have no public play count at all, which is why viral.app tracks Reels only.
- **YouTube and Facebook publish no saves, and YouTube no shares.** Facebook's like count is all reactions combined.

If you compare engagement rates across platforms, build them from likes and comments, the two counts nearly every video shows. Adding shares and saves inflates TikTok against YouTube, which publishes neither. Our guide to [social media engagement metrics](https://viral.app/blog/guides/social-media-engagement-metrics) covers share rate, save rate and the other ratios.

## How often should you pull the numbers?

Pull daily for the first week, then slow down, but don't stop. We matched snapshots of about 150,000 videos that had at least 1,000 views after 30 days and measured how much of those views each had after one day, two days and a week.

**TikToks gain views longest: 65% of 30-day views after one day, vs 82 to 86% elsewhere**

Median share of a video's 30-day views reached after 24 hours, 48 hours and 7 days

| platform | After 24 hours | After 48 hours | After 7 days |
| - | - | - | - |
| TikTok | 65.2 | 74.8 | 89.5 |
| Instagram Reels | 86.3 | 94.4 | 98 |
| YouTube Shorts | 82.4 | 92.9 | 99.7 |
| Facebook | 85.7 | 93.9 | 99.1 |

- **The first week does most of the work.** After seven days, the median video had 90% (TikTok) to 99.7% (YouTube Shorts) of its 30-day views.
- **TikTok is the slow one.** The median TikTok had 65% of its 30-day views after a day and 75% after two, so a single check on day one undercounts it by a third.
- **After day 30, most videos barely move, but the big ones do.** For videos posted in April and May 2026, the median TikTok gained 3.1% between day 30 and day 90. The median Reel gained 0.9% and the median Short 0.07%. Yet one TikTok in ten grew by 36% or more, and 21% of all day-90 views on these TikToks arrived after day 30.

viral.app follows the same pattern. It refreshes videos under 60 days old at every scheduled sync (up to five a day, depending on plan), videos 60 to 119 days old every two days, and older videos weekly. Plans with hourly sync slots refresh the newest videos more often. To judge whether a number is high once you have it, see our [benchmarks for how many views is viral](https://viral.app/blog/guides/how-many-views-is-viral) on each platform.

## Which unified APIs pull creator analytics from several platforms at once?

Unified APIs put one login flow and one schema over the platform APIs. Most of them read accounts that connect to them, so they inherit the platforms' rule: full analytics for accounts that log in, little or nothing for the rest. Two options below work without any connection: Data365 and Apify's scrapers read public data.

_Unified, public-data and scraper APIs. Platform counts and prices from each vendor's own site, checked October 2, 2026._

| API | Whose data | Platforms | Public pricing |
| - | - | - | - |
| Ayrshare | Connected social profiles | 14+ | $149 a month for 1 profile, $299 for 10, from $599 for 30 |
| bundle.social | Connected accounts | 15 | Free for 3 accounts, Pro $100 a month, Business $400 |
| PostPeer | Connected accounts | 11 | 20 free credits, from $33 a month billed yearly |
| Phyllo | Creators who consent by connecting | 10+ | Contact sales |
| Data365 | Public data, no connection | 7, incl. X and Reddit, no YouTube | €300 a month for 1 network, €850 for 3 |
| Apify scrapers | Public data, no connection | One scraper per platform | From $1.00 to $1.70 per 1,000 results |

- **Ayrshare** is a posting API with analytics on connected profiles. Its [analytics API page](https://www.ayrshare.com/social-media-analytics-api/) lists post, account and comment metrics plus audience demographics, "715 documented fields across 12 networks". Prices are per profile, one brand's set of accounts, on its [pricing page](https://www.ayrshare.com/pricing/).
- **bundle.social** covers 15 platforms, including Threads, Bluesky and Mastodon, and says plainly that its [analytics depends on connected accounts](https://bundle.social/social-media-analytics-api). Its [free plan](https://bundle.social/pricing) includes analytics for three accounts.
- **PostPeer** has the lowest paid entry price of the three. The [PostPeer Unified Social Media API](https://www.postpeer.dev/) posts, schedules and reads analytics across 11 networks, and it ships an MCP server and agent skills. An analytics call costs 1 credit. Its [analytics FAQ](https://www.postpeer.dev/social-media-analytics-api) says it can pull existing content from a connected account, not only posts published through PostPeer. Paid plans on its [pricing page](https://www.postpeer.dev/pricing) start at $33 a month, billed yearly, for 2,000 credits.
- **Phyllo** is built for influencer platforms: creators connect their accounts, and its [social data API](https://www.getphyllo.com/social-data-api) returns profile, content and audience demographics, plus income data across platforms.
- **Data365** sells public data without account connections. Its [site](https://data365.co/) lists profiles, posts and comments on TikTok, Instagram, Facebook, X, Reddit, Threads and Pinterest, but not YouTube. [Pricing](https://data365.co/pricing) starts at €300 a month for one network and 500,000 credits, where one post costs one credit.
- **Apify** is a marketplace of pay-per-result scrapers. Its [TikTok Scraper](https://apify.com/clockworks/tiktok-scraper) returns plays, likes, comments, shares and saves per video from $1.70 per 1,000 results. The [Instagram Reel Scraper](https://apify.com/apify/instagram-reel-scraper) returns views, likes, comments and shares from $1.00 per 1,000 reels. You schedule the runs and store the history yourself.

If your product lets customers connect their own accounts, a unified API saves you a separate app review and OAuth flow per platform. Check which metrics each returns per platform before you commit, because they can only pass on what the platform APIs give them.

## What does the viral.app API offer?

viral.app is [a tracking tool with an API](https://viral.app/blog/updates/api-launch), not a wrapper around the platform APIs. You add public TikTok, Instagram, YouTube Shorts, Facebook and Snapchat accounts or single videos by URL, and creators don't connect anything. viral.app reads the counts each platform shows publicly, retrieved through specialized public-data providers, as its [privacy policy](https://viral.app/legal/privacy) states. It refreshes them on a schedule, so each video builds up a metric history. The [viral.app API](https://viral.app/ugc-api) exposes the same data your team sees in the [UGC analytics dashboard](https://viral.app/ugc-analytics).

Its public [OpenAPI spec](https://viral.app/api/v1/docs) listed 198 operations on October 2, 2026. The ones for analytics:

- **Tracking (19 operations):** add accounts and videos, set each account's video limit and competitor flag, refresh, and check sync status.
- **Analytics (22 operations):** KPIs with period comparison, metric history by day, week or month, top videos, accounts and creators, views by country, and CSV exports.
- **Live lookups (8 operations):** fresh data on any public account, video or search, at 3 credits per request. Account search, video search and comments cover TikTok, Instagram, YouTube, Facebook and Snapchat; hashtag search covers all of them but Facebook.

The rest cover Creator Hub: creators, campaigns, briefs, payouts and chat. Requests authenticate with an org-scoped key in the `x-api-key` header. This is the video-detail example from our API reference, trimmed:

```bash
curl https://viral.app/api/v1/videos/tiktok/76891234567890012345678 \
  -H "x-api-key: $VIRAL_APP_API_KEY"
```

```json
{
  "platform": "tiktok",
  "platformVideoId": "76891234567890012345678",
  "accountUsername": "viral_creator",
  "caption": "Amazing viral content! #trending #viral #fyp",
  "durationSeconds": 45,
  "viewCount": 1250000,
  "likeCount": 125000,
  "commentCount": 8500,
  "shareCount": 15000,
  "bookmarkCount": 35000,
  "viralityFactor": 8.5,
  "publishedAt": "2025-12-15T18:30:00Z",
  "loadAt": "2025-12-20T08:00:00Z",
  "orgAccountId": "orgacc_W97M6KLWV4Yq"
}
```

`viralityFactor` is the video's views divided by its account's median views, and `loadAt` is the time of the last refresh. When you connect TikTok Spark Ads, the response also splits `viewCount` into `organicViewCount` and `paidViewCount`.

- **Webhooks:** 53 signed event types for chat, creators, campaigns, briefs, assignments, payouts, jobs and applications, with up to ten delivery attempts over about three days, as the [webhooks guide](https://viral.app/docs/brands/api/webhooks) describes. There is no webhook for new videos or view milestones yet, so analytics integrations poll after the scheduled refresh.
- **MCP server:** one URL, `https://viral.app/api/mcp`, with a browser sign-in, for ChatGPT, Claude, Cursor, Codex, Gemini, Grok and other MCP clients. Agents can read analytics, manage tracking, run live lookups and work in Creator Hub, but [cannot start payouts](https://viral.app/docs/brands/api/mcp). A tool that spends credits returns a quote first and spends only after you confirm.
- **Plans:** API access, webhooks and the MCP server come with every paid plan: Pro ($199 a month, or $139 billed yearly, with 1,000 tracked videos), Ultra ($399, or $279 yearly, with 5,000) and Scale ($599, or $419 yearly, with 20,000).
- **Limits:** no X, LinkedIn, Threads or Pinterest, no YouTube long-form, and no Instagram Stories, feed videos or carousels. Because the data is public, there is no reach, impressions or watch time, which only the account owner can see.

## Social media analytics APIs compared

_The main options side by side. Facts and prices checked October 2, 2026._

| Option | Accounts you don't control | Platforms | Price | Best for |
| - | - | - | - | - |
| Official platform APIs | YouTube counts; Instagram counts for professional accounts | One each | Free | Reach, watch time and audience data on your own accounts |
| TikTok Research API | Yes | TikTok | Free, research only | Academic and non-profit studies |
| Ayrshare, bundle.social, PostPeer | No, connected accounts | 11 to 15 | $0 to $599+ a month | Products and dashboards where customers connect their accounts |
| Phyllo | When creators connect | 10+ | Contact sales | Influencer platforms that need audience demographics |
| Data365 | Yes, public data | 7, no YouTube | From €300 a month | Raw public data, including X and Reddit |
| Apify scrapers | Yes, public data | One scraper each | From $1.00 per 1,000 results | Occasional pulls you schedule and store yourself |
| viral.app | Yes, any public account by URL | 5 short-form | API from $199 a month | Creator programs and competitor tracking on short-form video |

## Which API should you pick for creator data across platforms?

- **Your own brand accounts on one or two platforms:** use the official APIs. They're free and the only source of reach, watch time and audience data.
- **A product where customers connect their own accounts:** use a unified API such as Ayrshare, bundle.social or PostPeer, and check its per-platform metrics first.
- **Creators who will connect, and you need their audience:** use Phyllo, or the official APIs with each creator's authorization.
- **Creators and competitors who won't connect, with history kept for you:** use a tracking tool with an API, such as viral.app. It refreshes TikTok, Reels, Shorts, Facebook and Snapchat on a schedule and runs campaign payouts on the same data.
- **Creators and competitors who won't connect, stored by you:** use a public-data API such as Data365, which also covers X and Reddit but not YouTube. For occasional pulls, a pay-per-result scraper such as Apify's is cheaper.
- **Academic research:** combine the TikTok Research API with YouTube Data API v3.

If you'd rather not build on an API, see our roundup of [marketing analytics tools](https://viral.app/blog/guides/best-marketing-analytics-tools).

## FAQ

**What is a social media analytics API?**

An interface that returns performance data, such as views, likes, comments, shares, followers and reach, for social accounts and posts, so you can use it in your own dashboards, reports or tools. It can be a platform's own API, a unified API that wraps several platforms, or the API of a tracking tool like viral.app.

**Is there a free social media analytics API?**

Yes. YouTube Data API v3 is free within 10,000 quota units a day and returns public counts for any video. TikTok's Display API and Meta's Instagram and Facebook APIs are free for accounts that authorize your app. Among unified APIs, bundle.social has a free plan for three accounts and PostPeer gives 20 free credits.

**Can I get TikTok analytics for accounts I don't own through an API?**

Not from TikTok for commercial use. The Display API only returns data for users who authorize your app, and the Research API, which covers public videos, is limited to approved academic and non-profit researchers. Businesses use a public-data API, a scraper or a tracking tool such as viral.app instead.

**What is the best API for pulling creator analytics from several platforms at once?**

It depends on whether the creators connect their accounts. If they do, a unified API such as Ayrshare, bundle.social, PostPeer or Phyllo gives you one integration for many platforms. If they don't, use a tracking tool with an API, such as viral.app for TikTok, Instagram, YouTube Shorts, Facebook and Snapchat, a public-data API such as Data365, or pay-per-result scrapers such as Apify's.

**Is there a social media engagement API?**

Engagement counts come from the same analytics endpoints. Publicly, TikTok shows likes, comments, shares and saves; YouTube shows likes and comments but no shares or saves; Facebook shows reactions, comments and shares. Owner-only metrics such as reach, impressions and watch time need the account owner's authorization.

**What is the difference between a social media analytics API and a monitoring API?**

An analytics API measures accounts and posts you already know. A monitoring or listening API searches for mentions, keywords and hashtags across posts you don't know yet. viral.app's live endpoints can search videos on TikTok, Instagram and YouTube and hashtags on TikTok and Instagram, but it is a tracking tool, not a listening tool.

## Try the viral.app API

Track a few creator or competitor accounts, then read the same numbers from your scripts, n8n workflows or an AI agent through the MCP server. Setup steps and keys are in the [API and automation docs](https://viral.app/docs/brands/api).

[Create a brand account on viral.app](https://viral.app/auth/sign-up?returnUrl=%2Fsetup%3Fintent%3Dbrand) and start tracking.
