Social Media Analytics API

Social media analytics API for cross-platform reporting

One social media analytics API for post performance, account metrics, and raw platform data across 13 platforms.

Bring post performance, account analytics, raw platform data, and historical content into one reporting workflow. Read normalized metrics with the same field names on every platform, or the platform's raw payload with audience age, gender, country, and city splits and watch time where the platform reports them.

Last updated: November 2026

One API keyNo per-account fees15 platformsAPI key auth13 platforms with analyticsNormalized and raw dataOfficial APIs838k+ connected accountsDirect engineer support

Quick start
const response = await fetch(  "https://api.bundle.social/api/v1/analytics/post?postId=post_123&platformType=LINKEDIN",  {    headers: {      "x-api-key": process.env.BUNDLE_SOCIAL_API_KEY    }  });const analytics = await response.json();

Native analytics APIs

  • Each platform exposes different metrics, naming, permissions, refresh behavior, and historical windows.
  • Marketing teams need comparable reports, but native APIs return platform-specific shapes.
  • Post history imports and analytics collection are separate workflows in most direct integrations.
  • Client reporting often becomes spreadsheet work when the product does not normalize data.
  • Audience demographics live behind separate API surfaces that most teams never connect to their reporting stack.

What bundle.social handles

  • Pull post performance and account-level analytics for Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Reddit, Pinterest, Bluesky, Mastodon, Snapchat, and Google Business, plus X on request.
  • Read normalized metrics with the same field names on every platform, or the raw platform payload for fields the normalized shape does not map.
  • Access raw audience data including age splits, gender, city and country breakdowns, and watch-time metrics where the platform reports them.
  • Combine analytics with scheduled publishing so reports connect back to campaigns.

Raw analytics data, ready for your own dashboards

bundle.social collects raw social media analytics from connected platforms and makes them available via API. Audience splits by city, age group, gender, and watch time are yours to pipe into any dashboard or reporting tool. For TikTok, Instagram, Threads, YouTube, and Snapchat, these breakdowns are stored once raw analytics storage is turned on for your organization.

How it works

Connect accounts, publish or import posts, then pull post analytics, account metrics, and raw audience data via API.

  1. 01

    Connect supported accounts

    Analytics depends on connected accounts, granted scopes, and platform API availability.
  2. 02

    Publish or import posts

    Use scheduled publishing and post history imports to build a source of truth for social content.
  3. 03

    Read performance and audience data

    bundle.social refreshes account metrics every 24 hours on its own. Pull post analytics, account metrics, and raw audience data through the API or dashboard.

Social media analytics API for reporting

Social media analytics API for reports connected to publishing

A social media analytics API is most useful when it is connected to the same system that created, scheduled, or imported the content. If publishing lives in one tool and reporting lives somewhere else, teams lose campaign context, post IDs, account ownership, and the operational history behind each result.

bundle.social keeps analytics in the same API as publishing. Your product can publish posts, import historical content, fetch post-level metrics, read account analytics, and access raw audience data where platforms expose it, all keyed by the same post and team IDs.

Cross-platform reporting without pretending metrics are identical

The normalized fields have the same names everywhere, but they do not always measure the same thing. TikTok's account views are a rolling 30-day total, while YouTube's are a lifetime count. On Instagram posts, impressionsUnique holds reach. Bluesky has no impressions metric, so on Bluesky posts that field holds a combined count of likes, replies, reposts, and quotes. Facebook reports no account-level likes, so that field is 0.

A report should label each number with what the platform actually measured. Rolling-window metrics can fall when a strong day drops out of the window, so their day-to-day change is not the number gained that day. Lifetime counters only grow, so the difference between two snapshots is a true daily delta.

Example report: a weekly client report

The developer example below builds the core of a weekly Instagram report. It lists the posts the team published in the week, reads their metrics in one bulk request, and keeps the newest snapshot of views, reach, likes, comments, shares, and saves per post. The account snapshots for the same team give the follower trend for the week.

Agencies add an audience page from the raw account payload, with age, gender, and city splits for the clients that have them. SaaS products embed the same numbers in their own dashboards, and AI content tools feed the per-post results back into what they generate next.

Data model

Normalized vs raw analytics, refresh frequency, and retention

The same snapshots come in two shapes. Refreshes slow down as posts age, and snapshots are kept for 30 days.

Normalized analytics

GET /api/v1/analytics/post and GET /api/v1/analytics/social-account return snapshots with fixed field names on every platform. Post snapshots carry impressions, impressionsUnique, views, viewsUnique, likes, dislikes, comments, shares, and saves. Account snapshots carry followers, following, impressions, impressionsUnique, views, viewsUnique, likes, comments, and postCount. GET /api/v1/analytics/post/bulk reads up to 60 posts in one request.

