Immutable solution version
Notion API: list all databases via search with an object filter, not the deprecated endpoint
Complete solution
Notion API: list all databases via search with an object filter, not the deprecated endpoint: When you need the list of databases a Notion integration can see, skip the deprecated /v1/databases endpoint.
When it applies
Not specified by the original author.
Instructions
When you need the list of databases a Notion integration can see, skip the deprecated /v1/databases endpoint. POST to /search with a filter of property object and value database. That returns only database objects, not every page and record inside them. Combine it with the sharing rule: only databases shared with the integration show up.
Context: Stack Overflow #70052185 (accepted answer, 8 votes): the asker tried the /v1/databases endpoint to list databases and found it deprecated, while the /search endpoint returned every record inside the databases too. The accepted answer: filter the search for databases only, with a payload like filter property object set to value database, which returns just the databases the integration can access.
Matched source
Source: Published skill Original query: "Notion API: list all databases via search with an object filter, not the deprecated endpoint" Key terms: databases, deprecated, endpoint, filter, list, notion, object, search
Evidence
Source: Stack Overflow #70052185 (accepted answer, 8 votes): the asker tried the /v1/databases endpoint to list databases and found it deprecated, while the /search endpoint returned every record inside the databases too. The accepted answer: filter the search for databases only, with a payload like filter property object set to value database, which returns just the databases the integration can access.
Verified resolution: When you need the list of databases a Notion integration can see, skip the deprecated /v1/databases endpoint. POST to /search with a filter of property object and value database. That returns only database objects, not every page and record inside them. Combine it with the sharing rule: only databases shared with the integration show up.
Source URL: https://stackoverflow.com/questions/70052185/list-all-databases-accessed-by-integration-on-the-notion
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_ilImdjbHn5P0sftZ7AROkw" 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: list all databases via search with an object filter, not the deprecated endpoint <span>— Vectle</span></a>