Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

For Confluence Cloud, how do I find the total number of pages?

Jason Day
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2014

We are using the on demand solution for Confluence, and I would like to have some basic statistics about our instance:

 

  • total number of users
  • number of spaces
  • total number of pages
  • "active" users
  • etc.

 

2 answers

0 votes
K. Yamamoto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2016

Hi Jason,

Confluence Cloud REST API would work for you.

For example, you can retrieve some stats as below.

A_USER="admin"
A_PASSWD="__YOUR_PASSWORD_HERE__"
INSTANCE_HOST="__YOUR_SUBDOMAIN_HERE__.atlassian.net"

# Total number of pages
curl -sGLu ${A_USER}:${A_PASSWD} "https://${INSTANCE_HOST}/wiki/rest/api/search" --data-urlencode 'cql=type IN (blogpost, page)' --data-urlencode 'limit=0' | jq '.totalSize'
 
# Total number of users
curl -sLu ${A_USER}:${A_PASSWD} "https://${INSTANCE_HOST}/wiki/rest/api/group/confluence-users/member?limit=1000" | jq '.size'
 
# Number of spaces (Assumed to be less than 1000)
curl -sLu ${A_USER}:${A_PASSWD} "https://${INSTANCE_HOST}/wiki/rest/api/space?limit=1000" | jq '.size'

Note: See https://stedolan.github.io/jq/ to know what is jq (it's totally optional to query the REST API).


Cheers!

liteyear April 7, 2021 edited

Note using a password is now deprecated. The fix is simple - just replace A_PASSWD with a token. See https://developer.atlassian.com/cloud/confluence/basic-auth-for-rest-apis/

0 votes
Mauro Badii
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2014

Hi Jason,

Number of users information can be gathered from the User Management section. Application Access will show how many users are activated for the instance and the time of last login will help you determine which ones haven't been active.

Number of Spaces can be estimated from the Space directory but there is no statistics enabled for Cloud administrators at the moment. Number of Pages (content) is also restricted to System Administrators at the moment.

We could create a Feature Request at jira.atlassian.com asking for this statistics to be added to an admin section. Please let us know how you use this information so we can provide some context and if more people are in the same situation, it can be worked addressed.

For the moment, feel free to request that information to the OnDemand Team at support.atlassian.com that will be happy to provide it to you. smile

Cheers!

Andreas
Contributor
November 20, 2014

I would definitely vote on a feature request regarding statistics in ondemand admin :)

Hariprasad Narnavaram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2017

i'm using Confluence Cloud annual subscription and If i have to increase the number of users in between. Is it possible ??

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events