Search for Pages
Learn how to find specific pages through search, using HAPI.
You can search for page using HAPI by entering CQL or a title search.
Search for pages using the title
Searching for a massive page list that could be unlimited could lead to using a lot of memory. We recommend searching for a specific number:
Search for pages where the title contains certain words
Search for pages using CQL
To search for a space in Confluence, enter a script like this:
Pages.search('valid CQL here').each {
// do something with it
}The results of the search are page IDs in the result:
You can customize this script by changing the CQL.