Get LinkedIn post stats
Returns analytics for a specific LinkedIn post by URN. Works for both personal and organization accounts. Saves and sends are only populated for personal accounts (LinkedIn does not expose these metrics on the organization analytics endpoint).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
The ID of the LinkedIn account
Query Parameters
The LinkedIn post URN
Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getLinkedInPostAnalytics({ path: { accountId: 'account_abc123', }, query: { urn: 'string', },});console.log(data);{
"accountId": "64abc123def456",
"platform": "linkedin",
"accountType": "personal",
"username": "John Doe",
"postUrn": "urn:li:share:7123456789012345678",
"analytics": {
"impressions": 5420,
"reach": 3200,
"likes": 156,
"comments": 23,
"shares": 12,
"saves": 48,
"sends": 9,
"clicks": 0,
"views": 1250,
"engagementRate": 6.22
},
"lastUpdated": "2025-01-15T10:30:00.000Z"
}{
"error": "Missing required parameter: urn",
"code": "missing_urn",
"example": "urn:li:share:7123456789012345678 or urn:li:ugcPost:7123456789012345678"
}{
"error": "Unauthorized"
}{
"error": "string",
"code": "missing_scope",
"requiredScope": "string",
"action": "reconnect"
}{
"error": "Account not found"
}Get LinkedIn organization page aggregate analytics GET
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. Requires the Analytics add-on. 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.
Get LinkedIn post reactions GET
Returns individual reactions for a specific LinkedIn post, including reactor profiles (name, headline/job title, profile picture, profile URL, reaction type). Only works for organization/company page accounts. LinkedIn restricts reaction data for personal profiles (r_member_social_feed is a closed permission).