Easily crawl your public notion pages
npm install notion-crawler
import notionCrawler from "notion-crawler";
const { pageBlocks, notionPageIdToSlugMapper, pageMap } = await notionCrawler(
rootNotionPageId,
spaceId,
config
);
Type: string
You can find it in at the end of your notion public url
For example, in case of https://ashiknesin.notion.site/AshikNesin-com-d95d7c8c5eaf40e1a7ae629f4aba0000
d95d7c8c5eaf40e1a7ae629f4aba0000
is rootNotionPageId.
Type: string
Type: object
Default: {}
This module is heavily based on nextjs-notion-starter-kit by Travis Fischer