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

# Daily stats

`GET /api/profiles/{id}/daily_stats`

## Request

- Base URL: `https://api.postproxy.dev`
- URL: `https://api.postproxy.dev/api/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.

## Path parameters

- `id` string, required

## Query parameters

- `profile_group_id` string
- `placement_id` string
- `from` string, date
- `to` string, date
- `attribution` 'received' | 'publish'

## Response `200`

Per-day metrics for the profile

- object
  - `data` object
    - `profile_id` string: Profile ID.
    - `platform` string: Network name (facebook, instagram, youtube, tiktok, etc.).
    - `placement_id` string, nullable: The placement filter that was applied (echo of the request). null for non-placement networks.
    - `from` string, date: The date range that was applied, including defaults.
    - `to` string, date: The date range that was applied, including defaults.
    - `attribution` 'received' | 'publish': The attribution mode that was applied.
    - `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.
      - `comments_received` integer, nullable: received only - that day's increase in comments, summed across the profile's tracked posts.
      - `shares_received` integer, nullable: received only - that day's increase in shares, summed across the profile's tracked posts.
      - `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.
      - `comments_published` integer: publish only - latest comment totals of posts published that day.
      - `shares_published` integer: publish only - latest share totals of posts published that day.
      - `views_published` integer: publish only - latest view/impression totals of posts published that day.
      - `platform_stats` object: Network-native daily extras (open map, varies by platform). Empty with attribution=publish.
    - `data_timezone` string, nullable: The timezone the platform buckets days in. null for networks without a daily series.
    - `metrics` object: Per-key metadata, one entry per top-level record key (views, viewers*, *_received, or *_published under attribution=publish).

## Other responses

- `400`: Missing required parameters.
- `401`: Invalid, missing, or insufficient API key permissions.
- `404`: Resource does not exist or is not accessible.
- `422`: Validation failed.

---

[API](https://skmtc.dev/postproxy/apis/postproxy-social-media-api.md) - [All operations](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/revisions/d54482ac4ce7?raw)
