Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions src/content/docs/browser-rendering/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,32 @@ import {

<Description>

Browser automation for [Cloudflare Workers](/workers/).
Browser Rendering enables developers to programmatically control and interact with headless browser instances running on Cloudflare’s global network. This facilitates tasks such as automating browser interactions, capturing screenshots, generating PDFs, and extracting data from web pages.

</Description>

<Plan type="workers-all" />

The Workers Browser Rendering API allows developers to programmatically control and interact with a headless browser instance and create automation flows for their applications and products. Once you configure the service, Workers Browser Rendering gives you access to a WebSocket endpoint that speaks the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). DevTools is what allows Cloudflare to instrument a Chromium instance running in the Cloudflare global network.
##Integration Methods

Use Browser Rendering to:
You can integrate Browser Rendering into your applications using one of the following methods:

- Take screenshots of pages.
- Convert a page to a PDF.
- Test web applications.
- Gather page load performance metrics.
- Crawl web pages for information retrieval.
- **[REST API](/browser-rendering/rest-api/)**: Ideal for simple, stateless tasks like capturing screenshots, generating PDFs, extracting HTML content, and more.
- **[Workers Binding API](/browser-rendering/workers-binding-api/)**: Suitable for advanced browser automation within [Cloudflare Workers](/workers/). This method provides greater control, enabling more complex workflows and persistent sessions.

Choose the method that best fits your use case. For example, use the [REST API endpoints](/browser-rendering/rest-api/) for straightforward tasks from external applications and the [Workers Binding API](/browser-rendering/workers-binding-api/) for complex automation within the Cloudflare ecosystem.

##Use Cases

Browser Rendering can be utilized for various purposes, including:
- Fetch HTML content of a page.
- Capture screenshot of a webpage.
- Convert a webpage into a PDF document.
- Take a webpage snapshot.
- Scrape specified HTML elements from a webpage.
- Retrieve data in a structured format.
- Extract Markdown content from a webpage.
- Gather all hyperlinks found on a webpage.

## Related products

Expand Down
Loading