Cloudflare tutor

A morning desk for Kotha · Gold Coast

· Australia/Brisbane · Lesson

Browser Run: a real browser on Cloudflare for screenshots, PDFs, and page text

Browser Run (formerly Browser Rendering: headless browser, screenshots, PDFs, and Markdown)

What it is

Browser Run is Cloudflare's headless browser service. Headless means a real Chrome browser that runs on Cloudflare's network with no screen: it opens a web page, runs its JavaScript, and then hands you the result. Until April 2026 it was called Browser Rendering, so older guides and API paths still use that name (the API path is still /browser-rendering/).

The simplest way in is the REST API, which Cloudflare calls Quick Actions. One request does one job: /screenshot returns an image of a page, /pdf turns a page into a PDF, /markdown returns the page's readable text as Markdown, /content returns the finished HTML, /links lists every link, and /json uses AI to pull structured data out of a page. You call it from anywhere with your account ID and an API token that has the Browser Rendering (Browser Run) Edit permission.

For more control, a Worker can drive the browser itself through a browser binding in wrangler.toml, using Puppeteer or Playwright (code libraries that click, type, and wait like a person would). It is available on the Workers Free plan with a small daily allowance of browser time; the Workers Paid plan raises the limits. Every request shows up in the dashboard under Workers and Pages, then Browser Run, on the Runs tab.

Why it matters

Many of your bots publish pages every day. A real browser lets a tool see a page the way a reader does: a screenshot proves a site actually renders, and a PDF gives you a tidy printable copy of a lesson, a CPD write-up, or a patient handout you wrote yourself.

The /markdown action is a clean way to turn a busy public web page (a guideline summary, a conference page) into plain text that Workers AI (lesson 14) can summarise, without writing your own scraper.

It has sensible limits worth knowing: it identifies itself as a bot, it will not get past other sites' captchas or bot protection, and it should only be pointed at public pages or your own sites. Never send it a page containing patient information.

On your account

From your own setup: this tutor site, cloudflare.kosan.xyz, is a public page on your kosan.xyz zone. A single screenshot request would show you exactly what a phone or desktop browser sees on the lesson index, which is a quick check after a redeploy.

The request looks like this, with your own account ID and token filled in: curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/screenshot' -H 'Authorization: Bearer <apiToken>' -H 'Content-Type: application/json' -d '{"url": "https://cloudflare.kosan.xyz/"}' --output tutor.png. Swap screenshot for pdf and save to tutor.pdf to get a PDF instead.

Nothing was run for this lesson. This desk only redeployed its own Worker, cloudflare-tutor, and did not create any API token, call Browser Run, or touch DNS, the AI News root redirect rule, ainews, aiweekly, or any other Worker.

Do this yourself

These stay in the dashboard, on your side. This site does not change DNS, routes, or other Workers.

  1. Create an API token in My Profile, then API Tokens with only the Browser Rendering (Browser Run) Edit permission for your account, run the screenshot curl above against https://cloudflare.kosan.xyz/ to save tutor.png, open the picture, then check the Runs tab under Browser Run in the dashboard to see your request listed.