Get post analytics
get_post_analyticsFetch live per-platform metrics for a single post by requestId or platform post ID. Get views, reach, watch time, retention, audience breakdown and follower gains for TikTok, Instagram, YouTube and more.
Instructions
Per-platform metrics for one post. Identify it EITHER by requestId (a post published through Upload-Post, including TikTok drafts once they are published publicly from the TikTok app; add platform to read only that platform) OR by platformPostId + platform + user together (any post on the connected account, e.g. one returned by get_media, even if it was not published through Upload-Post). post_metrics carries whatever each platform reports, so its shape is not the same everywhere: on TikTok it adds retention (the curve, second by second), impression_sources (For You, following, search, profile…), audience_types (followers vs non-followers), new_followers won by the post, reach and the watch times (average_time_watched, total_time_watched, full_video_watched_rate) on top of the usual counters. TikTok drafts: until the draft is published from the TikTok app, post_metrics_error says it is still in the inbox; a draft published as private has no per-post analytics; once published publicly the entry carries the real platform_post_id, post_url, draft_published_at and original_publish_id (the TikTok publish id the upload started with). A TikTok upload more than 30 days old that never got a post id is no longer looked up: read it by platformPostId. It fetches the metrics live from the platform and changes nothing on the post or the account; Upload-Post keeps a copy of the result, which later reads of the same post can get from get_cached_post_analytics. Repeated calls for the same post within 5 minutes return the same result; live reads are limited to 100 per 5 minutes. When one platform cannot answer (for example, X's daily limit on live post reads), its entry carries post_metrics_error instead of post_metrics and the other platforms still answer.
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_post_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Upload-Post profile name that owns the account. Required with platformPostId. | |
| platform | No | Platform of the post. Required with platformPostId; with requestId it limits the answer to that platform. | |
| requestId | No | `request_id` of an upload made through Upload-Post. Use this OR platformPostId + platform + user. | |
| platformPostId | No | The post's own id on the platform (e.g. Instagram media id, TikTok video id). Needs `platform` and `user` too. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |