---
title: "Get aggregated LinkedIn account analytics"
method: POST
path: "/linkedin-account-statistics"
tags: ["LinkedIn Analytics"]
---

# Get aggregated LinkedIn account analytics

`POST /linkedin-account-statistics`

Get total metrics across all published LinkedIn posts for an account.

## Request body

- object
  - `platformId` string, required
  - `queryType` 'IMPRESSION' | 'MEMBERS_REACHED' | 'RESHARE' | 'REACTION' | 'COMMENT' — Single metric to fetch
  - `queryTypes` union — Multiple metrics or ALL
    - string[]
    - 'ALL'
  - `aggregation` 'TOTAL' | 'DAILY' — Aggregation type: TOTAL (default) or DAILY
  - `dateRange` object — Optional date range filter
    - `start` object
      - `year` integer
      - `month` integer
      - `day` integer
    - `end` object
      - `year` integer
      - `month` integer
      - `day` integer

## Response `200`

Account statistics

- object
  - `success` boolean
  - `metrics` object — Flexible object with dynamic metric keys (e.g., IMPRESSION, REACTION, etc.)
  - `aggregation` 'TOTAL' | 'DAILY'
  - `cached` boolean

## Other responses

- `400` — Invalid request
- `404` — LinkedIn connection not found
- `500` — Internal server error

---

[API](https://skmtc.dev/publora/apis/publora-api.md) · [All operations](https://skmtc.dev/publora/apis/publora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/publora/publora-api/revisions/a1534a88d80a/schema)
