Skip to content
Maua.Culturewire

Cloudflare Browser Rendering

Cloudflare headless browser: screenshots, PDF and Markdown

Developer toolsCatalog1 tool · 0 triggers

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

    1. Copy the “Account ID” of your Cloudflare account (it is in the dashboard URL, right after dash.cloudflare.com/).
    2. Go to “My Profile” → “API Tokens” → “Create Token” → “Create Custom Token”.
    3. Add the permission “Account” → “Browser Run” (formerly “Browser Rendering”) → “Edit”, limit it to your account and create it.
    4. Copy the token: it is shown only once. The free Workers plan has usage limits. For DNS, zones or WAF use the “Cloudflare” connector.

    Get credentials (opens in a new tab)

Tools (1)

  • Cloudflare Browser Rendering API requestCLOUDFLAREBROWSER_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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.