Get post analytics
get_post_analyticsReturns the latest analytics snapshot for a single platform post (layer 1 of 3 — one post = one platform). Includes views, likes, comments, shares, plus platform-specific metrics like reach, saves, watch time. Instagram Reels may add platform_metrics.reels_skip_rate (percent of views that skipped in the first 3 seconds), and Instagram rows with Facebook Login may add platform_metrics.reposts. When the workspace has Facebook Login for the same account, Instagram likes, comments and views are all-surfaces totals including boosted media, and platform_metrics has total_likes, total_comments and total_views.
The provenance field says where a row of zeros comes from:
sync→ the analytics pipeline actually fetched from the platform. Zeros here are real.seed→ placeholder row written at publish time (fetched_at ≈ published_at). No fetch has run yet; every metric is a stub 0.unsupported_platform→ the platform has no analytics (Telegram, Discord). The seed row stays at 0 forever and does not mean the platform reported zero engagement.
A row with fetch_status unavailable means the platform will never report on this post, and fetch_error says why (personal LinkedIn/Pinterest account, X without the workspace's own API key, Google Business Profile posts); its zeros are placeholders, not measured values.
Also returns platform_supports_analytics: boolean. Numeric fields may be null when the platform doesn't expose that metric (e.g. shares on YouTube) OR when no sync has run yet. For the same video summed across platforms use get_video_analytics; for a whole folder rolled up use get_folder_analytics.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_post_id | Yes | The video_posts.id to fetch analytics for. Only meaningful once the post is published. |