Introduction

Capture pixel-perfect screenshots and PDFs of any web page over a simple REST API — with full-page rendering, device emulation, ad/cookie blocking, dark mode, and more. Every image in these docs was produced by this API.

A screenshot of stripe.com captured with the API
POST /screenshot of stripe.com — a single request, a signed image URL back.

All requests go to the base URL:

https://screenshotforweb.com/api/v1

Quickstart

Create an API key from the API Keys page, then take your first screenshot:

Terminal
curl -X POST https://screenshotforweb.com/api/v1/screenshot \
  -H "X-API-Key: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","format":"png"}'

The response returns a signed URL to the rendered image:

Response
{
  "success": true,
  "data": {
    "signedUrl": "https://storage.googleapis.com/...",
    "downloadUrl": "/api/v1/assets/screenshot/...",
    "metadata": { "format": "png", "sizeBytes": 17544, "capturedAt": "..." }
  }
}

What you can do

  • Full-page or viewport screenshots in PNG, JPEG, WEBP, or PDF
  • Device emulation, custom viewports, and dark mode
  • Block ads, cookie banners, and chat widgets; inject CSS/JS; simulate interactions
  • Batch many URLs, or capture a site's history from the Wayback Machine
  • Browser-safe signed URLs for embeds

Next steps