There's not a way to directly search for all labels within a space using the REST API, but as an alternative you can return all pages with their labels.
You can use this URL to return all pages with their labels (replacing with your site and spacekey):
Then, you can use a script to parse through the results to find the unique labels in the metadata.labels object for each page.
We are using the URL you have posted to load and search labels through a drop-down field but I think there is a small problem.
On a big scale with hundreds of pages and labels, the page takes too long to load
all the labels and it's a bit annoying.
Is there any alternative way to do this?
Like when we adding labels in a page and there are some suggestions like the photo.
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
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