> For the complete documentation index, see [llms.txt](https://developers.gamma.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gamma.app/analytics/get-gamma-viewer-analytics.md).

# GET /gammas/{gammaId}/analytics/viewers

Returns paginated per-viewer engagement data for a Gamma. Requires at least edit permission; manage permission returns all viewers, edit permission returns only the API key owner's row.

Retrieve paginated per-viewer engagement rows for a single Gamma.

## Get per-viewer analytics

> Returns paginated per-viewer engagement data for a Gamma. Requires at least edit permission on the Gamma. When the API key's user has manage permission the list covers all viewers (\`scope: "all"\`); otherwise it contains at most that user's own row (\`scope: "self"\`). Viewers are capped at 500. Data is eventually consistent (\~hourly).

```json
{"openapi":"3.0.0","info":{"title":"Gamma Public API","version":"1.0"},"tags":[{"name":"public-api","description":"Public API endpoints for external integrations"}],"servers":[{"url":"https://public-api.gamma.app","description":"Production"}],"security":[{"api-key":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key for authentication"}},"schemas":{"GammaViewerAnalytics":{"type":"object","properties":{"scope":{"description":"Which viewers the rows cover: `all` — every viewer of the Gamma\n(the API key's user has manage permission); `self` — at most the API key\nuser's own row (edit permission).","enum":["all","self"],"type":"string"},"gammaId":{"type":"string","description":"The Gamma (file) ID"},"data":{"description":"Viewer engagement rows","type":"array","items":{"$ref":"#/components/schemas/ViewerAnalyticsEntry"}},"hasMore":{"type":"boolean","description":"Whether more viewers exist beyond this page"},"nextCursor":{"type":"string","nullable":true,"description":"Cursor for fetching the next page (null if no more results)"}},"required":["scope","gammaId","data","hasMore","nextCursor"]},"ViewerAnalyticsEntry":{"type":"object","properties":{"viewerId":{"type":"string","description":"Stable viewer identifier. For authenticated viewers this is their user ID;\nfor anonymous viewers this is their anonymous ID."},"displayName":{"type":"string","nullable":true,"description":"Display name of the viewer, or null for anonymous viewers"},"email":{"type":"string","nullable":true,"description":"Email of the viewer, or null for anonymous viewers"},"lastOpened":{"type":"string","nullable":true,"description":"ISO-8601 timestamp of the viewer's most recent Gamma open/view, or null if unknown"},"cardsViewed":{"type":"number","description":"Number of cards the viewer has viewed"}},"required":["viewerId","displayName","email","lastOpened","cardsViewed"]}}},"paths":{"/v1.0/gammas/{gammaId}/analytics/viewers":{"get":{"description":"Returns paginated per-viewer engagement data for a Gamma. Requires at least edit permission on the Gamma. When the API key's user has manage permission the list covers all viewers (`scope: \"all\"`); otherwise it contains at most that user's own row (`scope: \"self\"`). Viewers are capped at 500. Data is eventually consistent (~hourly).","operationId":"getGammaViewerAnalytics","parameters":[{"name":"gammaId","required":true,"in":"path","description":"The ID of the Gamma — accepts a gamma (file) ID or a page/doc ID (the ID in a gamma.app/docs/<id> URL).","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of viewers to return","schema":{"minimum":1,"maximum":50,"type":"number"}},{"name":"after","required":false,"in":"query","description":"Cursor for pagination (from a previous response's nextCursor)","schema":{"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction, applied to the viewer's most recent open time","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Viewer analytics retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GammaViewerAnalytics"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Invalid or missing API key"},"403":{"description":"Access denied — at least edit permission required; Pro plan or higher required (`code: individual_analytics_required`)"},"404":{"description":"Gamma not found"}},"summary":"Get per-viewer analytics","tags":["public-api"]}}}}
```

{% hint style="info" %}
Requires a Pro plan or higher and at least edit permission on the Gamma. The response `scope` field is `all` when the API key owner has manage permission (rows cover every viewer) or `self` when they have edit permission only (at most that user's own row). Results are capped at 500 viewers total. Use `limit` (1-50), `after`, and `sortDirection` to paginate. Metrics are eventually consistent and update about hourly.
{% endhint %}

## Related

* [GET /gammas/{gammaId}/analytics/viewers/{userId}](https://developers.gamma.app/analytics/get-gamma-viewer-detail-analytics.md) for per-card engagement for one viewer
* [GET /gammas/{gammaId}/analytics](https://developers.gamma.app/analytics/get-gamma-analytics.md) for doc-level totals and daily breakdown
* [GET /gammas/{gammaId}/analytics/cards](https://developers.gamma.app/analytics/get-gamma-card-analytics.md) for per-card view time and reach
* [Error codes](https://developers.gamma.app/reference/error-codes.md) for authentication and permission failures


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.gamma.app/analytics/get-gamma-viewer-analytics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
