get_analytics
Get analytics for a week, a month, or any number of days up to 365, the same numbers as the Socialync analytics page. Views, likes, comments, shares and saves count only what was gained during the window, so a quiet week can read 0 comments even when older posts have comments. For each post's lifetime totals, use get_top_posts or get_post_insights. Also returns the current follower count and its net change, plus percentage changes against the previous window of the same length. Saves come only from platforms whose API reports them (Instagram); the others show saves as "not available". YouTube is left out of cross-platform totals and has no comparisons, because YouTube's API policy does not allow metrics derived from its data. Set breakdown="by_platform" to get separate numbers for each connected platform, YouTube included. Set includeTimeseries=true to also get daily snapshots per platform, including each day's follower count.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Optional window length in days, 1 to 365 (daily analytics are kept for 365 days). Overrides period. With includeTimeseries=true this gives the follower count for every day in the window; pass platform to keep a long timeseries small. | |
| period | No | Aggregation window: week=7 days, month=30 days. Period-over-period changes compare against the previous window of the same length. Ignored when days is set. | week |
| platform | No | Filter by a single platform (e.g. "tiktok") or "all" for cross-platform results | all |
| breakdown | No | "total" returns one set of cross-platform numbers; "by_platform" additionally returns per-platform numbers (the analytics page comparison cards). Only meaningful when platform="all". | total |
| profileId | No | The Socialync profile to report on. Call list_profiles to see authorized profiles. Omit to use the single/default authorized profile. | |
| includeTimeseries | No | When true, also returns daily snapshots per platform. Each value is a running total as of that day: subtract one day from the next to get a gain, and never add them together. |