Hi Team,
Could someone help me with rest API key to get list of all pages in a space. I tried couple of API's but i am unable to get all page url's.
Thanks,
Meharkumar
Hi Merharkumar
welcome to the Atlassian community
https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-api-space-get
is the Rest API method to get the pages of one specific space
curl -u USERNAME:APITOKEN --request GET \
--url 'https://URL.atlassian.net/wiki/rest/api/space/SPACENAME/content' \
--header 'Accept: application/json'
the returned JSON document will contain all the id of the pages.
With this id you can iterate over the pages via https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-api-content-id-get
the returned data will contain a value for the webui parameter that reflects the url
Hope that helps
Cheers
Kurt
Hi Kurt,
Thanks for your response, i tried given Rest API. i am not able to pull full data from it.
hope its not pulling child page URL's.
for example i have 100 + pages and child pages in a space, but i could see 25 webui's for it. how can i get all pages and child page url's.
Thanks,
Meharkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Merharkumar
sorry for the late reply, could you share the code of the script you are using, so that i can check
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.