GET /gammas/{gammaId}/analytics/cards
Returns per-card engagement data for a Gamma: card name, position, view time in seconds, and viewer reach as a percentage for every card.
Retrieve per-card engagement stats for a single Gamma.
Returns per-card engagement data for a Gamma: view time (absolute seconds) and viewer reach (percentage) per card. Requires at least edit permission on the Gamma. When the API key's user has manage permission the data covers all viewers (scope: "all"); otherwise it covers 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).
abc123xyzCard analytics retrieved successfully
Which activity the card stats 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 unique viewers for the Gamma
128Total unique editors
3Number of cards in the Gamma
12Invalid request parameters
Invalid or missing API key
Access denied — at least edit permission required
Gamma not found
GET /v1.0/gammas/{gammaId}/analytics/cards HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"scope": "all",
"gammaId": "abc123xyz",
"uniqueViewers": 128,
"uniqueEditors": 3,
"cardCount": 12,
"cards": [
{
"cardId": "card_abc123",
"cardName": "Introduction",
"cardPosition": 1,
"viewTimeSeconds": 245,
"viewersPercent": 87
}
]
}Related
GET /gammas/{gammaId}/analytics for doc-level totals and daily breakdown
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?