Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I want to extract content from a Confluence Cloud space, by label, so it can be re-used in another website elsewhere. Can that be done via the API?
Hello Gavin and welcome to the Community!
The simplest way to access Confluence pages by label would be to use the endpoint called “Search Content by CQL”. More on this endpoint may be found at GET /wiki/rest/api/content/search.
This endpoint will allow you to search using CQL with your API call. This allows you to filter based on the anything available within the CQL functions. More on CQL may be found at Advanced searching using CQL.
A sample of how this would look is as follows:
http://confluence.server.com/rest/api/content/search?cql=type=page%20AND%20label=SOMETHING
I hope this proves helpful in your ability to find content by label within Confluence.
Regards,
Stephen Sifers
The sample url above did not work for me. I had to include wiki in the url for it to work.
This worked for me
http://confluence.server.com/wiki/rest/api/content/search?cql=type=page%20AND%20label=SOMETHING
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.