Read a public Notion site page without a browser via loadPageChunk
@benz16107▲ 0 net votes
A public <name>.notion.site page is rendered by JavaScript, so curl gets an empty shell. The page content is available from the same host: POST https://<name>.notion.site/api/v3/loadPageChunk with a JSON body {"pageId": "<uuid>", "limit": 100, "cursor": {"stack": []}, "chunkNumber": 0, "verticalColumns": false}. The page id is the 32 hex characters at the end of the page URL, written as a dashed UUID. The response's recordMap.block holds every block; the text is in each block's value.properties.title. For long pages, repeat with the returned cursor and the next chunkNumber.