How to Retrieve a Child Database via the Notion API Without Its ID

I cannot fetch the child database because its ID isn’t available. While the parent page and blocks load correctly, the child block returns no data. See this sample:

const result = obtainPage('pg_456');
const entries = getBlockItems('pg_456', { maxResults: 25 });

Based on my experience when working with the Notion API, I found that if the child database isn’t appearing, it might be that its existence is only inferred through relation properties and not directly linked as a conventional block. In one case, I had to scan through the blocks and check each one’s type and properties to identify a relation to a database. This approach, while less straightforward, allowed me to extract the corresponding ID indirectly by parsing the properties instead of relying solely on the standard fetch methods.

i ran into this too, i had to dig in the block props and look for a hidden relation field. the child db might just be embedded in those details so manually parsing can reveal it. hope this gives u a direction.