cstrnt / notion-api

Unofficial Notion.so API

Home Page:https://www.npmjs.com/package/notion-api-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting subpageId by pageId

kevindkim opened this issue · 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?

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

commented

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