---
title: "Daily stats"
method: GET
path: "/v1/social/profiles/{id}/daily_stats"
tags: ["Profiles"]
---

# Daily stats

`GET /v1/social/profiles/{id}/daily_stats`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/social/profiles/{id}/daily_stats`
- Auth: HTTP bearer

Per-day account metrics for a date range. attribution=received (default) buckets engagement by the day it arrived; attribution=publish sums each post's latest snapshot totals onto its publish day, computed at read time. Account-level daily metrics are collected for facebook, instagram, youtube, tiktok, and google_business profiles; the *_received engagement metrics work for every network with post insights.

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

## Path parameters

- `id` string, required: Profile id

## Query parameters

- `to` string, date: ISO 8601 date. Defaults to yesterday.
- `from` string, date: ISO 8601 date. Defaults to 29 days before to. The range is capped at 366 days.
- `attribution` 'received' | 'publish': received (default) or publish.
- `placement_id` string: Required for placement networks (facebook, linkedin, telegram, google_business) - the placement ID from List placements. For Google Business it's the location's placement 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: Operation result (see each operation). While a Studio render is processing: `stage` (queued · transcribing · downloading · preparing · cleaning_voice · mixing_audio · rendering · finishing), `phase` (the engine's: download · prepare · voice · audio · encode · qa · upload, or null), `progress` (a percent, 0–100) and `progress_fraction` (0–1), `eta_seconds` (seconds left, never below 0) and `estimate_seconds`
    - `data` object
      - `to` string, date: The date range that was applied, including defaults.
      - `from` string, date: The date range that was applied, including defaults.
      - `metrics` object: Per-key metadata, one entry per top-level record key (views, viewers*, *_received, or *_published under attribution=publish).
      - `records` object[]: One record per day, ordered by date ascending.
        - `date` string, date: ISO 8601 date the record describes.
        - `views` integer, nullable: received only - account-level views that day, as the platform reports them.
        - `viewers` integer, nullable: Unique viewers as computed by the platform for that day (Facebook page_total_media_view_unique, Instagram reach). Not additive - never sum across days. null where the platform has no unique-viewer metric (YouTube, TikTok, Google Business).
        - `viewers_7d` integer, nullable: Unique viewers for the trailing 7-day window ending on that day. Not additive - read the value on the last day of your range.
        - `viewers_28d` integer, nullable: Unique viewers for the trailing 28-day window ending on that day. Not additive - read the value on the last day of your range.
        - `likes_received` integer, nullable: received only - that day's increase in likes, summed across the profile's tracked posts.
        - `platform_stats` object: Network-native daily extras (open map, varies by platform). Empty with attribution=publish.
        - `views_received` integer, nullable: received only - that day's increase in views, summed across the profile's tracked posts.
        - `likes_published` integer: publish only - latest like totals of posts published that day.
        - `shares_received` integer, nullable: received only - that day's increase in shares, summed across the profile's tracked posts.
        - `views_published` integer: publish only - latest view/impression totals of posts published that day.
        - `shares_published` integer: publish only - latest share totals of posts published that day.
        - `comments_received` integer, nullable: received only - that day's increase in comments, summed across the profile's tracked posts.
        - `comments_published` integer: publish only - latest comment totals of posts published that day.
      - `platform` string: Network name (facebook, instagram, youtube, tiktok, etc.).
      - `profile_id` string: Profile ID.
      - `attribution` 'received' | 'publish': The attribution mode that was applied.
      - `placement_id` string, nullable: The placement filter that was applied (echo of the request). null for non-placement networks.
      - `data_timezone` string, nullable: The timezone the platform buckets days in. null for networks without a daily series.
  - `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)
