Capture a PNG, JPEG or WebP screenshot with Puppeteer's page
screenshotCapture a PNG, JPEG or WebP screenshot with Puppeteer's page.screenshot() options (fullPage, clip, omitBackground, quality 0-100 for jpeg/webp only). Price: $0.005 a call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The page to capture (https). Set url or html, not both. | |
| html | No | HTML to render instead of a URL. | |
| cookies | No | ||
| deliver | No | {store, name?}: keep the image in file storage | |
| selector | No | Screenshot this element instead of the page | |
| viewport | No | {width,height,deviceScaleFactor,...}; default 1920x1080 | |
| userAgent | No | ||
| scrollPage | No | Scroll the page before capturing (lazy content) | |
| addStyleTag | No | ||
| bestAttempt | No | ||
| gotoOptions | No | {waitUntil, timeout} | |
| addScriptTag | No | ||
| authenticate | No | ||
| waitForTimeout | No | ||
| waitForSelector | No | ||
| emulateMediaType | No | ||
| screenshotOptions | No | Puppeteer page.screenshot() options as documented at pptr.dev/api/puppeteer.screenshotoptions. | |
| allowResourceTypes | No | ||
| allowRequestPattern | No | ||
| rejectResourceTypes | No | ||
| setExtraHTTPHeaders | No | ||
| rejectRequestPattern | No | ||
| setJavaScriptEnabled | No |