Skip to main content
Analytics in SocialAPI has 3 parts: an overview of how your posts performed across accounts, stored daily history for accounts, brands, and posts, and live reads that fetch current figures from a platform. The overview and history never call a platform, so they answer fast and work when a token has expired. Live reads show the platform’s current numbers. Analytics requests cost no credits. An account needs the analytics.read permission for the overview, its history, its live post metrics, and its platform insights, and the posts.read permission for POST /v1/accounts/{account_id}/sync. Platform-specific insight endpoints, such as Instagram’s account summary and Google Business Profile performance metrics, are on the platform pages linked in Platform insights.

Endpoints

Read an overview

GET /v1/analytics/overview summarises the posts published in a date range: totals against the previous range, engagement per publish day, breakdowns by platform and media type, the top posts, the hours your posts did best in, and the replies, DMs, and moderation SocialAPI performed. It covers every account your key can read, or one account, brand, or platform.
Response (HTTP 200), with top_posts and activity trimmed to one entry:
  • Engagements: engagements is likes + comments + shares + saves. views is reported apart, because only some platforms report it. See which platforms report each figure in Read live post metrics.
  • Counters: the figures are the counters SocialAPI last synced. The overview makes no platform call and costs no credits. To refresh an account’s counters first, call POST /v1/accounts/{account_id}/sync.
  • Posts counted: every published target in range, including posts published outside SocialAPI that account sync imported. A post published to 2 accounts counts as 2 posts and can appear twice in top_posts. Posts whose hidden field is true are left out. Posts of accounts you disconnected stay in.
  • Time zone: from, to, by_day, and best_times are cut in tz, and today is today in tz. activity days are UTC, as in stored history.
  • Best times: best_times describes when your past posts did well. It does not say when your audience is online.
  • Excluded accounts: an account without analytics.read is left out of every figure and counted in accounts_excluded. Check it before you compare 2 overviews.
  • Brand-restricted keys: a brand-restricted key sees its own brands only. An account_id or brand_id outside them returns 404.
A tz that is not an IANA time zone name returns 400 validation.tz_invalid, and an unknown sort returns 400 validation.sort_invalid. The range rules are those of stored history: 400 validation.from_invalid, validation.to_invalid, validation.range_inverted, or validation.range_too_wide past 400 days. An unknown account returns 404 account.not_found and an unknown brand returns 404 resource.not_found.

Read stored history

All 3 history endpoints take the same query parameters and return the same shape.
Response (HTTP 200):
Read subjects_counted before you chart a sum. A day on which fewer subjects reported adds up lower, and without the count a gap looks like a decline. A range longer than 400 days returns 400 validation.range_too_wide. A from or to that is not YYYY-MM-DD returns 400 validation.from_invalid or 400 validation.to_invalid, and to before from returns 400 validation.range_inverted. A metrics name SocialAPI does not store returns no series for it. A range with no stored points returns "series": [].

What SocialAPI stores

  • Post history: SocialAPI adds a point each time it syncs the post’s account: when you connect it, and when you call POST /v1/accounts/{account_id}/sync. An account without analytics.read adds no points. On every platform except X, LinkedIn member profiles, WhatsApp, and Pinterest, post history also gains points without a sync call. History starts when SocialAPI first tracks the post, so a post that was published long ago has no earlier points. A post with 2 or more targets returns one series per metric, summed across its targets. Pinterest posts are not synced, so they have no history.
  • Action counts: SocialAPI counts the replies, DMs, and moderation actions you send through the API, MCP tools, and Automations, per account and per day (UTC). Today’s count can be up to 24 hours behind. An account without analytics.read is not counted.
  • Platform metrics: follower, reach, and view history from the platforms is not stored. Read current figures from the platform insight endpoints below.

Account, brand, and post history

  • Account: GET /v1/accounts/{account_id}/analytics returns the account’s series and, for an account with Pages, the series of its Pages summed. Add page_id for one Page. An unknown account returns 404 account.not_found, an unknown Page returns 404 resource.not_found, and an account without analytics.read returns 403 account.permission_missing.
  • Brand: GET /v1/brands/{brand_id}/analytics sums every account and Page in the brand per metric and day. The sum includes accounts you disconnected, so history does not disappear when an account disconnects. An account without analytics.read is left out of the sum. A brand-restricted key reads only its own brands. An unknown brand returns 404 resource.not_found. day_tz is mixed when platforms cut days differently.
  • Post: GET /v1/posts/{post_id}/analytics takes the SocialAPI post ID (a UUID), not the platform’s post ID. A post that does not exist, or one your key cannot see, returns 404 resource.not_found. A target whose account lacks analytics.read is left out of the total, and a post with no target left returns 403 account.permission_missing.

