API Reference
Publishing Stats
Aggregate publishing analytics across all connected accounts: summary totals with prior-period comparison and a daily time-series for the chosen metric
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.This endpoint requires authentication.
Authentication
Your Submagic API key starting with
sk-Query Parameters
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.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.Filter by platform. Allowed values:
youtube, tiktok, instagram,
twitter, facebook, linkedin.Which metric the
timeseries returns: views, engagement, or followers.
Defaults to views. The summary block always includes all three.Response
The requested window and the prior period used for comparison
Totals for the current period with prior-period comparison. Each metric is an
object with
current and prior values.The metric the
timeseries represents (echoes the metric query parameter)Daily data points spanning the range (UTC days)

