Back to Autogpt

Notion Search

docs/integrations/block-integrations/notion/search.md

0.6.441.8 KB
Original Source

Notion Search

<!-- MANUAL: file_description -->

Blocks for searching pages and databases in a Notion workspace.

<!-- END MANUAL -->

What it is

Search your Notion workspace for pages and databases by text query.

How it works

<!-- MANUAL: how_it_works -->

This block searches across your Notion workspace using the Notion Search API. It finds pages and databases matching your query text, with optional filtering by type (page or database).

Results include titles, types, URLs, and metadata for each match. Leave the query empty to retrieve all accessible pages and databases. Pagination is handled automatically up to the specified limit.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
querySearch query text. Leave empty to get all accessible pages/databases.strNo
filter_typeFilter results by type: 'page' or 'database'. Leave empty for both.strNo
limitMaximum number of results to returnintNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
resultsList of search results with title, type, URL, and metadata.List[NotionSearchResult]
resultIndividual search result (yields one per result found).NotionSearchResult
result_idsList of IDs from search results for batch operations.List[str]
countNumber of results found.int

Possible use case

<!-- MANUAL: use_case -->

Content Discovery: Find relevant pages in your workspace based on keywords or topics.

Database Lookup: Search for specific databases to use in subsequent operations.

Knowledge Retrieval: Search your Notion workspace to find answers or related documentation.

<!-- END MANUAL -->