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

# Get analytics trends

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

## Request

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

Get historical trend data for a social account. Returns daily follower snapshots and aggregated post metrics (views, likes, comments, shares, engagement) over time.

Use the `days` query parameter to control the time range (1-365 days, default 30).

## Path parameters

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

## Query parameters

- `days` integer

## Response `200`

Trend data

- object
  - `ok` boolean
  - `data` object
    - `accountSnapshots` object[]: Daily follower/following snapshots
      - `date` string, date-time
      - `followersCount` integer
      - `followingCount` integer
    - `dailyMetrics` object[]: Daily aggregated post metrics
      - `date` string, date-time
      - `totalViews` integer
      - `totalLikes` integer
      - `totalComments` integer
      - `totalShares` integer
      - `totalEngagement` integer
      - `weightedEngagementRate` number, nullable
    - `account` object
      - `platform` string

## 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)
