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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

API Related queries

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

@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

@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
Site Admin
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

78 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you