Is there a REST API call in Confluence Cloud to return all labels present in a space?

There is a Labels List Macro https://confluence.atlassian.com/confcloud/labels-list-macro-724765224.html but is it possible to access its rest api some how ?

1 Like

Have you looked at the Get Content for Space endpoint?

https://developer.atlassian.com/cloud/confluence/rest/#api-api-space-spaceKey-content-get

This endpoint looks like it returns all content for a space. You can then add an extend property meta.labels to get the labels for each page.

Once you have that then you’ll have to do some work on your end to scrub the labels.

I think this is what you’re looking for.

1 Like

thank you sir ! This was what I was looking !

1 Like