Skip to navigation

Search by title

Searches all parent or child pages and databases that have been shared with an integration.

Returns all pages or databases, excluding duplicated linked databases, that have titles that include the query param. If no query param is provided, then the response contains all pages or databases that have been shared with the integration. The results adhere to any limitations related to an integration’s capabilities.

To limit the request to search only pages or to search only databases, use the filter param.

Errors

Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.

The Search endpoint supports pagination. To learn more about working with paginated responses, see the pagination section of the Notion API Introduction.

To search a specific database — not all databases shared with the integration — use the Query a database endpoint instead.

Headers

Notion-VersionstringRequired

The API version to use for this request. The latest version is <<latestNotionVersion>>.

Request

This endpoint expects an object.
querystringOptional
The text that the API compares page and database titles against.
sortobjectOptional

A set of criteria, direction and timestamp keys, that orders the results. The only supported timestamp value is "last_edited_time". Supported direction values are "ascending" and "descending". If sort is not provided, then the most recently edited results are returned first.

filterobjectOptional

A set of criteria, value and property keys, that limits the results to either only pages or only databases. Possible value values are "page" or "database". The only supported property value is "object".

start_cursorstringOptional

A cursor value returned in a previous response that If supplied, limits the response to results starting after the cursor. If not supplied, then the first page of results is returned. Refer to pagination for more details.

page_sizeintegerOptionalDefaults to 100

The number of items from the full list to include in the response. Maximum: 100.

Response

200
objectstringOptional
resultslist of objectsOptional
next_cursoranyOptional
has_morebooleanOptionalDefaults to true
typestringOptional
page_or_databaseobjectOptional

Errors

400
Bad Request Error
429
Too Many Requests Error