- This Alfred workflow enables you to perform online and offline searches of your Notion pages.
- It requires a Notion integration (API key).
- Online Search: Search your Notion pages online for the most up-to-date information.
- Offline Search: Search through a locally stored copy of your pages for quick access. Breadcrumbs are shown to provide better context and page hierarchy.
- Data Update: Update your local data at your convenience to ensure accurate offline searches of your pages.
- Opening Page in a New Tab: Open the selected page in a new tab in the Notion app.
-
Install β€ Notion Search Workflow in the repo. Double click on it and Alfred app should open with installation of the workflow. You will be prompted to put
Notion API key (of the integration). Follow steps in2.to get the API key. -
Follow this instructions to create an internal integration and put the
Internal Integration Tokeninto theNotion API key (of the integration). -
Follow this instructions to give your integration premission to search for pages. You only need to give premission to the main pages on the left side of Notion, as subpages inherit the premission.
-
Now the setup is complete and the workflow should work. I recommend running the data update
nupdatefirst to ensure offline search functionality.
| Variable | Type | Description |
|---|---|---|
| Notion API key (of the integration) | Text Field | This is a text field where you input the API key required for the integration with Notion. (e.g. secret_WmzOfHiLeipQKPiRd5GsdVlwXXcgP3I44GdoreruIV) |
| Use desktop client | Checkbox | A checkbox indicating whether to open links in the desktop client or in the browser. |
| Enable custom images | Checkbox | A checkbox to enable or disable the downloading of custom Notion page icon images. |
-
Online Search: Type
nfollowed by your search query to search your Notion pages online (If you press β§ + β it will open the page in a new tab in the Notion app). -
Offline Search: Type
nsfollowed by your search query to search your Notion pages offline (If you press β§ + β it will open the page in a new tab in the Notion app). -
Data Update: Type
nupdateand enter to update your local data for offline searches. I suggest to do that firstly when you download the workflow.β οΈ Note: Runningnupdatefor the first time, especially with the optionEnable custom imageschecked, may take some time, particularly if you have a large number of custom images.β οΈ Note: To make sure opening a page in a new tab works, you must toggle off the settingNew Tab Searchlocated inSettings β PreferencesunderDesktop appsection in Notion app.
- Adjust offline search so Alfred filters results does it. There will be no need for fuzzy search. Just return all pages. Consider adding
uidobject, as it will help Alfred learn about your searches.

