Forums

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

Confluence: Number pages per Space via REST API

Timo Fritz
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!
October 2, 2018

Hello everybody,

is it possible to get the number of pages per Space via GET-Requests? I did a lot of trials but I can't find a processable solution for that.

Does anybody have some experiences with that and could give me a hint?

Thanks a lot.

Kind regards,

Timo

1 answer

1 vote
Santwana Sarangi {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2018

Hi Timo,

 

You can use confluence cql search to get the number of pages per space via GET requests.

Here is the sample rest url "http://<confluence-base-url>/rest/api/search?cql=space=TEST and type = page".

You can get the total number of pages from the response object like this response.totalSize.

For more information on the confluence cql search please refer to this url https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/

 

Thanks,

Santwana

Timo Fritz
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!
October 3, 2018

Great, it works.

Thanks a lot.

Kind regards,

Timo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events