We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7caea7 commit 8bea069Copy full SHA for 8bea069
src/content/partials/browser-rendering/example-screenshot-from-url.mdx
@@ -0,0 +1,12 @@
1
+```bash
2
+curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/screenshot' \
3
+ -H 'Authorization: Bearer <apiToken>' \
4
+ -H 'Content-Type: application/json' \
5
+ -d '{
6
+ "html": "Hello World!",
7
+ "screenshotOptions": {
8
+ "omitBackground": true
9
+ }
10
+ }' \
11
+ --output "screenshot.png"
12
+```
0 commit comments