Raw analytics

GET /api/v1/analytics/post/raw and GET /api/v1/analytics/social-account/raw return the same snapshots with a raw object holding the platform's own payload, unmapped. Use them for demographics, watch time, traffic sources, and any field the normalized shape leaves out. Raw storage for TikTok, Instagram, Threads, YouTube, and Snapchat breakdowns is off by default and turned on per organization.

Refresh frequency

Account analytics refresh every 24 hours. A post refreshes on the organization's interval, every 24 hours by default, for its first 2 days, then daily until it is 30 days old, then weekly. The interval can be shortened per organization, down to 1 hour. X is refreshed only on request.

Manual refresh and retention

POST /api/v1/analytics/post/force and POST /api/v1/analytics/social-account/force fetch fresh numbers now, up to 6 times per post and 6 times per social account in a rolling 24 hours by default. Snapshots are kept for 30 days, and post snapshots older than two days are thinned to one per day, so store what you need for long-term reports.

Two analytics layers, one API

Post-level engagement data plus account-level audience demographics. Both available via API and dashboard.

Post analytics

Review engagement, reach, impressions, and performance data for individual published posts where platform APIs expose it.

Account analytics

Track account-level metrics including follower counts, profile impressions, reach, and engagement trends for connected social accounts.

Raw audience demographics

Access raw platform data for audience age splits, gender breakdown, top cities, country reach, and watch time. Build the dashboard your clients actually want.

City and country splits

See where your audience is located at the city and country level on Instagram, Threads, and TikTok, and at the country level on YouTube.

Age and gender breakdowns

Get audience age-range and gender distribution data from platforms that expose it, including Instagram, TikTok, and YouTube.

Watch time and video metrics

Pull minutes watched, average view duration, and audience retention from YouTube, and total and average watch time from TikTok, for content performance analysis.

Post history imports

Import historical posts for supported accounts to avoid starting every report from zero.

Dashboard plus API

Let clients inspect data visually while your product consumes the same reporting layer programmatically.

Client reporting workflows

Tie publishing, scheduled content, post history, and analytics into one operational view for agency deliverables.

Metric coverage

Social media analytics API coverage by platform

Account metrics and post metrics each platform returns through the normalized endpoints. A metric a platform does not report comes back as 0, and Discord and Slack have no analytics.

Social media analytics API coverage by platform
RuleDetails
InstagramAccount: followers, following, post count, and 30-day views, profile views, likes, and comments. Post: views, reach, likes, comments, shares, saves. Raw: follower, engaged, and reached audience by age, gender, country, and city.
FacebookAccount: followers, impressions and unique impressions over a rolling 30 days, page views. Post: impressions, unique impressions, video views, reactions, comments, shares, saves. Raw: page demographic insights.
TikTokAccount: followers, following, views and unique viewers over a rolling 30 days, lifetime likes, comments, video count. Post: views, likes, comments, shares, saves. Raw: audience age, gender, country, and city, and per-video watch time.
YouTubeAccount: subscribers, lifetime views, comments, video count. Post: views, likes, comments, favourites. Raw: age, gender, and country splits, traffic sources, devices, audience retention, and minutes watched.
LinkedInAccount: followers, impressions, members reached, reactions, comments; page views and post count on company pages. Post: impressions, unique impressions, video views, reactions, comments, reshares. Raw: reaction-type breakdowns.
ThreadsAccount: followers, post count, and views, likes, and replies over the roughly two-year window Threads allows. Post: views, likes, replies, reposts. Raw: follower demographics by age, gender, country, and city.
PinterestAccount: followers, following, and 30-day Pin impressions, video views, saves, and active Pins. Post: impressions, video views, reactions, comments, saves.
SnapchatAccount: followers, post count, and all-time views, unique viewers, favourites, and replies. Post: views, unique viewers, favourites, replies, shares, screenshots. Raw: audience demographics.
RedditAccount: none, because Reddit has no profile metrics. Post: views, upvotes, downvotes, comments, crossposts.
BlueskyAccount: followers, following, post count. Post: likes, replies, reposts and quotes, and a combined engagement count in place of impressions.
MastodonAccount: followers, following, post count. Post: favourites, replies, boosts.
Google Business ProfileAccount: times the business appeared on Google Search and Maps in the trailing 30 days. Google returns no per-post analytics for local posts.
XAccount: followers, following, post count. Post: impressions on your own posts under about 30 days old, likes, replies, reposts and quotes, bookmarks. X bills every read, so X analytics refresh only when you request them.

Developer example

Build a weekly post report from the analytics API

Examples use bundle.social's public API shape: API key authentication, a post date, selected social account types, and platform-specific data.

