Skip to content

Commit 7d81e15

Browse files
authored
Update snapshot.mdx
1 parent 9f3fffc commit 7d81e15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/content/docs/browser-rendering/rest-api/snapshot.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 6
66
---
77

8-
import { Tabs, TabItem } from "~/components";
8+
import { Tabs, TabItem, Render } from "~/components";
99

1010
The `/snapshot` endpoint captures both the HTML content and a screenshot of the webpage in one request. It returns the HTML as a text string and the screenshot as a Base64-encoded image.
1111

@@ -102,5 +102,9 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
102102
}
103103
}
104104
```
105+
<Render
106+
file="setting-custom-user-agent"
107+
product="browser-rendering"
108+
/>
105109

106110
Many more options exist, like setting HTTP credentials using `authenticate`, setting `cookies`, and using `gotoOptions` to control page load behaviour - check the endpoint [reference](/api/resources/browser_rendering/subresources/snapshot/) for all available parameters.

0 commit comments

Comments
 (0)