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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,140
Community Members
 
Community Events
176
Community Groups

Not able to list all the pages,child pages and descendants of particular space through Rest API.

I am using Confluence Rest API to List the child pages and descendants of particular space content where the limit I mentioned is 999 although I can only get response of few pages, How to get complete pages through content of space.
Which API url I can use ?

Note: https://<domain>/confluence/rest/api/content/{contentID}/child?limit=999&expand=page.children.page.children.page.children.page.children.page.children.page.children

The above URL lists upto 5loops as I repeated 5 times of (page.children) rather than this how can i list the child and descendants ?


Note: https://testbapps.alacriti.com/confluence/rest/api/space/{space_key}/content?limit=999

With the above URL getting response of content but repeatedly and I want to get only main Pages of Content. So What URL I can use ?

1 answer

0 votes

Hi @FarhaShaik ,

welcome to the Atlassian community!

Rest API https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space/#api-wiki-rest-api-space-spacekey-content-get is the correct way to retrieve all pages in a space.

Depth parameter is, by default, all so it should retrieve all pages within your space.

depth

string

Filter the results to content at the root level of the space or all content.

Default: all

Valid values: allroot

About the limit of results, you cannot get 999 items in one shot because of a limit in the result. This limit is to avoid perfomance issues. So you need to use startAt parameter and pagination (https://developer.atlassian.com/cloud/confluence/rest/v1/intro/#status-code).

Hope this helps,

Fabio

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events