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
+52-3Lines changed: 52 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,56 @@ sidebar:
5
5
order: 2
6
6
---
7
7
8
-
Browser rendering can be used in two ways:
8
+
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
9
10
-
-[Workers Bindings](/browser-rendering/workers-bindings/) for complex scripts.
11
-
-[REST API](/browser-rendering/rest-api/) for simple actions.
10
+
There are two ways to use Browser Rendering:
11
+
-[REST API](/browser-rendering/rest-api/) for simple, one-off actions, like taking a screenshot, fetching HTML, or generating a PDF.
12
+
-[Workers Bindings](/browser-rendering/workers-bindings/) for more complex, multi-step browser automation using [Puppeteer](/browser-rendering/platform/puppeteer/) and [Playwright](/browser-rendering/platform/playwright/).
13
+
14
+
This guide will help you choose the right path for your needs and get you started with your first Browser Rendering project.
15
+
16
+
## REST API
17
+
18
+
The REST API is the perfect choice if you have an existing application and want to perform simple, stateless browser actions.
19
+
20
+
### Prerequisites
21
+
- Sign up for a [Cloudflare account](https://dash.cloudflare.com/sign-up/workers-and-pages).
22
+
- Create a [Cloudflare API Token](/fundamentals/api/get-started/create-token/) with `Browser Rendering - Edit` permissions.
23
+
24
+
### Example: Take a screenshot of the Cloudflare homepage
-[Generate a PDF](/browser-rendering/rest-api/pdf-endpoint/)
37
+
-[and more...](/browser-rendering/rest-api/)
38
+
39
+
## Workers Bindings
40
+
41
+
If you need to build more complex, multi-step browser automation workflows, Workers Bindings are the perfect choice. You can use familiar tools like [Puppeteer](/browser-rendering/platform/puppeteer/) and [Playwright](/browser-rendering/platform/playwright/).
42
+
43
+
### Prerequisites
44
+
<Renderfile="prereqs"product="workers" />
45
+
46
+
### Example: Navigate to a URL, take a screenshot, and store in KV
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/).
57
+
58
+
- Check out all the [REST API endpoints](/browser-rendering/rest-api/)
59
+
- Try out the [Playwright MCP](/browser-rendering/platform/playwright-mcp/)
60
+
- Learn more about Browser Rendering [limits](/browser-rendering/platform/limits/) and [pricing](/browser-rendering/platform/pricing/).
0 commit comments