TypeScript
const API = "https://api.bundle.social/api/v1";const headers = { "x-api-key": process.env.BUNDLE_SOCIAL_API_KEY };// Posts this team published on Instagram in the reporting week.const list = await fetch(  API + "/post?teamId=team_123&status=POSTED&platforms=INSTAGRAM" +    "&postDateFrom=2026-10-19T00:00:00.000Z&postDateTo=2026-10-26T00:00:00.000Z&limit=60",  { headers }).then((res) => res.json());// Up to 60 post ids per request, returned 20 per page.const bulk = await fetch(  API + "/analytics/post/bulk?platformType=INSTAGRAM&page=1&postIds=" +    list.items.map((post) => post.id).join(","),  { headers }).then((res) => res.json());// Each item is a snapshot; the newest one holds the current totals.const latest = (items) => [...items].sort((a, b) => b.createdAt.localeCompare(a.createdAt))[0];const rows = bulk.results.map(({ postId, items, error }) => {  const snapshot = latest(items);  return {    postId,    error,    views: snapshot?.views ?? 0,    reach: snapshot?.impressionsUnique ?? 0, // Instagram reports reach in impressionsUnique    likes: snapshot?.likes ?? 0,    comments: snapshot?.comments ?? 0,    shares: snapshot?.shares ?? 0,    saves: snapshot?.saves ?? 0  };});// Account context: one snapshot per refresh, so the series doubles as a follower trend.const account = await fetch(  API + "/analytics/social-account?teamId=team_123&platformType=INSTAGRAM",  { headers }).then((res) => res.json());const followerTrend = account.items.map((item) => ({ date: item.createdAt, followers: item.followers }));

Supported content

  • Post analytics
  • Account analytics
  • Raw audience demographics
  • City and country splits
  • Age and gender breakdowns
  • Watch time and video metrics
  • Post history
  • Engagement data
  • Dashboard reporting

Honest limitations

  • Analytics availability varies by platform, account type, permission scope, and native API access.
  • Audience demographic data depth depends on the connected account's permissions and platform API grants.
  • Historical analytics may depend on when an account was connected or imported.
  • Analytics need a paid plan. The Free plan collects none, so upgrading does not backfill earlier weeks.
  • Snapshots are kept for 30 days. Store them on your side for longer history.
  • Threads returns no follower demographics for profiles under 100 followers.

Developer-first infrastructure

Visible post status

Track scheduled, processing, posted, retrying, and error states per post.

Verbose errors

When native APIs fail, we return human-readable error messages and actionable recovery steps.

Flat pricing

No per-post counting. Predictable pricing for teams managing many users, workspaces, and connected accounts.

Same-day support

Direct access to the engineers building the API. We respond to technical issues the same day, sometimes the same hour.

Technical guides & documentation

Questions developers ask before building

Which platforms support analytics?

Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Reddit, Pinterest, Snapchat, Mastodon, Bluesky, and Google Business, plus X, which refreshes only on request because X bills every read. Google Business returns account-level metrics only, and Reddit returns post-level metrics only.

What is the difference between post analytics and account analytics?

Post analytics covers engagement, reach, and impressions for individual published posts. Account analytics covers account-level metrics like follower growth, profile reach, and audience demographics.

What is the difference between normalized and raw analytics?

Normalized endpoints return the same field names on every platform, such as views, likes, comments, and followers, so you can chart accounts side by side. Raw endpoints return the platform's own payload for the same snapshot, with fields the normalized shape does not map, such as demographics and watch time.

How often are analytics updated?

Account analytics refresh every 24 hours. Posts refresh daily for their first month and weekly after that. You can force a refresh up to 6 times per post per rolling 24 hours by default.

Can I get raw audience demographics?

Yes. Raw endpoints return audience data from connected platforms, including age splits, gender breakdowns, city and country reach, and watch-time metrics where the platform reports them. For TikTok, Instagram, Threads, YouTube, and Snapchat, raw storage is turned on per organization.

Does every platform return the same metrics?

No. Each platform exposes different metrics and permissions. bundle.social normalizes the workflow without hiding real platform differences.

How long is analytics data kept?

30 days. Post snapshots older than two days are thinned to one per day. For yearly reports, fetch the data on a schedule and store it in your own database.

Are analytics available on the Free plan?

No. The Free plan includes API access but not analytics, and nothing is collected in the background while an organization is on it. Analytics start on paid plans.

Can I import historical posts?

Yes. bundle.social includes post history import workflows for supported platforms, with limits depending on platform APIs and organization settings.

Can agencies use this for client reports?

Yes. The strongest use case is combining scheduled posts, imported history, raw analytics, and audience data into client-facing reporting workflows.

Keep comparing your options