# Analytics

Which analytics metrics LinkedIn returns and the LinkedIn-only analytics endpoints.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

Call `GET /v1/analytics?platform=linkedin` ([Analytics API](/analytics/get-analytics)).

Personal accounts get metrics only for posts published through Zernio, because LinkedIn returns metrics only for posts authored by the authenticated member.

| Metric | Available |
|--------|-----------|
| Impressions | <Yes /> |
| Reach | <Yes /> |
| Likes | <Yes /> |
| Comments | <Yes /> |
| Shares | <Yes /> |
| Saves | <Yes /> (personal accounts only) |
| Sends | <Yes /> (personal accounts only, LinkedIn messaging) |
| Clicks | <Yes /> (organization accounts only) |
| Views | <Yes /> (video posts only) |

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: analytics } = await zernio.analytics.getAnalytics({
  query: { platform: 'linkedin', fromDate: '2026-08-01', toDate: '2026-08-31' }
});

console.log(analytics.posts);
```
</Tab>
<Tab value="Python">
```python
analytics = client.analytics.get_analytics(
    platform="linkedin",
    from_date="2026-08-01",
    to_date="2026-08-31"
)

print(analytics["posts"])
```
</Tab>
<Tab value="curl">
```bash
curl "https://zernio.com/api/v1/analytics?platform=linkedin&fromDate=2026-08-01&toDate=2026-08-31" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```
</Tab>
</Tabs>

Response (`200`), one entry per post:

```json
{
  "posts": [
    {
      "_id": "65f1c0a9e2b5af0012ab34cd",
      "platform": "linkedin",
      "status": "published",
      "publishedAt": "2026-08-14T10:00:05Z",
      "platformPostUrl": "https://www.linkedin.com/feed/update/urn:li:share:7200000000000000000",
      "analytics": {
        "impressions": 8420,
        "reach": 6210,
        "likes": 131,
        "comments": 17,
        "shares": 9,
        "clicks": 240,
        "engagementRate": 1.86
      }
    }
  ]
}
```

Four LinkedIn-only endpoints go deeper:

- [Personal aggregate analytics](/analytics/get-linkedin-aggregate-analytics): totals or a daily series across a personal account's posts, covering impressions, reach, reactions, comments, shares, saves and sends.
- [Organization aggregate analytics](/analytics/get-linkedin-org-aggregate-analytics): impressions, clicks, reactions, engagement rate, follower gains (organic and paid) and page-view metrics for organization pages. The member must be an ADMINISTRATOR of the organization and the account must hold `r_organization_social`, `r_organization_followers` and `r_organization_admin`.
- [Post analytics](/analytics/get-linkedin-post-analytics): per-post metrics by URN for personal and organization accounts; saves and sends are personal-only, organizations return 0.
- [Post reactions](/analytics/get-linkedin-post-reactions): individual reactions with reactor profiles, organization accounts only.