search Pages
abstract suspend fun searchPages(query: String? = null, sort: PropertySort? = null, pagination: Pagination = Pagination()): ResultPage<Page>
Searches for pages across your Notion workspace. This method allows you to find pages by their content, title, or other properties.
The search is performed across all pages that your integration has access to. When query is null, all accessible pages are returned.
Return
A ResultPage containing a list of Page objects and pagination information
Parameters
query
Optional search query to filter pages (null to return all pages)
sort
Optional sorting parameters to order the results
pagination
Optional pagination parameters to control the number of results
See also
Throws
Notion Api Exception
if the API request fails