Capture Screenshot
Capture a screenshot of any publicly accessible website.Endpoint
Query Parameters
URL of the website to screenshot (must include https://)
Screenshot width in pixels
Screenshot height in pixels
Image format. Options:
png, jpg, jpeg, webpDelay in milliseconds before taking screenshot (useful for dynamic content)
Response Example
Response Fields
The URL that was captured
Width of the screenshot in pixels
Height of the screenshot in pixels
Image format used (png, jpg, jpeg, or webp)
Delay in milliseconds that was applied before capture
Base64-encoded image data with data URI prefix (
data:image/{format};base64,)Common Resolutions
| Device | Width | Height |
|---|---|---|
| Desktop HD | 1920 | 1080 |
| Desktop 4K | 3840 | 2160 |
| Tablet | 1024 | 768 |
| Mobile | 375 | 667 |
| Mobile (iPhone) | 390 | 844 |
The screenshot is returned as a base64-encoded data URI, which can be directly used in HTML
<img> tags or decoded and saved as a file.Use Cases
Website Monitoring
Monitor website changes and layouts
Thumbnail Generation
Generate preview thumbnails for URLs
Archiving
Archive web pages visually
Testing
Visual regression testing
Image Format Options
PNG
- Best for: Screenshots with text, sharp edges
- Lossless compression
- Larger file sizes
- Transparency support
JPG/JPEG
- Best for: Photographs, complex images
- Lossy compression
- Smaller file sizes
- No transparency support
WebP
- Best for: Modern browsers
- Superior compression
- Smaller file sizes than PNG/JPG
- Transparency support