---
title: "Get posts count."
method: GET
path: "/insights/posts/counts"
tags: ["Insights"]
---

# Get posts count.

`GET /insights/posts/counts`

## Request

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

Returns daily post counts for calendar dates in the authenticated user's timezone. Owned and Analytics-permitted shared accounts remain available for historical reports even when disconnected. Optionally filter by post type (`image`, `video`, `text`), accounts, or team.

## Query parameters

- `post_type` 'image' | 'video' | 'text'
- `accounts` integer[]
- `team` integer
- `start` string, date, required: Format should be Y-m-d
- `end` string, date, required: Format should be Y-m-d

## Response `200`

successful operation

- object
  - `data` object[]: An array of objects containing date-based post counts.
    - `date` string, date: The specific date for which the post count is reported.
    - `count` integer: The number of posts published on the corresponding date.

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