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/platform/browser-close-reasons.mdx
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,19 @@ sidebar:
5
5
order: 30
6
6
7
7
---
8
+
import { DashButton } from"~/components";
8
9
9
10
A browser session may close for a variety of reasons, occasionally due to connection errors or errors in the headless browser instance. As a best practice, wrap `puppeteer.connect` or `puppeteer.launch` in a [`try/catch`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch) statement.
10
11
11
-
The reason that a browser closed can be found on the Browser Rendering Dashboard in the [logs tab](https://dash.cloudflare.com/?to=/:account/workers/browser-renderingl/logs). When Cloudflare begins charging for the Browser Rendering API, we will not charge when errors are due to underlying Browser Rendering infrastructure.
12
+
To see the reason that a browser closed:
13
+
14
+
1. In the Cloudflare dashboard, go to the **Browser Rendering** page.
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/platform/pricing.mdx
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Pricing
4
4
sidebar:
5
5
order: 31
6
6
---
7
-
import { Details } from"~/components"
7
+
import { DashButton } from"~/components"
8
8
9
9
There are two ways to use Browser Rendering. Depending on the method you use, here is how billing works:
10
10
-[**REST API**](/browser-rendering/rest-api/): Charged for **Duration** only ($/browser hour)
@@ -15,14 +15,6 @@ There are two ways to use Browser Rendering. Depending on the method you use, he
15
15
|**Workers Free**| 10 minutes per day | 3 concurrent browsers | N/A |
16
16
|**Workers Paid**| 10 hours per month | 10 concurrent browsers (averaged monthly) |**1. REST API**: $0.09 per additional browser hour <br />**2. Workers Bindings**: $0.09 per additional browser hour <br /> $2.00 per additional concurrent browser |
17
17
18
-
<Detailsheader="Where can I monitor my usage?">
19
-
You can monitor your Browser Rendering usage in the [Cloudflare dashboard](https://dash.cloudflare.com). Go to **Compute (Workers)** > **Browser Rendering**.
20
-
</Details>
21
-
22
-
<Detailsheader="How is the number of concurrent browsers calculated?">
23
-
Cloudflare calculates concurrent browsers as the **monthly average of your daily peak usage**. In other words, we record **the peak number of concurrent browsers each day** and then average those values over the month. This approach reflects your typical traffic and ensures you are not disproportionately charged for brief spikes in browser concurrency.
24
-
</Details>
25
-
26
18
## Examples of Workers Paid pricing
27
19
<br/>
28
20
#### Example: REST API pricing
@@ -52,7 +44,14 @@ For **browser duration** and **concurrent browsers**:
52
44
53
45
### How do I estimate my Browser Rendering costs?
54
46
55
-
You can monitor your Browser Rendering usage in the [Cloudflare dashboard](https://dash.cloudflare.com). Go to **Compute (Workers)** > **Browser Rendering**. Then, you can use [the pricing page](/browser-rendering/platform/pricing/) to estimate your costs.
47
+
To monitor your Browser Rendering usage in the Cloudflare dashboard, go to the **Browser Rendering** page.
Then, you can use [the pricing page](/browser-rendering/platform/pricing/) to estimate your costs.
56
52
57
53
### Do failed API calls, such as those that time out, add to billable browser hours?
58
54
No. If a request to the Browser Rendering REST API fails with a `waitForTimeout` error, the browser session is not charged.
55
+
56
+
### How is the number of concurrent browsers calculated?
57
+
Cloudflare calculates concurrent browsers as the **monthly average of your daily peak usage**. In other words, we record **the peak number of concurrent browsers each day** and then average those values over the month. This approach reflects your typical traffic and ensures you are not disproportionately charged for brief spikes in browser concurrency.
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/rest-api/index.mdx
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ title: REST API
4
4
sidebar:
5
5
order: 2
6
6
---
7
+
import { DashButton } from"~/components";
7
8
8
9
The REST API is a RESTful interface that provides endpoints for common browser actions such as capturing screenshots, extracting HTML content, generating PDFs, and more.
9
10
The following are the available options:
@@ -22,8 +23,9 @@ Before you begin, make sure you [create a custom API Token](/fundamentals/api/ge
22
23
23
24
:::note[Note]
24
25
25
-
You can monitor Browser Rendering usage in two ways:
26
-
-[Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers/browser-rendering): View aggregate metrics, including total REST API requests and total browser hours used.
27
-
-`X-Browser-Ms-Used` header: Returned in every REST API response, reporting browser time used for that request (in milliseconds).
26
+
You can monitor Browser Rendering usage in two ways:
27
+
- In the Cloudflare dashboard, go to the **Browser Rendering** page to view aggregate metrics, including total REST API requests and total browser hours used.
0 commit comments