Skip to main content
GET
Get analytics for all workspaces
Needs analytics:read. See Permissions.
Gives the totals over every workspace the key can reach, and in workspaces one row per workspace with published posts counted. A workspace with none counted has no row. The dates pick which posts count, by the day each was published; leave both out for every post. For a workspace whose owner is on Free, the dates are limited to its last 7 days, in its time zone: only the asked days inside them count, and the 7 days when you send no dates. Its row has range_limited, and so does the answer. See Plan limits.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_date
string<date>

Only posts published on this day or later (Y-m-d, in the workspace's time zone). Leave both dates out for lifetime numbers over every post (on the free plan, only the last 7 days; see range_limited).

Example:

"2030-03-01"

end_date
string<date>

Only posts published on this day or earlier. It must not be before start_date.

Example:

"2030-03-31"

Response

The totals, and a row per workspace with posts counted.

total
object
required

Totals of the published copies counted: each counter summed over the copies whose network reports it (0 when none does).

workspaces
object[]
required

By workspace_id. A workspace with no published post counted has no row.

range_limited
object

Only when the workspace's owner is on Free: the numbers cover the posts published in its last 7 days (today and the 6 days before, in the workspace's time zone). Asked dates inside those days are kept and the rest left out; without dates it is these 7 days instead of every post.