/api/v1/screenshotImage Formats
All supported output formats: PNG, JPEG, WebP, PDF, MP4, MOV, AVI, WebM, and GIF. Choose with the format parameter.
The format parameter controls what the API produces. There are nine accepted values across three categories:
All supported formats
| format value | Category | MIME type | Supports quality | Best for |
|---|---|---|---|---|
png | Image | image/png | No (lossless) | UI, text, diagrams (pixel-perfect) |
jpeg | Image | image/jpeg | Yes (1–100) | Photos, marketing pages, social previews |
webp | Image | image/webp | Yes (1–100) | Web delivery, thumbnails (smallest file) |
pdf | Document | application/pdf | No | Printable reports, archiving |
mp4 | Video | video/mp4 | No | Smooth screen recordings |
mov | Video | video/quicktime | No | Apple-compatible recordings |
avi | Video | video/x-msvideo | No | Legacy video pipelines |
webm | Video | video/webm | No | Web-native video, smallest video file |
gif | Animated | image/gif | No | Animated previews, looping demos |
PDF and video formats have their own dedicated pages with additional parameters. This page covers the three image formats and the quality parameter.
PNG
Lossless compression. Largest file size, perfect pixel accuracy. Best for UI screenshots, text-heavy pages, and anything where sharpness matters. MIME type: image/png.
JPEG
Lossy compression. Significantly smaller files than PNG. Great for photos, marketing pages, and social previews. MIME type: image/jpeg. Supports the quality parameter (1–100, default: 80).
WebP
Modern format offering the best balance of quality and file size, typically 25–35% smaller than JPEG at equivalent quality. Widely supported in all modern browsers. MIME type: image/webp. Supports the quality parameter (1–100, default: 80).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
format | string | optional | Output format. Images: png (default), jpeg, webp. Document: pdf. Video/animated: mp4, mov, avi, webm, gif. |
quality | integer | optional | Compression quality for jpeg and webp, from 1 (lowest) to 100 (highest). Default: 80. Ignored for png and all other formats. |
Code Examples
# PNG (default, lossless)
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com" \
--output screenshot.png
# JPEG at quality 85
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&format=jpeg&quality=85" \
--output screenshot.jpg
# WebP at quality 90, smallest file for best quality
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&format=webp&quality=90" \
--output screenshot.webpResponse
(Raw bytes, Content-Type: image/png)