Search
Search looks in your Notion workspace for the pages or databases whose title matches the text you give it. It returns their ID, which is what the other Notion components need to work with them.
When to use it
- You know what a page is called but do not have its ID.
- You want to find a database by its name to query it later.
- You want to see which pages were edited recently.
Configuration
You need a Notion API credential with your Notion integration’s token. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Notion API credential used to access your Notion workspace. |
| Search Query | The text searched for in titles. Empty, everything your integration can see is returned. |
| Filter Type | What to search for: page (pages) or database (databases). Default: page. |
| Sort Direction | The order of the results by last edit: descending (most recent first) or ascending (oldest first). Default: descending. |
Output
The Data output returns one item per result, with:
- its ID,
- its type (
pageordatabase), - its link, for a page, or its title, for a database,
- its last edit date.
Example
A sales team wants to read a customer’s profile in Notion from the customer’s name.
- Add Search, with Filter Type set to
page, and connect the customer’s name to Search Query. - Take the ID of the first result.
- Pass it to Page Content Viewer to read the profile.
Good practices
- Use a specific search text: you get fewer results and it is easier to pick the one you want.
- If something you know exists does not show up, check in Notion that the page or database is shared with your integration.
Related components
- Page Content Viewer: read a page.
- List Pages: the pages of a database.
- List Database Properties: a database’s structure.