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.
top_posts and activity trimmed to one entry:
- Engagements:
engagementsislikes+comments+shares+saves.viewsis 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 whosehiddenfield istrueare left out. Posts of accounts you disconnected stay in. - Time zone:
from,to,by_day, andbest_timesare cut intz, and today is today intz.activitydays are UTC, as in stored history. - Best times:
best_timesdescribes when your past posts did well. It does not say when your audience is online. - Excluded accounts: an account without
analytics.readis left out of every figure and counted inaccounts_excluded. Check it before you compare 2 overviews. - Brand-restricted keys: a brand-restricted key sees its own brands only. An
account_idorbrand_idoutside them returns404.
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.
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 withoutanalytics.readadds 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.readis 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}/analyticsreturns the account’s series and, for an account with Pages, the series of its Pages summed. Addpage_idfor one Page. An unknown account returns404 account.not_found, an unknown Page returns404 resource.not_found, and an account withoutanalytics.readreturns403 account.permission_missing. - Brand:
GET /v1/brands/{brand_id}/analyticssums 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 withoutanalytics.readis left out of the sum. A brand-restricted key reads only its own brands. An unknown brand returns404 resource.not_found.day_tzismixedwhen platforms cut days differently. - Post:
GET /v1/posts/{post_id}/analyticstakes the SocialAPI post ID (a UUID), not the platform’s post ID. A post that does not exist, or one your key cannot see, returns404 resource.not_found. A target whose account lacksanalytics.readis left out of the total, and a post with no target left returns403 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.
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.
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.
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}/synchas no cooldown: see TikTok. - Already running: a
POSTfor 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, withRetry-Afteranderror.meta.retry_after_secondsset 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, withRetry-Afteranderror.meta.retry_after_secondsset to the seconds until midnight UTC, anderror.meta.limitset 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_foundfor an account your key cannot reach, and403 account.permission_missingfor an account withoutposts.read. A platform failure during the sync leavesstateatfailedwith the reason inerror.
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.
Related
- Track post delivery: post and target fields, including
metrics - Publish a post: create the posts you measure
- Plans and usage: export allowances
- Account permissions: the
analytics.readandposts.readpermissions - Scoped API keys: scopes for analytics
- Errors: every analytics error code