notion-api icon indicating copy to clipboard operation
notion-api copied to clipboard

Getting subpageId by pageId

Open kevindkim opened this issue 5 years ago • 2 comments

getPages() only returns Pages, not Subpages. The HTML for Pages that only have Subpage links is blank.

Any way to find subpageIds by pageIds?

kevindkim avatar Feb 09 '20 00:02 kevindkim

I suppose we could add a function like getSubPageIds(pageId) which returns an array of IDs that correspond to all the subpages.

Aceto1 avatar Mar 24 '20 09:03 Aceto1

Could you give me the example of pageId?

I thought 'PAGE_NAME_WITH_CODE' in https://www.notion.so/GROUP_NAME/PAGE_NAME_WITH_CODE

chanjungkim avatar May 22 '20 03:05 chanjungkim