List account analytics summaries with GET /api/v1/workspaces/{workspaceId}/analytics/accounts. Requires an API key with the read scope or a signed-in workspace member.
Request
Account analytics collection follows post analytics. Summaries report stored observations or a pending state.
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
path | UUID | Yes |
accountId |
query | array of UUID | No |
platform |
query | one of 21 strings | No |
from |
query | string | No |
to |
query | string | No |
timezone |
query | string | No |
granularity |
query | "day", "total" |
No |
metrics |
query | array of string | No |
cursor |
query | string | No |
limit |
query | string | No |
Response
- HTTP 200:
AccountAnalyticsListwithdata,hasMore,nextCursor.
The OpenAPI document has each field’s type.
Examples
const summaries = await workspace.analytics.accounts({ provider: "instagram" });summaries = workspace.analytics.list_accounts()curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/analytics/accounts" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio analytics accounts list --platform instagramasync () => {
const response = await codemode.request({
method: "GET",
path: `/api/v1/workspaces/${codemode.workspaceId}/analytics/accounts`,
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Analytics operation and most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Up to 100 items a page; pass
nextCursorback ascursor. See Pagination.