OverviewProductsPlatformsAPI ReferenceResources
Posting Analytics

Get LinkedIn org analytics

GEThttps://zernio.com/api/v1/analytics/linkedin/org-aggregate-analytics

Returns aggregate analytics for a LinkedIn organization page. Parallel to /v1/accounts/{id}/linkedin-aggregate-analytics (which handles personal accounts only). Backed by LinkedIn's organizationalEntityShareStatistics, organizationalEntityFollowerStatistics, and organizationPageStatistics endpoints.

Response shape matches /v1/analytics/instagram/account-insights. Max 89 days, defaults to last 30 days.

Scope requirements: r_organization_social, r_organization_followers, and r_organization_admin must all be present on the account. Accounts connected before these scopes were included in the OAuth flow will return 412 with a reauth hint.

Enforced by this endpoint:

  • Page-view metrics accept only metricType=total_value (LinkedIn omits per-day segmentation even when the API is called with DAY granularity, so a time-series response would be meaningless).
  • Date range capped at 89 days.

LinkedIn-side platform limits (not re-enforced here, but worth knowing for larger ranges in a future release):

  • Follower stats: rolling 12-month window, end must be no later than 2 days ago.
  • Share stats: rolling 12-month window.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

The Zernio SocialAccount ID for the LinkedIn organization account.

metricsstring

Comma-separated list. Defaults to "impressions,clicks,engagement_rate,organic_followers_gained,followers_gained,followers_lost".

Share statistics (support both total_value and time_series):

  • impressions
  • unique_impressions
  • clicks
  • likes
  • comments
  • shares
  • engagement_rate (0..1, LinkedIn-computed)

Follower-gain statistics (support total_value and time_series):

  • organic_followers_gained (per-day organic gains for time_series; sum of organic gains over the range for total_value)
  • paid_followers_gained (per-day paid gains for time_series; sum of paid gains over the range for total_value)

Page-view statistics (total_value ONLY - LinkedIn platform limit):

  • page_views_total
  • page_views_overview
  • page_views_careers
  • page_views_jobs
  • page_views_life

Zernio-synthesized from daily follower snapshots:

  • followers_gained
  • followers_lost
fromDatestring (date)

Start date (YYYY-MM-DD). Defaults to 30 days ago.

toDatestring (date)

End date (YYYY-MM-DD). Defaults to today.

sinceDeprecatedstring (date)

Alias of fromDate, kept for existing callers

untilDeprecatedstring (date)

Alias of toDate, kept for existing callers

metricTypestringDefault total_valueOne of time_series | total_value

Responses

Success· the request worked

Errors· the request failed

GET/v1/analytics/linkedin/org-aggregate-analytics
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getLinkedInOrgAggregateAnalytics({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "success": true,  "accountId": "string",  "platform": "facebook",  "dateRange": {    "since": "2019-08-24",    "until": "2019-08-24"  },  "metricType": "time_series",  "breakdown": "string",  "metrics": {    "property1": {      "total": 0,      "values": [        {          "date": "2019-08-24",          "value": 0        }      ],      "breakdowns": [        {          "dimension": "string",          "value": 0        }      ],      "unit": "micro_amount",      "currency": "string"    },    "property2": {      "total": 0,      "values": [        {          "date": "2019-08-24",          "value": 0        }      ],      "breakdowns": [        {          "dimension": "string",          "value": 0        }      ],      "unit": "micro_amount",      "currency": "string"    }  },  "unavailableMetrics": [    {      "metric": "string",      "reason": "not_enrolled",      "message": "string"    }  ],  "dataDelay": "string"}
OpenAPI specification
Was this page helpful?