- Examples (2)
- Quick Actions examples
- Fetch rendered HTML from a URL
- Take a screenshot of the visible viewport
- Take a screenshot of the full page
- Take a screenshot of an authenticated page
- Generate a PDF
- Extract Markdown from a URL
- Capture a snapshot from a URL
- Scrape headings and links from a URL
- Capture structured data with an AI prompt and JSON schema
- Retrieve links from a URL
- Crawl a documentation site
- Extract structured product data with AI
- Fast static content fetch
- Browser automation examples
- CDP examples
- On this page
- Quick Actions examples
Examples (2)
Last updated Sep 26, 2026
Quick Actions examples
Use these Quick Actions examples to perform common tasks with a single HTTP request.
Fetch rendered HTML from a URL
Capture fully rendered HTML from a webpage after JavaScript execution.
Take a screenshot of the visible viewport
Capture a screenshot of a fully rendered webpage from a URL or custom HTML.
Take a screenshot of the full page
Capture a screenshot of an entire scrollable webpage, not just the visible viewport.
Take a screenshot of an authenticated page
Capture a screenshot of a webpage that requires login using cookies, HTTP Basic Auth, or custom headers.
Generate a PDF
Generate a PDF from a URL or custom HTML and CSS.
Extract Markdown from a URL
Convert a webpage's content into Markdown format.
Capture a snapshot from a URL
Capture both the rendered HTML and a screenshot from a webpage in a single request.
Scrape headings and links from a URL
Extract structured data from specific elements on a webpage using CSS selectors.
Capture structured data with an AI prompt and JSON schema
Extract structured data from a webpage using AI using a prompt or JSON schema.
Retrieve links from a URL
Retrieve all links from a webpage, including hidden ones.
Crawl a documentation site
Crawl documentation pages with include/exclude patterns to build a knowledge base.
Extract structured product data with AI
Crawl a product catalog and extract structured JSON data using AI.
Fast static content fetch
Crawl static sites without JavaScript rendering for faster results.
Browser automation examples
Use Puppeteer, Playwright, or Stagehand for dynamic, multi-step browser automation within Cloudflare Workers.
Get page metrics with Puppeteer
Use Puppeteer to navigate to a page and retrieve performance metrics in a Worker.
Take a screenshot with Playwright
Use Playwright to navigate to a page, interact with elements, and capture a screenshot.
Run test assertions with Playwright
Use Playwright assertions to test web applications in a Worker.
Generate a trace with Playwright
Capture detailed execution logs for debugging with Playwright tracing.
Reuse browser sessions
Improve performance by reusing browser sessions across requests.
Persist sessions with Durable Objects
Use Durable Objects to maintain long-running browser sessions.
AI-powered browser automation with Stagehand
Use natural language instructions to automate browser tasks with AI.
CDP examples
Use CDP to connect to Browser Run from any environment using the Chrome DevTools Protocol.
Connect Puppeteer from your local machine
Run Puppeteer scripts against Browser Run from Node.js on your local machine, CI/CD, or any external server.
Configure AI agents with MCP
Set up Claude Desktop, Claude Code, Cursor, or other MCP clients to control browsers via Browser Run.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/browser-run/examples/#page","headline":"Examples","description":"Explore Browser Run code examples for Quick Actions, Puppeteer, Playwright, and CDP integrations.","url":"https://developers.cloudflare.com/browser-run/examples/","inLanguage":"en","image":"https://developers.cloudflare.com/browser-run/examples/og.png?v=69dbb4f9da0e06bc","dateModified":"2026-09-26","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: Use the Browser Run API along with Durable Objects to take screenshots from web pages and store them in R2. title: Deploy a Browser Run Worker with Durable Objects image: https://developers.cloudflare.com/browser-run/how-to/browser-run-with-do/og.png?v=33efece5ee628220
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