## Get screenshot. `client.browserRendering.screenshot.create(ScreenshotCreateParamsparams, RequestOptionsoptions?): ScreenshotCreateResponse` **post** `/accounts/{account_id}/browser-rendering/screenshot` Takes a screenshot of a webpage from provided URL or HTML. Control page loading with `gotoOptions` and `waitFor*` options. Customize screenshots with `viewport`, `fullPage`, `clip` and others. ### Parameters - `ScreenshotCreateParams = Variant0 | Variant1` - `ScreenshotCreateParamsBase` - `Variant0 extends ScreenshotCreateParamsBase` - `Variant1 extends ScreenshotCreateParamsBase` ### Returns - `ScreenshotCreateResponse` - `success: boolean` Response status. - `errors?: Array` - `code: number` Error code. - `message: string` Error message. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const screenshot = await client.browserRendering.screenshot.create({ account_id: 'account_id', html: '

Hello World!

', }); console.log(screenshot.success); ``` #### Response ```json { "success": true, "errors": [ { "code": 0, "message": "message" } ] } ```