Capture Screenshot Online

Website Screenshot API

Generate Website Screenshot

GET /api/screenshot

Request Parameters

Parameter Type Required Default Description
url string Yes - Target website URL for screenshot
format string No webp Image format (webp, png)
width number No 1920 Viewport width (100-3840)
height number No 1080 Viewport height (100-2160)

Usage Examples

Basic Website Screenshot

GET /api/screenshot?url=https://example.com

Custom Format & Size

GET /api/screenshot?url=https://example.com&format=png&width=1920&height=1080

JavaScript Screenshot API Example

// Capture website screenshot using the API
const response = await fetch(
  'https://screenshotsnap.com/api/screenshot?url=https://example.com&format=webp'
);
const imageBlob = await response.blob();

// Display the website screenshot
const img = document.createElement('img');
img.src = URL.createObjectURL(imageBlob);
document.body.appendChild(img);
                    

Core Features

High Performance

Global edge computing architecture for fast website screenshot generation with reliable uptime

Smart Caching

R2 bucket cache with 7-day retention, significantly improving screenshot API response speed

Multi-format Support

Supports WebP and PNG formats for flexible website screenshot output options

Custom Dimensions

Capture screenshot online with custom viewport width and height for any use case