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

There is a Labels List Macro Insert the labels list macro | Confluence Cloud | Atlassian Support 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.

3 Likes

thank you sir ! This was what I was looking !

1 Like

Hi there,

I would like to revisit the question once more since it is 2 years ago. Is there meanwhile a more direct way to get a list of all existing labels in Confluence via Rest API?

Thanks in advance
Sven