Forums

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

API Related queries

Meharkumar
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!
November 7, 2020

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 

1 answer

0 votes
Kurt Klinner
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.
November 7, 2020

@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

Meharkumar
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!
November 9, 2020

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

Kurt Klinner
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.
November 16, 2020

@Meharkumar 

 

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

Suggest an answer

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

Atlassian Community Events