Get workspace analytics
get_workspace_analyticsSummarizes published-post analytics for a workspace over a rolling window: total posts, views, likes, comments, and shares, plus the same breakdown per platform. Numbers come from the cached per-post post_analytics table, NOT from live platform API calls. Filter to one platform by passing platform.
Freshness: if the workspace's analytics were last synced over an hour ago (or never), this call also starts a background sync and reports it in the response's sync field (status started or in_progress, plus last_synced_at). The numbers in that response are from the previous sync; call again in a few minutes for fresh ones. sync.status of free_plan_limit or daily_limit means no sync could run, so the numbers may not be current.
Analytics coverage: per-post analytics exist for YouTube, TikTok, Instagram, Facebook, LinkedIn (Company Pages), Threads, Bluesky, Pinterest (business accounts), Snapchat, Mastodon, Pixelfed, Reddit and Tumblr (Pixelfed, Reddit, Tumblr, Bluesky and Mastodon report no view counts). X has analytics only when the workspace has added its own X API key in Settings > Integrations (X bills each post read to the user's X developer account); without one, X posts come back unavailable with that reason. Google Business Profile has profile-level stats only (no per-post numbers). Telegram and Discord have no analytics at all.
Google Business Profile: posts always show 0 (Google has no per-post stats). When the workspace has a Google Business Profile connection, the response adds google_business_profile with profile views (Search + Maps impressions), website_clicks, call_clicks and direction_requests: window for the requested days (Google keeps ~30 days of daily data; window_fully_covered is false when the window starts earlier), last_30_days, and daily points. These profile stats are the Google Business numbers; the post totals stay at 0.
Dashboard parity note: numbers here match the ShortSync Overview dashboard exactly for TikTok, Snapchat, Threads, Mastodon, X, LinkedIn, Pinterest, Bluesky, Reddit, Tumblr and Pixelfed. For Instagram, Facebook, and YouTube the dashboard shows different (usually higher) numbers because it fetches account-level insights live from those three platforms, which count differently (Instagram video views include Reels impressions and reach; Facebook aggregates comments across the whole page; YouTube counts include Shorts feed views). This tool sums per-post cached metrics while the dashboard fetches account-level totals for those three platforms; get_post_analytics returns the numbers for a single post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window in days, counting from now. Default 30, max 365. The window is based on the post's published_at. | |
| platform | No | Restrict to one platform (instagram, youtube, tiktok, etc.). Omit to summarize across all. | |
| workspace_id | Yes | Workspace to summarize. Required — get one from list_workspaces. |