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

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 can return screenshots in two ways:

  • Binary (default): Returns the image directly with the appropriate content type
  • JSON: Returns a URL to the stored image with metadata

Set responseType: "json" in your request to receive JSON responses.

On this page