> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Search Notion

> Search pages and data sources shared with the integration.

`notion.search` search pages and data sources shared with the integration.

## Example

```ts automations/notion-search.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Search Notion", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.search({ query: "Roadmap", page_size: 50 })
})
```

## Inputs

All fields are optional. Search by title, sort by last edited time or relevance, filter object type or trash state, and paginate with a cursor. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns a paginated `page_or_data_source` list.

Search does not bypass Notion sharing; absent results may mean the integration lacks access.
