---
title: "Post stats"
method: GET
path: "/v1/social/posts/stats"
tags: ["Posts"]
---

# Post stats

`GET /v1/social/posts/stats`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/social/posts/stats`
- Auth: HTTP bearer

Retrieves stats snapshots for one or more posts. Returns all matching snapshots (not just the latest) so you can see trends over time, with optional filtering by profiles/networks and timespan.

**Billing:** Read request · **Rate limit:** 120/min

## Query parameters

- `to` string, date-time: ISO 8601 timestamp — only include snapshots recorded at or before this time
- `from` string, date-time: ISO 8601 timestamp — only include snapshots recorded at or after this time
- `post_ids` string, required: Comma-separated list of post ids (max 50)
- `profiles` string: Comma-separated list of profile ids or platform names (e.g. instagram,twitter or abc123,def456 or mixed). Platform names are matched against known platforms; anything else is treated as a profile id.

## Headers

- `Idempotency-Key` string
- `X-Tag` string

## Response `200`

Completed

- object
  - `id` string: Execution id — stable across internal retries; use it with GET /v1/executions/{id}
  - `status` 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'cancelled' | 'timeout'
  - `operation` string
  - `tag` string, nullable: Your X-Tag, if sent
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `output` object: Stats snapshots keyed by post id. For thread posts, stats from all posts in the thread (parent + children) are included under the parent post's ID.
    - `data` object: Keyed by post id
  - `error` string, nullable
  - `usage` object
    - `credits_charged` number, nullable
    - `credits_reserved` number
    - `estimated_credits` number
    - `cost_source` 'provider_reported' | 'calculated' | 'estimated' | 'null', nullable
    - `provider_usage` object, nullable: Normalised consumption, e.g. { VIDEO_SECOND: 22.4 }
  - `balance` object
    - `available` number
    - `reserved` number

## Other responses

- `400`: Invalid input
- `402`: Insufficient credits / project budget
- `404`: Resource not found (or not yours)
- `429`: Rate limited
- `503`: Service temporarily paused

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
