Cloudflare Browser Rendering
Cloudflare headless browser: screenshots, PDF and Markdown
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Cloudflare Account IDRequiredIdentifier
- API tokenSecretRequired
Where to find them
- Copy the “Account ID” of your Cloudflare account (it is in the dashboard URL, right after dash.cloudflare.com/).
- Go to “My Profile” → “API Tokens” → “Create Token” → “Create Custom Token”.
- Add the permission “Account” → “Browser Run” (formerly “Browser Rendering”) → “Edit”, limit it to your account and create it.
- Copy the token: it is shown only once. The free Workers plan has usage limits. For DNS, zones or WAF use the “Cloudflare” connector.
Tools (1)
Cloudflare Browser Rendering API request
CLOUDFLAREBROWSER_SEND_REQUESTAuthenticated call to the Cloudflare Browser Rendering API (https://api.cloudflare.com/client/v4/accounts/{account}/browser-run). Any endpoint of the API is allowed. Paths are under /accounts/{account}/browser-run. Examples: POST /content {"url": "https://example.com"} (rendered HTML), POST /screenshot {"url": "https://example.com"} (image), POST /pdf {"url": "https://example.com"}, POST /markdown {"url": "https://example.com"}, POST /scrape {"url": "https://example.com", "elements": [{"selector": "h1"}]}.
Required scopes
No scopes required
Input
Cloudflare Browser Rendering API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

