Allscreenshots Docs

Introduction

Capture high-quality screenshots of any website with a simple API

AllScreenshots API

AllScreenshots is a powerful screenshot API that lets you capture high-quality images of any website programmatically. Whether you need to generate social media previews, create visual testing snapshots, or build a link preview service, our API handles the complexity of rendering web pages so you don't have to.

Quick example

Capture a screenshot with a single API call:

curl -X POST 'https://api.allscreenshots.com/v1/screenshots' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"url": "https://example.com"}'

The API returns the screenshot image directly, ready to use.

Key features

Sync and async capture

Get screenshots immediately or process them in the background with webhooks

Bulk processing

Capture up to 100 URLs in a single API call with shared settings

Device emulation

Render pages as they appear on iPhones, Android devices, tablets, and desktops

Screenshot composition

Combine multiple screenshots into beautiful collages and galleries

Scheduled captures

Automatically capture screenshots on a recurring schedule

Content extraction

Extract HTML, markdown, and structured JSON alongside screenshots from a single page load

Ad and cookie blocking

Remove ads, trackers, and cookie consent banners automatically

Use cases

  • Social media previews: Generate Open Graph and Twitter Card images
  • Visual regression testing: Capture baseline screenshots for automated testing
  • Link previews: Build rich previews for URLs shared in your app
  • Competitor monitoring: Track visual changes to competitor websites
  • Documentation: Automatically capture screenshots for product docs
  • Archiving: Create visual records of web pages over time

Getting started

Base URL

All API requests are made to:

https://api.allscreenshots.com

Response formats

The API supports three response formats:

  • Binary (default): Returns the raw image data with the appropriate content type header
  • Base64: Returns JSON with the image data as a base64-encoded string
  • URL: Stores the image on the CDN and returns a JSON response with a download URL

Set responseType to "base64" or "url" in your request to change the response format.

For multi-format extraction, use the outputs array to request screenshots, PDFs, HTML, markdown, and structured JSON from a single page load.

On this page