screenshot
Capture screenshots of any webpage. Control viewport size, output format, quality, and load condition. Supports full-page or viewport-only captures.
Instructions
Captures a screenshot of any webpage. Control viewport size, output image format/quality, full-page vs. viewport-only capture, and when the browser considers the page 'loaded' before capturing. Returns binary image data. [Credits: 5 credits per successful request.] Notes: Distinct endpoint from /scrape (https://api.scrapingdog.com/screenshot). This is the only one of the fetched pages that ships a full, structured 'API Parameters' reference table in the docs (Scrapingdog Parameters / Query Parameters / Full Page / Viewport / Wait Until / Format sections) — all other /scrape sub-pages only describe their one feature parameter in prose plus a code example. No explicit country/proxy/session parameters are documented for the screenshot endpoint itself. Returns: Binary image data in the requested format (default PNG; Content-Type image/png, image/jpeg, or image/webp). Typically saved directly to a file (e.g. screenshot.png) rather than parsed as text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the page for which you want to take a screenshot. | |
| width | No | The width of the browser viewport in pixels. | |
| format | No | Screenshot output format. Available: png, jpg, webp. (default: png) | |
| height | No | The height of the browser viewport in pixels. | |
| quality | No | Image quality setting, 0-100 range. (default: 80) | |
| fullPage | No | Whether to take a full-page screenshot (scrolling the whole page) or just the visible viewport portion without scrolling. | |
| wait_until | No | Determines when navigation is considered complete before taking the screenshot. Options: load, domcontentloaded, networkidle. (default: domcontentloaded) |