By default the archived Confluence space won’t be listed the search results in the Confluence UI. This also applies to CQL. If you want to include the archived space in your CQL query result, then you need to add includeArchivedSpaces=true in your CQL query.
For example, I want to find out all Confluence spaces (including archived ones) that are in the category Cloud. The CQL query is like this:
space.category=cloud and type=space
To run it via the Confluence REST API, remember to append the includeArchivedSpaces=trues to the URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters