How posts are doing
get_analyticsHow a workspace's posts did in a period: views, reach, likes, comments, shares, saves, engagement (likes + comments + shares + saves) and engagement rate, clicks on Shager's tracked links, and followers — in total, compared with the previous period of the same length, day by day, by network, by account, and the top posts. Numbers come from each network's own API and refresh every few hours (often in a post's first day, then less). A post counts in the period it was published in, with its latest numbers. Totals add up what the networks report: Facebook views appear once Meta approves read_insights, LinkedIn shares numbers only for company Pages (impressions as views, unique impressions as reach, likes, comments, shares; followers) and none for personal profiles, and a TikTok account counts only after it is reconnected with the video-reading permission and only for its public videos (otherwise by_network.measured=false, coverage.notes) — only their link clicks count. get_post shows one post per account, with null for a number the network doesn't report. Use it to answer 'what worked this week', to pick the best time or format, or to report to a client. Filter with channel_ids or group_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Date (2026-10-31, inclusive) or ISO datetime. Default: now | |
| top | No | How many top posts to return (default 10) | |
| from | No | Date (2026-10-01) or ISO datetime. Default: 30 days ago | |
| group_ids | No | Only the accounts in these groups (from list_groups) | |
| channel_ids | No | Only these accounts (from list_channels) | |
| workspace_id | Yes | Workspace id from list_workspaces |