A Cloudflare Workers service that fetches and renders Notion pages as HTML, Markdown, or JSON. Powered by Durable Objects and R2.
Please don’t point production services at my domain – deploy your own Worker instead!
https://notion-fetch.univalent.net/[page-id].md https://notion-fetch.univalent.net/[page-id].html https://notion-fetch.univalent.net/[page-id].json
Deployment requires Wrangler 2.
- Create an R2 bucket named
- Publish the worker:
npx wrangler publish
This example is from react-notion-x’s demo:
Image URL rewriting
Notion images are loaded from S3 with presigned URLs that have a time limit. So notion-fetch fetches all images on the page, uploads them to Cloudflare R2, and rewrites image URLs in your Notion pages to the one from the service’s own domain.