You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/get-started.mdx
+7-14Lines changed: 7 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,12 @@ sidebar:
6
6
---
7
7
import { Render } from"~/components";
8
8
9
-
Cloudflare Browser Rendering allows you to programmatically control a headless browser, enabling you to do things like take screenshots, generate PDFs, and perform automated browser tasks.
9
+
Cloudflare Browser Rendering allows you to programmatically control a headless browser, enabling you to do things like take screenshots, generate PDFs, and perform automated browser tasks. This guide will help you choose the right integration method and get you started with your first project.
10
10
11
-
There are two ways to use Browser Rendering:
12
-
-[REST API](/browser-rendering/rest-api/) for simple, one-off actions, like taking a screenshot, fetching HTML, or generating a PDF.
13
-
-[Workers Bindings](/browser-rendering/workers-bindings/) for more complex, multi-step browser automation using [Puppeteer](/browser-rendering/puppeteer/) and [Playwright](/browser-rendering/playwright/).
14
-
15
-
This guide will help you choose the right path for your needs and get you started with your first Browser Rendering project.
-[Generate a PDF](/browser-rendering/rest-api/pdf-endpoint/)
36
-
-[and more...](/browser-rendering/rest-api/)
30
+
-[Explore all REST API endpoints](/browser-rendering/rest-api/)
37
31
38
32
## Workers Bindings
39
33
40
-
Workers Bindings are best for situations where you need to build more complex, multi-step browser automation workflows. You can use familiar tools like [Puppeteer](/browser-rendering/puppeteer/) and [Playwright](/browser-rendering/playwright/).
41
-
42
34
### Prerequisites
43
35
<Renderfile="prereqs"product="workers" />
44
36
@@ -49,9 +41,10 @@ Workers Bindings are best for situations where you need to build more complex, m
49
41
product="browser-rendering"
50
42
/>
51
43
52
-
## Next Steps
53
-
If you have any feature requests or notice any bugs, share your feedback directly with the Cloudflare team by joining the [Cloudflare Developers community on Discord](https://discord.cloudflare.com/).
44
+
## Next steps
54
45
55
46
- Check out all the [REST API endpoints](/browser-rendering/rest-api/)
56
47
- Try out the [Playwright MCP](/browser-rendering/playwright/playwright-mcp/)
57
-
- Learn more about Browser Rendering [limits](/browser-rendering/limits/) and [pricing](/browser-rendering/pricing/).
48
+
- Learn more about Browser Rendering [limits](/browser-rendering/limits/) and [pricing](/browser-rendering/pricing/)
49
+
50
+
If you have any feature requests or notice any bugs, share your feedback directly with the Cloudflare team by joining the [Cloudflare Developers community on Discord](https://discord.cloudflare.com/).
-**Scale to thousands of browsers**: Instant access to a global pool of browsers with low cold-start time, ideal for high-volume screenshot generation, data extraction, or automation at scale
@@ -48,21 +53,6 @@ Programmatically load and fully render dynamic webpages or raw HTML and capture
48
53
-**Session management**: [Reuse browser sessions](/browser-rendering/workers-bindings/reuse-sessions/) across requests to improve performance and reduce cold-start overhead
49
54
-**Flexible pricing**: Pay only for browser time used with generous free tier ([view pricing](/browser-rendering/pricing/))
50
55
51
-
## Integration methods
52
-
53
-
-**[REST API](/browser-rendering/rest-api/)**: Simple HTTP endpoints for stateless tasks like screenshots, PDFs, and scraping.
54
-
-**[Workers Bindings](/browser-rendering/workers-bindings/)**: Full browser automation within Workers using [Puppeteer](/browser-rendering/puppeteer/), [Playwright](/browser-rendering/playwright/), or [Stagehand](/browser-rendering/stagehand/).
55
-
56
-
| Use case | Recommended | Why |
57
-
| --- | --- | --- |
58
-
| Simple screenshot, PDF, or scrape |[REST API](/browser-rendering/rest-api/)| No code deployment; single HTTP request |
59
-
| Browser automation |[Playwright](/browser-rendering/playwright/)| Full control with built-in tracing and assertions |
60
-
| Porting existing scripts |[Puppeteer](/browser-rendering/puppeteer/) or [Playwright](/browser-rendering/playwright/)| Minimal code changes from standard libraries |
61
-
| AI-powered data extraction |[JSON endpoint](/browser-rendering/rest-api/json-endpoint/)| Structured data via natural language prompts |
62
-
| AI agent browsing |[Playwright MCP](/browser-rendering/playwright/playwright-mcp/)| LLMs control browsers via MCP |
63
-
| Resilient scraping |[Stagehand](/browser-rendering/stagehand/)| AI finds elements by intent, not selectors |
Browser Rendering offers multiple integration methods depending on your use case:
6
+
7
+
-**[REST API](/browser-rendering/rest-api/)**: Simple HTTP endpoints for stateless tasks like screenshots, PDFs, and scraping.
8
+
-**[Workers Bindings](/browser-rendering/workers-bindings/)**: Full browser automation within Workers using [Puppeteer](/browser-rendering/puppeteer/), [Playwright](/browser-rendering/playwright/), or [Stagehand](/browser-rendering/stagehand/).
9
+
10
+
| Use case | Recommended | Why |
11
+
| --- | --- | --- |
12
+
| Simple screenshot, PDF, or scrape |[REST API](/browser-rendering/rest-api/)| No code deployment; single HTTP request |
13
+
| Browser automation |[Playwright](/browser-rendering/playwright/)| Full control with built-in tracing and assertions |
14
+
| Porting existing scripts |[Puppeteer](/browser-rendering/puppeteer/) or [Playwright](/browser-rendering/playwright/)| Minimal code changes from standard libraries |
15
+
| AI-powered data extraction |[JSON endpoint](/browser-rendering/rest-api/json-endpoint/)| Structured data via natural language prompts |
16
+
| AI agent browsing |[Playwright MCP](/browser-rendering/playwright/playwright-mcp/)| LLMs control browsers via MCP |
17
+
| Resilient scraping |[Stagehand](/browser-rendering/stagehand/)| AI finds elements by intent, not selectors |
0 commit comments