GET/api/v1/screenshot

Image 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 valueCategoryMIME typeSupports qualityBest for
pngImageimage/pngNo (lossless)UI, text, diagrams (pixel-perfect)
jpegImageimage/jpegYes (1–100)Photos, marketing pages, social previews
webpImageimage/webpYes (1–100)Web delivery, thumbnails (smallest file)
pdfDocumentapplication/pdfNoPrintable reports, archiving
mp4Videovideo/mp4NoSmooth screen recordings
movVideovideo/quicktimeNoApple-compatible recordings
aviVideovideo/x-msvideoNoLegacy video pipelines
webmVideovideo/webmNoWeb-native video, smallest video file
gifAnimatedimage/gifNoAnimated 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

NameTypeRequiredDescription
formatstringoptionalOutput format. Images: png (default), jpeg, webp. Document: pdf. Video/animated: mp4, mov, avi, webm, gif.
qualityintegeroptionalCompression 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.webp

Response

(Raw bytes, Content-Type: image/png)