Forums

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

count all pages across all spaces

DaveSingh
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!
June 12, 2025

we want to do the count of all documents across all spaces

1 answer

1 accepted

7 votes
Answer accepted
Izabela França
Community Champion
June 12, 2025

Hello, @DaveSingh ! Welcome to the Atlassian Community.

I couldn't find a way to get this information through the UI, not without using apps. I was able to retrieve it using the endpoint. There might be an easier or simpler way to do this, but I’m not aware of one at the moment.
Here’s the workaround I found:

I use this endpoint in the URL and check the value in the “total” field at the bottom of the page.

/rest/api/content?limit=1000&type=page

One thing to keep in mind is that the limit set in the URL response for this example is 1000. Since my instance is small, it worked for me. It might be worth testing a higher limit if your instance is larger, or perhaps using this endpoint in a script and implementing pagination.

json.png

I’d love to hear what other ideas community members have to share.

I hope it helps.

 

 

DaveSingh
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!
June 12, 2025

Thanks for your quick response. I also found when you click on search there is advance search at bottom, if your filter it all its shows the count of all docs.

Like Izabela França likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events