---
title: "Get various metrics for accounts within a specified time frame."
method: GET
path: "/insights/accounts/metrics"
tags: ["Insights"]
---

# Get various metrics for accounts within a specified time frame.

`GET /insights/accounts/metrics`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/insights/accounts/metrics`
- Auth: HTTP bearer

Returns account metric series grouped by calendar date in the authenticated user's timezone for Analytics-permitted accounts. The `latest` snapshot is the latest available value and may fall outside the requested date range.

## Query parameters

- `start` string, date, required: Format should be Y-m-d
- `end` string, date, required: Format should be Y-m-d
- `metrics` union, required
  - string
  - string[]
- `calculate_growth` boolean
- `accounts` integer[]
- `team` integer

## Response `200`

successful operation

- object
  - `data` object[]
    - `account_id` integer, required: ID of the connected social media account.
    - `metrics` object, required: Object keyed by metric type (supports exact names and wildcard-based metric queries).
    - `latest` object[], required: Latest snapshot values per metric for this account.
      - `type` string, required: Metric type.
      - `value` integer, required: Latest metric value.
      - `timestamp` string, date-time, required: Timestamp for the latest value.

## Other responses

- `404`: Resource not found

---

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