GET

Get views

Get the total number of views a piece of content has.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:confluence-content.summary
Granular:read:analytics.content:confluence

Connect app scope requiredREAD

Request

Path parameters

contentId

string

Required

Query parameters

fromDate

string

Responses

Returns the total number of views for the content.

application/json

object
GET/wiki/rest/api/analytics/content/{contentId}/views
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/analytics/content/{contentId}/views`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 { "id": 15, "count": 42 }
GET

Get viewers

Get the total number of distinct viewers a piece of content has.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:confluence-content.summary
Granular:read:analytics.content:confluence

Connect app scope requiredREAD

Request

Path parameters

contentId

string

Required

Query parameters

fromDate

string

Responses

Returns the total number of distinct viewers for the content.

application/json

object
GET/wiki/rest/api/analytics/content/{contentId}/viewers
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/analytics/content/{contentId}/viewers`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 { "id": 15, "count": 53 }

Rate this page: