Tool ID:
zernio_get_post_analyticsRun this action
Use the TypeScript SDK for one call. Usectx.tools.execute(...) inside a Play for durable calls, scheduled calls, or CSV processing.
import { Deepline } from 'deepline';
const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
'zernio_get_post_analytics',
{
"postId": "post_123",
"platform": "example",
"profileId": "profile_123"
},
);
console.log(result.toolResponse.raw);
CLI
deepline run zernio_get_post_analytics --input '{
"postId": "post_123",
"platform": "example",
"profileId": "profile_123"
}'
Example response
The SDK returns this shape atresult.toolResponse.raw. The example values illustrate the response.
{
"data": {
"postId": "post_123",
"latePostId": "late_post_123",
"status": "published"
}
}
deepline describe zernio_get_post_analytics --json for the latest machine-readable contract.
Input reference
Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. To keep a local copy in sync, do not poll this endpoint per account or per post. Subscribe to theanalytics.synced webhook and read only what changed from GET /v1/analytics/delta. - Accepts both Zernio Post IDs and External Post IDs (auto-resolved). - fromDate defaults to 90 days ago if omitted, max range 366 days. - Single post lookups may return 202 (sync pending) or 424 (all platforms failed). - For follower stats, use /v1/accounts/follower-stats. - Accounts creators connected to your creator campaigns are left out, here and in every other analytics, follower-stats, account health, inbox and external posts read, unless the request names their profileId or accountId. ### LinkedIn personal accounts Analytics are only available for posts published through Zernio. See the live schema below for the complete notes.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
payload.postId | string | No | — | Returns analytics for a single post. Accepts Zernio Post IDs, External Post IDs and the platform’s native post ID. Zernio IDs are auto-resolved to External Post analytics. |
payload.platform | string | No | — | Filter by platform (default “all”). Send one platform or a comma-separated list, such as instagram,twitter,linkedin. |
payload.profileId | string | No | — | Filter by profile ID (default “all”). With a native postId, selects that profile’s copy of the post. |
payload.accountId | string | No | — | Filter by account ID. With a native postId, selects that account’s copy of the post. |
payload.source | "all" | "late" | "external" | No | "all" | Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) Allowed: all, late, external. |
payload.fromDate | string | No | — | Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days. Format: date. |
payload.toDate | string | No | — | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted. Format: date. |
payload.limit | integer | No | 50 | Page size (default 50) Minimum: 1. Maximum: 100. |
payload.page | integer | No | 1 | Page number (default 1) Minimum: 1. |
payload.sortBy | "date" | "engagement" | "impressions" | "reach" | "likes" | "comments" | "shares" | "saves" | "clicks" | "views" | "follows" | "ig_reels_avg_watch_time" | "ig_reels_video_view_total_time" | "reposts" | "reels_skip_rate" | "completion_rate" | "profile_views" | "website_clicks" | No | "date" | Sort by date, engagement, or a specific metric. Platform-specific metrics (follows, reposts, reels_skip_rate, ig_reels_*, completion_rate, profile_views, website_clicks) sort a null value as 0. Allowed: date, engagement, impressions, reach, likes, comments, shares, saves, clicks, views, follows, ig_reels_avg_watch_time, ig_reels_video_view_total_time, reposts, reels_skip_rate, completion_rate, profile_views, website_clicks. |
payload.order | "asc" | "desc" | No | "desc" | Sort order Allowed: asc, desc. |
payload.tags | string | No | — | Comma-separated tags (at most 20). Lists only posts created through Zernio that carry every listed tag, matched exactly and case-sensitively. Up to 200 published posts can match within the date range. more returns 400 asking to narrow fromDate and toDate. Ignored when postId is set. |
payload.view | "full" | "summary" | No | "full" | full returns the listing as before. summary leaves out the accounts list, each platform entry’s copy of analytics, the impressionSources, audienceTypes, audienceCountries and retentionCurve maps, and mediaItems (thumbnailUrl stays). Ignored when postId is set. Allowed: full, summary. |
Output reference
Standard tool result payload.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
result.data | object | Yes | — | Provider response payload. |
result.data.postId | string | No | — | — |
result.data.latePostId | string | null | No | — | Original Zernio post ID if scheduled via Zernio |
result.data.status | "published" | "failed" | "partial" | "scheduled" | "publishing" | "draft" | "cancelled" | No | — | Overall post status. “partial” when some platforms published and others failed. While any platform is still pending or processing, the post’s own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics. |
result.data.content | string | null | No | — | — |
result.data.contentNotRetained | boolean | No | — | True when this team does not retain content, so the content fields of this row are null. Identifiers and metadata stay. |
result.data.scheduledFor | string | No | — | — |
result.data.publishedAt | string | null | No | — | — |
result.data.analytics | object | No | — | — |
result.data.analytics.impressions | integer | No | — | — |
result.data.analytics.reach | integer | No | — | — |
result.data.analytics.likes | integer | No | — | — |
result.data.analytics.comments | integer | No | — | — |
result.data.analytics.shares | integer | No | — | — |
result.data.analytics.saves | integer | No | — | Number of saves/bookmarks (Instagram, Pinterest, X) |
result.data.analytics.clicks | integer | No | — | Link clicks where the platform reports them. Always 0 on Facebook Page stories: Meta exposes no link-click metric for stories. |
result.data.analytics.views | integer | No | — | — |
result.data.analytics.follows | integer | null | No | — | Accounts that started following from this post. - Reported for Instagram feed posts and stories (organic follows), Facebook Reels (Meta post_video_followers), the TikTok business lane and LinkedIn personal posts. - Null on Instagram Reels and non-Reels video, and on Facebook posts that are not Reels, where Meta does not expose this metric for the media. - 0 for other platforms. |
result.data.analytics.igReelsAvgWatchTime | integer | No | — | Average watch time per play, in milliseconds, for Instagram Reels, Facebook Reels and TikTok videos (business accounts). On Facebook it includes replays within a play, so it can exceed the Reel length. 0 for other media and platforms, including regular Facebook videos. |
result.data.analytics.igReelsVideoViewTotalTime | integer | No | — | Total watch time including replays, in milliseconds, for Instagram Reels, Facebook Reels and TikTok videos (business accounts). 0 for other media and platforms, including regular Facebook videos. |
result.data.analytics.reelsSkipRate | number | No | — | Instagram Reels only: percentage (0-100) of initial views that skipped the reel within its first 3 seconds, as reported by Meta. - Meta labels the metric estimated and in development, so it can move between syncs. - 0 for non-Reels media and other platforms. - For a post published to several accounts, the aggregate is weighted by views. |
result.data.analytics.completionRate | number | No | — | Share of viewers who watched the video to the end, 0 to 1, as TikTok reports it. Only for TikTok accounts connected through the TikTok for Business app. - Delayed T+24-48h, and only for posts active in the last 7 days. - 0 for other platforms. - For a post published to several accounts, the aggregate is weighted by views. |
result.data.analytics.profileViews | integer | No | — | Profile views from users who reached the profile through this post. - Instagram feed posts (images and carousels. 0 on Reels and Stories). - TikTok accounts connected through the TikTok for Business app (T+24-48h). - LinkedIn personal posts (0 on organization posts). - 0 for other platforms. |
result.data.analytics.websiteClicks | integer | No | — | TikTok accounts connected through the TikTok for Business app only: clicks on the profile website link attributed to this post (T+24-48h). Also counted inside clicks, which sums every profile-link type (website, phone, email, address, app download). 0 for other platforms. |
result.data.analytics.impressionSources | record | No | — | Share of views by surface, as fractions 0 to 1. Only for TikTok accounts connected through the TikTok for Business app (T+24-48h, only for posts active in the last 7 days). - Keys: forYou, follow, search, personalProfile, sound, directMessage, other. A surface TikTok adds later appears under a camelCase key derived from its name. - Empty object when TikTok reports nothing, and for other platforms. - When a post is published to several accounts, each share is weighted by views. |
result.data.analytics.audienceTypes | record | No | — | TikTok accounts connected through the TikTok for Business app only: two viewer splits as fractions 0 to 1 (T+24-48h). - Each pair sums to 1 when present: follower + nonFollower, and newViewer + returnViewer. TikTok can report one pair without the other. - Empty object when TikTok reports nothing, and for other platforms. - Views-weighted across accounts, like impressionSources. |
result.data.analytics.audienceCountries | record | No | — | TikTok accounts connected through the TikTok for Business app only: share of views by viewer country, as fractions 0 to 1, keyed by upper-case ISO-3166 alpha-2 code. Available T+24-48h, only for posts active in the last 7 days. At most 20 country keys plus other. The catch-all bucket TikTok sends, any country below 0.001 and anything past the twentieth all sum into other, so the values still add up to 1. Empty object when TikTok reports nothing, and for other platforms. Views-weighted across See the live schema for the complete constraint. |
result.data.analytics.replays | integer | No | — | Facebook Reels only: plays that were replays (Meta fb_reels_replay_count). Summed across accounts. 0 for other media and platforms. |
result.data.analytics.retentionCurve | record | No | — | Facebook Reels and TikTok business lane: share of viewers still watching at each second of playback, as fractions 0 to 1. Keys are whole seconds from the start of a play (“3” is the share still watching at 3 s). Empty object for other media and platforms. - Facebook Reels (Meta post_video_retention_graph): the base is a subset of plays that Meta selects and does not expose. On small Reels it can be far below views (6 of 51 measured), so a value is a share of that subset, not of all plays. - See the live schema for the complete constraint. |
result.data.analytics.reposts | integer | No | — | Reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Instagram accounts connected with Facebook Login only. - Instagram Login accounts: always 0 (Meta does not expose this metric for them). - Other platforms: 0, including Threads, where reposts are counted in shares instead. |
result.data.analytics.totalViews | integer | null | No | — | Views across every surface Meta counts for the post (Meta total_views_count): Instagram itself, the same post shared to Facebook, and its boosts and ads, replays included. Instagram videos and Reels on accounts connected with Facebook Login only. views stays Instagram organic only. - Null for Instagram Login accounts, other platforms, and snapshots taken before the field existed (it fills on the post’s next analytics sync). - On a post published to several accounts, the sum across accounts, See the live schema for the complete constraint. |
result.data.analytics.totalLikes | integer | null | No | — | Likes across every surface Meta counts for the post (Meta total_like_count): Instagram itself, the same post shared to Facebook, and its boosts and ads. Instagram accounts connected with Facebook Login only. likes stays Instagram organic only. - Null for Instagram Login accounts, other platforms, and snapshots taken before the field existed (it fills on the post’s next analytics sync). - On a post published to several accounts, the sum across accounts, counting likes for the accounts that do See the live schema for the complete constraint. |
result.data.analytics.totalComments | integer | null | No | — | Comments across every surface Meta counts for the post (Meta total_comments_count): Instagram itself, the same post shared to Facebook, and its boosts and ads. Instagram accounts connected with Facebook Login only. comments stays Instagram organic only. - Null for Instagram Login accounts, other platforms, and snapshots taken before the field existed (it fills on the post’s next analytics sync). - On a post published to several accounts, the sum across accounts, counting comments for the See the live schema for the complete constraint. |
result.data.analytics.videoDurationSeconds | integer | null | No | — | Video length in seconds. Null when unknown: platforms that do not report a length, non-video media, or when Instagram does not expose the media URL (e.g. reels with copyrighted audio). - YouTube: filled for public videos once their analytics next refresh (from the Data API. live streams may report null). The Data API has no Shorts flag: a video over 180 seconds cannot be a Short, but a shorter one may be a regular upload. - Instagram Reels: also filled. Combine with igReelsAvgWatchTime (ms) to See the live schema for the complete constraint. |
result.data.analytics.engagementRate | number | No | — | Percentage, rounded to 2 decimals: (likes + comments + shares + saves) / (impressions or reach or views) * 100. Clicks and follows are never counted. The denominator is the FIRST of impressions, reach, views that is non-zero, so the basis varies by post: impressions if present, else reach, else views. For a single consistent basis (e.g. interactions / reach), compute it from the raw fields above. On the post-level roll-up of a cross-posted post, the denominator is the SUM of the denominators See the live schema for the complete constraint. |
result.data.analytics.lastUpdated | string | No | — | — |
result.data.platformAnalytics | array | No | — | — |
result.data.platformAnalytics[].platform | string | No | — | — |
result.data.platformAnalytics[].status | "published" | "failed" | No | — | — |
result.data.platformAnalytics[].platformPostId | string | null | No | — | The native post ID on the platform (e.g. Instagram media ID, tweet ID) |
result.data.platformAnalytics[].accountId | string | No | — | — |
result.data.platformAnalytics[].accountUsername | string | null | No | — | — |
result.data.platformAnalytics[].analytics | object | null | No | — | — |
result.data.platformAnalytics[].analytics.impressions | integer | No | — | — |
result.data.platformAnalytics[].analytics.reach | integer | No | — | — |
result.data.platformAnalytics[].analytics.likes | integer | No | — | — |
result.data.platformAnalytics[].analytics.comments | integer | No | — | — |
result.data.platformAnalytics[].analytics.shares | integer | No | — | — |
result.data.platformAnalytics[].analytics.saves | integer | No | — | Number of saves/bookmarks (Instagram, Pinterest, X) |
result.data.platformAnalytics[].analytics.clicks | integer | No | — | Link clicks where the platform reports them. Always 0 on Facebook Page stories: Meta exposes no link-click metric for stories. |
This output schema is too large for an inline display. Read the complete live contract with
deepline describe zernio_get_post_analytics --json.Deepline cost
- Pricing model:
fixed(per call). - Estimated Deepline credits:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.