Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Nov 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!

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 Nov 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!

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

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
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,446 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you