GET /gammas/{gammaId}/analytics
Returns doc-level engagement metrics for a Gamma: views, unique viewers/editors, card count, last opened time, and a 30-day daily breakdown.
Retrieve doc-level engagement metrics for a single Gamma.
Returns doc-level engagement metrics for a Gamma: total views, unique viewers/editors, card count, last opened time, and a 30-day daily unique-viewer breakdown. Requires at least edit permission on the Gamma. When the API key's user has manage permission the metrics cover all viewers (scope: "all"); otherwise they cover only that user's own activity (scope: "self"). Data is eventually consistent (~hourly).
API key for authentication
The ID of the Gamma — accepts a gamma (file) ID or a page/doc ID (the ID in a gamma.app/docs/ URL).
abc123xyzAnalytics retrieved successfully
Which activity the metrics cover: all — every viewer of the Gamma
(the API key's user has manage permission); self — only the API key
user's own activity (edit permission).
allPossible values: The Gamma (file) ID
abc123xyzTotal number of view events, including repeat opens by the same viewer.
342Total unique viewers (authenticated + anonymous)
128Total unique editors
3Number of cards in the Gamma
12ISO-8601 timestamp of the most recent view, or null if never viewed
2026-06-28T14:30:00.000ZInvalid request parameters
Invalid or missing API key
Access denied — at least edit permission required
Gamma not found
GET /v1.0/gammas/{gammaId}/analytics HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"scope": "all",
"gammaId": "abc123xyz",
"totalViews": 342,
"uniqueViewers": 128,
"uniqueEditors": 3,
"cardCount": 12,
"lastOpened": "2026-06-28T14:30:00.000Z",
"dailyViews": {
"dayCount": 30,
"timezone": "America/Los_Angeles",
"days": [
{
"date": "2026-06-15",
"uniqueViewers": 42
}
]
}
}Related
GET /gammas/{gammaId}/analytics/cards for per-card view time and reach
GET /gammas/{gammaId}/analytics/viewers for per-viewer engagement rows
GET /gammas/{gammaId} for title, thumbnail, and URL metadata
Error codes for authentication and permission failures
Last updated
Was this helpful?