Quick Actions
Last updated Oct 10, 2026 Quick Actions provide simple interfaces for common browser tasks like capturing screenshots, extracting HTML content, generating PDFs, and more. You can use Quick Actions in two ways:
- REST API: HTTP endpoints for one-off requests or external integration.
- Workers Bindings: Call Quick Actions directly from a Cloudflare Worker using
env.BROWSER.quickAction().
The following are the available options:
- /content - Fetch HTML
- /screenshot - Capture screenshot
- /pdf - Render PDF
- /markdown - Extract Markdown from a webpage
- /snapshot - Capture multiple page formats
- /accessibilityTree - Capture accessibility tree
- /scrape - Scrape HTML elements
- /json - Capture structured data using AI
- /links - Retrieve links from a webpage
- /crawl - Crawl web content
- Reference
/crawl is available via the REST API only.
Use Quick Actions when you need a fast, simple way to perform common browser tasks such as capturing screenshots, extracting HTML, or generating PDFs without writing complex scripts. For more advanced automation, custom workflows, or persistent browser sessions, use Puppeteer, Playwright, or CDP.
Before you begin
REST API
To use Quick Actions via the REST API, create a custom API Token with the following permissions:
Browser Run - Edit
Workers binding
To use Quick Actions from a Worker, configure a browser binding in your wrangler.json. No API token is needed when using the Workers binding.
{
"browser": {
"binding": "BROWSER"
}
}
Caution
The .quickAction() method has two requirements:
- Compatibility date: Your Worker must use a compatibility date of
2026-03-24or later. - Remote mode for local development: The
.quickAction()method is not yet supported in local development mode. When developing locally withwrangler dev, you must usenpx wrangler dev --remoteor set"remote": truein your browser binding configuration. Without remote mode, you will receive the error:The RPC receiver does not implement the method "quickAction".
{
"compatibility_date": "2026-03-24",
"browser": {
"binding": "BROWSER",
"remote": true
}
}
Note
You can monitor Browser Run (formerly Browser Rendering) usage in two ways:
- In the Cloudflare dashboard, go to the Browser Run page to view aggregate metrics, including total Quick Actions requests and total browser hours used. Go to Browser Run ↗
X-Browser-Ms-Usedheader: Returned in every Quick Actions response, reporting browser time used for that request (in milliseconds).
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/browser-run/quick-actions/#page","headline":"Quick Actions","description":"Use Browser Run Quick Actions HTTP endpoints to capture screenshots, extract HTML, generate PDFs, and perform other common browser tasks.","url":"https://developers.cloudflare.com/browser-run/quick-actions/","inLanguage":"en","image":"https://developers.cloudflare.com/browser-run/quick-actions/og.png?v=b1c1413af4139157","dateModified":"2026-10-10","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Capture the accessibility tree from a webpage after JavaScript execution using the Browser Run /accessibilityTree endpoint. title: /accessibilityTree - Capture accessibility tree image: https://developers.cloudflare.com/browser-run/quick-actions/accessibility-tree-endpoint/og.png?v=f6f64e4bf415df60
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/browser-run/llms.txt
Use this file to discover all available pages before exploring further.
Docs