---
title: "Get analytics overview or per-post metrics"
method: GET
path: "/analytics"
tags: ["Analytics"]
---

# Get analytics overview or per-post metrics

`GET /analytics`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/analytics`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `analytics:read`)

## Query parameters

- `post_id` string: MongoDB ObjectId (24-character hex string)
- `start_date` string
- `end_date` string
- `platform` 'instagram' | 'messenger' | 'whatsapp' | 'linkedin' | 'twitter' | 'tiktok' | 'telegram' | 'threads' | 'youtube' | 'bluesky' | 'pinterest' | 'facebook': Connected-account platform identifier

## Response `200`

Analytics

- ObjectEnvelope: Generic `{ data: <object> }` envelope.
  - `data` object, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `429`: Rate limit exceeded
- `500`: Internal server error

---

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