Read live post metrics

GET /v1/posts/{post_id}/metrics asks each platform for the post’s current figures. It accepts the SocialAPI post ID or a platform post ID. A platform post ID that matches more than one post returns 409 ambiguous_post_id: use the SocialAPI post ID.
Response (HTTP 200):
Each published target has metrics or, when its platform cannot report them, an error. The HTTP status stays 200 whatever the targets return. A target whose status is not published does not appear. The figures are written to the post, so GET /v1/posts/{post_id} shows the latest values and metrics_synced_at. A figure a platform does not report is 0, except Instagram insights, which are absent when Instagram does not report them. A target that cannot be read returns the platform’s error, for example 404 resource.not_found when the platform no longer returns the post. A target whose account lacks analytics.read returns resource.not_found in its error, with a message that says the account could not be loaded.

Several posts at once

GET /v1/posts/metrics reads up to 20 posts in one call. Pass the IDs comma-separated in post_ids: SocialAPI post IDs, platform post IDs, or a mix. A repeated ID is returned once.
Response (HTTP 200):
Items come back in the order of post_ids, each with the same targets as GET /v1/posts/{post_id}/metrics. A post that cannot be read gets an error on its item, and the request still returns 200: resource.not_found for an unknown post or one your key cannot see, ambiguous_post_id for a platform post ID that matches more than one post. A missing post_ids returns 400 validation.field_required. More than 20 IDs, or an ID longer than 100 characters, returns 400 validation.field_invalid.

Refresh an account’s posts

POST /v1/accounts/{account_id}/sync starts pulling the account’s posts from the platform, so new posts and fresh counts appear without waiting for the background sync. It returns at once with HTTP 202 while the sync runs.
Response (HTTP 202):
To wait for the result, poll GET /v1/accounts/{account_id}/sync until state is no longer syncing, then read the posts again. A finished sync is idle with a newer last_synced_at. A sync that failed is failed, and error says why.
  • Depth: Instagram covers up to the 500 most recent posts, Facebook up to the 500 most recent per Page, TikTok and Zalo the 20 most recent, and other platforms the 25 most recent. The TikTok platform route POST /v1/platforms/tiktok/accounts/{account_id}/sync has no cooldown: see TikTok.
  • Already running: a POST for an account that is already syncing returns that sync and starts no second one. Connecting an account starts a sync too.
  • Cooldown: SocialAPI allows 1 sync per account every 15 minutes. The window starts when you connect the account and when a sync starts. A request inside the window returns 429 accounts.sync_rate_limited, with Retry-After and error.meta.retry_after_seconds set to the seconds left.
  • Daily limit: each day, your plan allows 10 syncs for every brand it includes, so Side Hustle allows 100, Full Send 500 (500 more per Profile pack), and Enterprise has no limit. The count resets at midnight UTC. A request past it returns 429 accounts.sync_daily_limit, with Retry-After and error.meta.retry_after_seconds set to the seconds until midnight UTC, and error.meta.limit set to your plan’s daily limit. SocialAPI already refreshes every account’s recent posts in the background, so most integrations never need the limit.
  • Unsupported platforms: a platform that cannot list posts, such as a LinkedIn member profile or WhatsApp, returns 501 resource.not_supported.
  • Pinterest: a sync starts and refreshes nothing: Pins are read live.
  • Other errors: 404 account.not_found for an account your key cannot reach, and 403 account.permission_missing for an account without posts.read. A platform failure during the sync leaves state at failed with the reason in error.
TikTok and YouTube also have their own sync routes. See TikTok and YouTube.

Platform insights

These endpoints return live figures from one platform:

Scopes

A brand-restricted key can read the overview and history for its own brands only. See Scoped API keys.

Exports

Analytics exports build a report of an account’s videos and their metrics. Exports per billing period, videos per export, and the wait between exports depend on your plan. See History and export allowances.

Use from an AI agent

POST /v1/accounts/{account_id}/sync has no tool. See MCP tools.
Last modified on November 15, 2026