Social Media Analytics API for Every Platform

Track post performance, account growth, and follower trends across your connected platforms — from one dashboard, one API, and one consistent set of metrics.

TypeScript
import PostZen from '@postzen/node'
const postzen = new PostZen()

// 1. Connect any of 10 channels via OAuth
const { authUrl } = await postzen.accounts.connect({ platform: "instagram", profileId });

// 2. Publish everywhere in one call
await postzen.posts.post({
  body: {
    content: 'New feature drop',
    mediaItems: [{ url: 'https://example.com/demo.mp4' }],
    platforms: [
      { platform: 'instagram', accountId: instagramId },
      { platform: 'linkedin', accountId: linkedinId },
      { platform: 'tiktok', accountId: tiktokId },
    ],
  },
})

Key Features

Turn every post into a clear performance signal

Compare content, follow account growth, and report results without stitching together platform-specific analytics workflows. Metrics vary by platform.

  • Eight Core MetricsImpressions, reach, likes, comments, shares, saves, clicks, and views — normalized across platforms.
  • Post TimelinesDay-by-day performance for any post, so you can see how content compounds after publishing.
  • Account & Daily MetricsAggregate daily metrics per account or profile, with publish-date or received-date attribution.
  • Follower GrowthFollower history per account, tracked daily, readable from the dashboard or the API.
  • External Post SyncPostZen also discovers posts you published outside PostZen on supported platforms, so analytics cover your whole account.
  • Best Time to PostEngagement-based recommendations for when to schedule, per platform and account.

How it Works

From connection to insights in 3 steps

No tracking pixels, no spreadsheets — connect once and the numbers flow.

  1. 01. Connect Accounts

    Link accounts via hosted OAuth. Analytics permissions are part of the same connect flow.

  2. 02. PostZen Collects Metrics

    Metrics sync automatically from each platform's API — no polling code, no per-platform quirks.

  3. 03. Read Anywhere

    Explore charts in the dashboard, or pull the same numbers from the REST API, SDKs, and MCP server.

Why use PostZen?

Skip months of platform integrations

Each social network means its own developer app, review process, token lifecycle, and media rules. One PostZen integration replaces all of it.

Building it yourself

  • 10 developer apps, 10 OAuth flows, 10 app reviews
  • Token refresh, rate limits, and retry logic per platform
  • Media specs and API rules that change without warning
  • Months of integration work before your first post
  • App review rejections and delays that block your launch
  • Quota restrictions that limit your users and frustrate your team
PostZen
  • Prove ROI

    Show stakeholders exactly what social delivers.

  • Double Down on Winners

    Spot top content and repeat what works.

  • One Report, Every Client

    Consolidated multi-platform reporting for agencies.

  • Post at Peak Hours

    Best-time recommendations from your own engagement data.

  • Agent-Readable Metrics

    AI agents pull analytics through the MCP server.

  • Build Custom Dashboards

    A consistent API for your own reporting UI.

2,000+ users

Pricing

How much does social media analytics cost?

Analytics is usually a paid add-on or top-tier feature. PostZen includes post, account, and follower analytics on every plan.

ApproachMonthly costWhat you get
Buffer (Team)$12/moAnalytics locked to paid tiers, no API
Hootsuite Advanced$249/moAdvanced analytics on top tier only, no public API
Ayrshare Premium$149/moAnalytics API on Premium plans
PostZenFree up to 2 accounts, then per-accountPost, account, and follower analytics + API on every plan.

* PostZen's free tier: first 2 social accounts free with unlimited posts and full API + dashboard access.

Code Examples

Read social analytics with a few API calls

Query post performance, inspect a daily timeline, and combine account metrics with follower history.

cURL
curl "https://api.postzen.dev/v1/analytics?platform=instagram&fromDate=2026-08-01&toDate=2026-08-25" \
  -H "Authorization: Bearer $POSTZEN_API_KEY"
cURL
curl "https://api.postzen.dev/v1/analytics/post-timeline?postId=post_123" \
  -H "Authorization: Bearer $POSTZEN_API_KEY"

# Response:
# {
#   "points": [
#     { "date": "2026-08-20", "likes": 42, "comments": 8, "impressions": 1580 },
#     { "date": "2026-08-21", "likes": 67, "comments": 12, "impressions": 3200 }
#   ]
# }
cURL
curl "https://api.postzen.dev/v1/analytics/daily-metrics?platform=x&attribution=publish" \
  -H "Authorization: Bearer $POSTZEN_API_KEY"

curl "https://api.postzen.dev/v1/accounts/follower-stats" \
  -H "Authorization: Bearer $POSTZEN_API_KEY"

View the full API reference →

Platform Coverage

One API, 10 social networks

Publish through one integration while keeping the options that matter on each platform.

Frequently asked questions

Still have questions?

What is a social media analytics API?

A social media analytics API lets you programmatically read post metrics, account metrics, and follower stats. PostZen collects them from each platform's official API and normalizes them behind one interface.

Which metrics does PostZen track?

PostZen tracks eight core metrics — impressions, reach, likes, comments, shares, saves, clicks, and views — plus follower counts. Which metrics a platform reports varies; metrics a platform does not expose are shown as not reported rather than zero.

Does analytics cover posts I published outside PostZen?

Yes, on supported platforms. PostZen discovers external posts on your connected accounts and includes them in analytics.

How far back can I query?

Post analytics queries default to the last 90 days per request, and daily metrics support up to 180 days per request. Use fromDate and toDate to pick the window.

Can I build my own dashboard on top of it?

Yes. PostZen provides consistent REST endpoints for post analytics, timelines, daily metrics, best-time recommendations, and follower stats, plus SDKs.

Can AI agents read analytics?

Yes. The hosted MCP server exposes analytics tools — getAnalytics, getPostTimeline, getDailyMetrics, getFollowerStats, and getBestTimeToPost — so agents can report on performance.

Know what worked, minutes after it posts

Connect your accounts and read every metric from one dashboard and one API.