---
title: "List account analytics summaries"
description: "PubNio API analytics.accounts.list: list account analytics summaries. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List account analytics summaries

List account analytics summaries with [`GET /api/v1/workspaces/{workspaceId}/analytics/accounts`](https://pubnio.com/api/v1/docs#tag/analytics/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: `AccountAnalyticsList` with `data`, `hasMore`, `nextCursor`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const summaries = await workspace.analytics.accounts({ provider: "instagram" });
```

### Python

```python
summaries = workspace.analytics.list_accounts()
```

### cURL

```sh
curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/analytics/accounts" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio analytics accounts list --platform instagram
```

### MCP execute

```js
async () => {
  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](https://pubnio.com/docs/reference/#analytics) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Up to 100 items a page; pass `nextCursor` back as `cursor`. See [Pagination](https://pubnio.com/docs/concepts/pagination/).

## Related

- [Analytics operations](https://pubnio.com/docs/reference/#analytics)

Source: https://pubnio.com/docs/reference/analytics-accounts-list/index.mdx
