Search for databases and pages, using filters and sorts to limit which/how pages and databases are returned.

search_workspace(key, query = NULL, sort = NULL, filter = NULL)

Arguments

key

Notion access key.

query

A string which limits which pages are returned by comparing the query to the page title. If NULL, no limiting occurs.

sort

A search sort object. If NULL, no sorting will occur.

filter

A search filter object. If NULL no filtering will occur.

Value

A list of pages and/or databases.

See also

search_filter() and search_sort() to see details on how to correctly construct filter and sort objects.