Audit
Content
Content - attachments
Content body
Content - children and descendants
Content - macro body
Content comments
Content labels
Content permissions
Content properties
Content restrictions
Content versions
Content watches
Dynamic modules
Experimental
Group
Inline tasks
Label info
Long-running task
Relation
Search
Settings
Space
Space permissions
Space properties
Space settings
Template
Themes
Users

Rate this page:

Experimental

Get views

Experimental

GET /wiki/rest/api/analytics/content/{contentId}/views

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

Connect app scope requiredREAD

OAuth scopes required
read:confluence-content.summary

Request

Path parameters
contentId Required

string

The ID of the content to get the views for.

Query parameters
fromDate

string

The number of views for the content since the date.

Example

1
2
3
4
curl --request GET \
  --url 'https://your-domain.atlassian.net/wiki/rest/api/analytics/content/{contentId}/views' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Accept: application/json'

Responses

Returns the total number of views for the content.

Content typeValue
application/json

object

Get viewers

Experimental

GET /wiki/rest/api/analytics/content/{contentId}/viewers

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

Connect app scope requiredREAD

OAuth scopes required
read:confluence-content.summary

Request

Path parameters
contentId Required

string

The ID of the content to get the viewers for.

Query parameters
fromDate

string

The number of views for the content since the date.

Example

1
2
3
4
curl --request GET \
  --url 'https://your-domain.atlassian.net/wiki/rest/api/analytics/content/{contentId}/viewers' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Accept: application/json'

Responses

Returns the total number of distinct viewers for the content.

Content typeValue
application/json

object

Rate this page: