Device Emulation
Emulate 120+ real devices for screenshot capture including iPhone 15 Pro, iPad, Pixel 8, and Galaxy S23. Automatic viewport, user agent, and touch capability configuration.
Capture screenshots as they would appear on specific devices. Device emulation automatically configures viewport, user agent, touch capabilities, and pixel density.
Device Emulation Parameter
emulateDevice (emulateDevice)
- Default: None
- Example:
emulateDevice=iphone_15_pro - Effect: Overrides viewport, user agent, and scale factor settings
Get Available Devices
Retrieve the complete list of supported devices:
curl "https://edge.capture.page/screenshot/devices"Sample Response:
{
"success": true,
"count": 120,
"devices": [
{
"name": "iPhone 15 Pro",
"key": "iphone_15_pro",
"viewport": { "width": 393, "height": 852, "deviceScaleFactor": 3 }
}
]
}Common Devices
Smartphones: iphone_15_pro, iphone_15, pixel_8, galaxy_s23
Tablets: ipad_pro_12_9, ipad_air, galaxy_tab_s9
Desktop: desktop_hd, laptop
For complete list: Use the /screenshot/devices API endpoint
Usage Examples
// iPhone
https://cdn.capture.page/KEY/HASH/image?url=https://example.com&emulateDevice=iphone_15_pro
// iPad
&emulateDevice=ipad_air
// Desktop
&emulateDevice=desktop_hdWhat's Included
Device emulation automatically configures:
- Viewport dimensions (exact screen size)
- Device scale factor (pixel density)
- User agent string
- Touch capabilities
- Mobile-optimized rendering
Best Practices
Use real device profiles:
- ✅
emulateDevice=iphone_15_pro - ❌
vw=393&vh=852&scaleFactor=3(manual viewport)
Match your audience: Use iPhone for iOS users, Pixel/Galaxy for Android users.
Troubleshooting
Device Not Found: Check /screenshot/devices endpoint for correct key
Unexpected Layout: Device emulation triggers mobile/tablet layouts, site may detect and redirect
Wrong Screen Size: Device emulation overrides manual viewport settings
Page Enhancements
Capture cleaner screenshots with dark mode, cookie banner dismissal, ad blocking, and bot detection bypass. Remove distractions for professional-looking captures.
Image Output Options
Optimize screenshot output with PNG, JPEG, and WebP formats. Configure image quality, transparency, automatic format selection, and custom resizing options.