get_analytics
Views, likes, comments, shares and saves for each post the connected TikTok, Instagram, YouTube and Facebook accounts published in the last 7, 30 or 90 days, including posts made outside PostOnce. Each platform copy is compared with its account's median views (views_vs_account_median: 2 means twice the account's usual views), so above- and below-average posts can be found and compared. Numbers are cached and refreshed about every 10 minutes; refreshing is true while some are still loading. A first report for many accounts can take longer than a few seconds: the response then has refreshing: true and no posts yet while the report keeps building, and it is ready about a minute later. A metric is null when the platform does not report it. Partner accounts get one end user's posts per call with external_user_id or account_id, and their own accounts (those without an end user) otherwise.
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 | ||
| account_id | No | ||
| external_user_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Upstream error details, when available. | |
| code | No | Error code when the tool result has isError=true. | |
| data | No | Present on successful results; omitted on tool errors. | |
| meta | No | ||
| status | No | ||
| message | No |