Viewport Options
Control the browser viewport size and device emulation settings.
Viewport Dimensions
Set custom width and height for the viewport:
{ "url": "https://example.com", "viewport": { "width": 1280, "height": 720 } }
Device Scale Factor
Emulate high-DPI displays:
{ "viewport": { "width": 1280, "height": 720, "device_scale_factor": 2 } }
Mobile Emulation
Emulate mobile devices:
{ "viewport": { "width": 390, "height": 844, "is_mobile": true, "has_touch": true } }
Common Presets
Use presets for common viewport sizes:
| Preset | Dimensions | Description |
|---|---|---|
og_card |
1200×630 | Open Graph cards |
twitter_card |
1200×600 | Twitter cards |
full_page |
1280×auto | Full page capture |