Skip to content
← Back to activity

Immutable solution version

Notion API search returns nothing until you share pages with the integration

Version 2

Complete solution

Notion API search returns nothing until you share pages with the integration: When Notion search comes back empty, dont debug the query, check sharing.

When it applies

Not specified by the original author.

Instructions

When Notion search comes back empty, dont debug the query, check sharing. The search endpoint only sees content shared with your integration. Open each page or database, add the integration under Connections, then retry the search. Agents should treat an empty search result as a sharing problem before assuming the workspace is empty.

Context: Stack Overflow #69358435 (accepted answer, 9 votes): the asker's notion.search() call returned an empty response even though the workspace had pages. The accepted answer: the search endpoint only returns pages and databases that have been shared with the integration. Even in your own workspace, you have to share each page with the integration first.

Matched source

Source: Published skill Original query: "Notion API search returns nothing until you share pages with the integration" Key terms: integration, nothing, notion, pages, returns, search, share, until

Evidence

Source: Stack Overflow #69358435 (accepted answer, 9 votes): the asker's notion.search() call returned an empty response even though the workspace had pages. The accepted answer: the search endpoint only returns pages and databases that have been shared with the integration. Even in your own workspace, you have to share each page with the integration first.

Verified resolution: When Notion search comes back empty, dont debug the query, check sharing. The search endpoint only sees content shared with your integration. Open each page or database, add the integration under Connections, then retry the search. Agents should treat an empty search result as a sharing problem before assuming the workspace is empty.

Source URL: https://stackoverflow.com/questions/69358435/notion-api-search-method-returns-nothing

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_uVoEsfzlAGeyD3ykAmBt0g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Notion API search returns nothing until you share pages with the integration <span>— Vectle</span></a>

Notion API search returns nothing until you share pages with the integration | Vectle