Zernio icon

Zernio

Schedule and manage social media posts across multiple platforms with Zernio - supporting Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Bluesky, Pinterest, Reddit, Telegram, Google Business, and Snapchat

Actions115

Analytics → Get Analytics

AI-generated

Summary

Retrieve analytics data for posts, either for a specific post by its ID or as a paginated list filtered by various parameters such as platform, profile ID, account ID, source, date range, sorting, and pagination options.

Inputs

  • Post ID — Optional. Specify a single post's ID (Zernio or external) to return analytics for that post only. Leave empty to fetch multiple posts' analytics.
  • Platform — Optional. Filter analytics by a specific social media platform. Defaults to all platforms.
  • Profile ID — Optional. Filter analytics to a specific profile by its unique identifier.
  • Account ID — Optional. Filter analytics by a specific social account ID.
  • Source — Optional. Filter posts by their source origin: all, posts created via Zernio (late), or external synced posts.
  • From Date — Optional. Inclusive lower bound of date range in YYYY-MM-DD. Defaults to 90 days ago if omitted.
  • To Date — Optional. Inclusive upper bound of date range in YYYY-MM-DD. Defaults to today if omitted.
  • Limit — Optional. Number of items per page (1-100). Defaults to 50.
  • Page — Optional. Page number to fetch, starting at 1. Defaults to 1.
  • Sort By — Optional. Metric to sort results by, e.g. date, engagement, impressions, likes, comments, shares, saves, clicks, views. Defaults to date.
  • Order — Optional. Sort order, ascending or descending. Defaults to descending.

Output shape

a JSON object representing analytics data for one post if Post ID is provided, or a paginated list of posts' analytics records matching the filters if no Post ID is specified

When specifying a Post ID, the operation returns detailed analytics for that single post. Otherwise, it returns a paginated list filtered and sorted by the input parameters. Date range defaults and platform filtering apply as described in inputs.

Examples

Example 1: Get analytics for a single post

Set Post ID to 'post_123456' and optionally specify platform filter and date range.

Example 2: Get a list of post analytics

Leave Post ID empty, set platform to Twitter/X, limit to 20, page to 2, sort by engagement descending.

Links

Discussion