Devices & mobile

Emulate a real device with the device preset (user agent, viewport, and retina scale together), or set an exact viewport yourself.

Device preset

curl -X POST https://screenshotforweb.com/api/v1/screenshot \
  -H "X-API-Key: sk_live_your_key" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","device":"iPhone 14 Pro"}'
Mobile device emulation
device: 'iPhone 14 Pro' — mobile viewport at retina scale

Custom viewport

{ "url": "https://example.com", "viewport": { "width": 1280, "height": 800, "deviceScaleFactor": 2, "isMobile": false } }

Tips

  • See the full device list — ~50 phone, tablet, and laptop presets, plus inline sizes like mobile-375x667.
  • Add orientation: "landscape" to rotate.
  • deviceScaleFactor: 2 produces sharp, retina-quality images (larger files).