Skip to main content
GET

Publishing Stats

Aggregate publishing analytics across all of your connected accounts for a date range. Returns summary totals (views, engagement, followers) with a prior-period comparison, plus a daily time-series with per-platform breakdown for the chosen metric. This mirrors the summary cards and chart on the publishing analytics dashboard.
Both from and to are optional — omit them to get the last 7 days (the dashboard’s default period).
This endpoint requires authentication.

Authentication

string
required
Your Submagic API key starting with sk-

Query Parameters

string
Start of the date range (ISO 8601), e.g. 2026-05-01T00:00:00Z. When both from and to are omitted, the range defaults to the last 7 days.
string
End of the date range (ISO 8601), e.g. 2026-05-31T23:59:59Z. Defaults to the current time. The prior period used for comparison is the equally sized window immediately before from.
string
Filter by platform. Allowed values: youtube, tiktok, instagram, twitter, facebook, linkedin.
string
Which metric the timeseries returns: views, engagement, or followers. Defaults to views. The summary block always includes all three.

Response

object
The requested window and the prior period used for comparison
object
Totals for the current period with prior-period comparison. Each metric is an object with current and prior values.
string
The metric the timeseries represents (echoes the metric query parameter)
array
Daily data points spanning the range (UTC days)

Error Responses

object
object
object
object