Forums

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

get_all_pages_from_space method from confluence python api doesnt grab all pages from space

Alexey Kolesnik
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 7, 2021

get_all_pages_from_space method fropm confluence python api dosent grab all pages from space. I have a script to grab all pages from confluence and save them, after we added a few more pages(children to already existing pages). Only uses 1 confluence method "get_all_pages_from_space" and it dosent show all pages. I've heard that there's a restriction to children number, is it true?

1 answer

0 votes
Stephen Ellwood
Contributor
April 7, 2025

Old question now but the API does mention that the limit is 100 pages. Here is the excerpt from the documentation

# Get all pages from Space
# content_type can be 'page' or 'blogpost'. Defaults to 'page'
# expand is a comma separated list of properties to expand on the content.
# max limit is 100. For more you have to loop over start values.
confluence.get_all_pages_from_space(space, start=0, limit=100, status=None, expand=None, content_type='page')

Normally you would wrap this call with a While loop that checks if the number of items returned is equal to the limit you set.  If it is continue, if it is not then you have them all. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events