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![page-id].md[page-id].html[page-id].json


Deployment requires Wrangler 2.

  1. Create an R2 bucket named notion-fetch.
  2. Publish the worker:
npx wrangler publish


This example is from react-notion-x’s demo:

Markdown / HTML

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.


View Github