• Audit
  • Analytics
  • Content
  • Content - attachments
  • Content body
  • Content - children and descendants
  • Content - macro body
  • Content comments
  • Content labels
  • Content permissions
  • Content properties
  • Content restrictions
  • Content states
  • Content versions
  • Content watches
  • Dynamic modules
  • Experimental
  • Group
  • Inline tasks
  • Label info
  • Long-running task
  • Relation
  • Settings
  • Space
  • Space permissions
  • Space properties
  • Space settings
  • Template
  • Themes
  • Users
  • User properties
Cloud
Confluence Cloud / Reference / REST API

Analytics

Postman Collection
OpenAPI
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: