v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Analytics

Get post analytics

Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. 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.

LinkedIn personal accounts: Analytics are only available for posts published through Zernio. LinkedIn's API only returns metrics for posts authored by the authenticated user. Organization/company page analytics work for all posts.

get/v1/analytics

Query parameters

postIdstring

Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.

platformstring

Filter by platform (default "all")

profileIdstring

Filter by profile ID (default "all")

accountIdstring

Filter by social account ID

source'all' | 'late' | 'external'

Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)

fromDatestring date

Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.

toDatestring date

Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.

limitinteger

Page size (default 50)

pageinteger

Page number (default 1)

sortBy'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows'

Sort by date, engagement, or a specific metric

order'asc' | 'desc'

Sort order

Response

Analytics result

OR

Example response

{
  "analytics": {
    "videoDurationSeconds": 30
  },
  "platformAnalytics": [
    {
      "analytics": {
        "videoDurationSeconds": 30
      }
    }
  ]
}