Is there a way to see if a page has content?

Emma Barrett May 22, 2017

I am writing a python script to get information about all the pages in my space in order to see what pages are no longer used and which ones I can delete. Is there an easy way in the REST API to see whether or not a page has content? I am not interested in getting the content itself, just looking at if there is something in the pages or not.

1 answer

0 votes
Stephen Deutsch
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.
May 29, 2017

Unfortunately there's no check for this in the API. The only way I am aware of is to actually get the content and test if it is empty or not. It may seem wasteful, but Confluence can handle the traffic. You may not want to run it too often though.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events