Account analytics (any platform, date range)
get_account_analyticsOne account's analytics for a date range, on every platform: KPIs with previous-period values when compare=true, day series (followers, impressions/views, engagement, …) where the platform or our snapshots have them, a per-post table with the platform's own numbers, TikTok videos' viewer retention as posts[].retention: [second, percent still watching] pairs, every second for videos up to a minute and 61 evenly spaced readings for longer ones (absent when TikTok sent none), audience breakdowns where the platform reports them, and access explaining anything missing (permissions_required / reconnect_required / unavailable). notes carry the caveats on what the numbers cover; gaps are left empty, never estimated. Supersedes the per-platform get_*_analytics tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "get_account_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, YYYY-MM-DD (UTC), inclusive. Default: today | |
| days | No | Range length when `from` is omitted (default 30) | |
| from | No | Range start, YYYY-MM-DD (UTC). Default: `days` before `to` | |
| compare | No | Also return the previous period of the same length for comparison | |
| accountId | Yes | The account's accountId (see list_accounts) | |
| workspace | No | Act in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace. |