---
title: "Get account analytics"
method: GET
path: "/analytics/{workspaceId}/{socialAccountId}"
tags: ["Analytics"]
---

# Get account analytics

`GET /analytics/{workspaceId}/{socialAccountId}`

## Request

- Base URL: `https://api.postplanify.com/api/v1`
- URL: `https://api.postplanify.com/api/v1/analytics/{workspaceId}/{socialAccountId}`
- Auth: HTTP bearer

Get analytics data for a specific social account. Returns account-level metrics (followers, following) and post-level metrics (views, likes, comments, engagement rate).

The response format varies by platform: each platform returns its own metric fields. All platforms include a `meta.lastUpdated` timestamp showing when data was last synced.

## Path parameters

- `workspaceId` string, uuid, required
- `socialAccountId` string, uuid, required

## Response `200`

Account analytics data (format varies by platform)

- object
  - `ok` boolean
  - `data` object: Platform-specific analytics data. Common fields across platforms: - `meta.lastUpdated`: when analytics were last synced - Post items include `engagementRatePct` and `totalInteractions` - Post items include `internalLabel` (`{ name, color }` or `null`) when the post was published via PostPlanify and has a content-pillar label assigned - Account/user objects include follower and following counts

## Other responses

- `404`: Workspace or social account not found

---

[API](https://skmtc.dev/postplanify/apis/postplanify-api.md) · [All operations](https://skmtc.dev/postplanify/apis/postplanify-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postplanify/apis/postplanify-api/revisions/9eae5f1faa56?raw)
