# Website Screenshot — Bulk Full-Page PNG, JPEG & WebP (`openregistry/website-screenshot`) Actor

Take screenshots of hundreds of web pages in one run: full page or viewport, desktop, laptop, tablet and mobile, PNG, JPEG or WebP, dark mode, hide cookie banners with CSS selectors. Each image gets a public link. Pay per screenshot.

- **URL**: https://apify.com/openregistry/website-screenshot.md
- **Developed by:** [Mahé Perrin](https://apify.com/openregistry) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 screenshot takens

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Screenshot — bulk full-page PNG, JPEG & WebP

Take screenshots of **hundreds of web pages in one run**. Full page or first screen only, on desktop, laptop, tablet and
mobile, as PNG, JPEG or WebP. Every image is stored with a **public download link**, and you get a table with the page
title, HTTP status and final URL after redirects.

**$2 per 1,000 screenshots.** No subscription, no monthly minimum, failed pages are not charged.

### What people use it for

- **Visual archives and compliance**: keep a dated image of your pages, ads, prices or terms.
- **Agencies and SEO**: before/after screenshots of client sites on every device, in one click.
- **QA and monitoring**: check that landing pages render on mobile after each release (schedule it).
- **Directories, catalogues, link previews**: thumbnails for a list of websites.
- **AI pipelines**: feed page images to a vision model.

### Input

| Field | What it does |
|---|---|
| `urls` / `urlsText` | Pages to capture (a missing `https://` is added, duplicates removed) |
| `devices` | `desktop` 1440×900, `laptop` 1280×800, `tablet` 820×1180 @2x, `mobile` 390×844 @3x |
| `fullPage`, `maxHeight` | Whole scrollable page (cut at `maxHeight`) or first screen only |
| `format`, `quality` | `png`, `jpeg` or `webp`; quality for JPEG/WebP |
| `delaySeconds` | Extra wait for animations and lazy-loaded images |
| `hideSelectors` | CSS selectors to hide (cookie banners, chat widgets, pop-ups) |
| `darkMode` | Render with `prefers-color-scheme: dark` |
| `maxResults` | Stops the run, so you control the cost |

```json
{
  "urls": ["https://example.com", "https://apify.com"],
  "devices": ["desktop", "mobile"],
  "fullPage": true,
  "format": "webp",
  "hideSelectors": ["#onetrust-banner-sdk"]
}
```

### Output

One row per URL and device:

| Field | Example |
|---|---|
| `screenshotUrl` | public link to the image in the run's key-value store |
| `url`, `finalUrl` | requested URL and URL after redirects |
| `device`, `width`, `fullPage`, `format` | desktop, 1440, true, png |
| `title`, `httpStatus` | Example Domain, 200 |
| `bytes`, `loadMs`, `takenAt` | file size, time spent, ISO timestamp |
| `error` | only on failed rows (not charged) |

Download all images at once from the run's *Storage → Key-value store*, or use the links in Excel, Google Sheets,
Airtable, Make, Zapier or n8n.

### Pricing

Pay per event: **$0.002 per screenshot** delivered (one URL on one device). A URL that cannot be loaded, an invalid URL
or a timeout produces an error row that is **not charged**. Set a maximum charge per run in the run options for a hard cap.

### How it works, and its limits

- A real headless Chromium renders the page, waits for the load event and for the network to settle, then waits your
  extra delay. The browser identifies itself as headless Chrome plus the name of this tool: it does **not** disguise
  itself, solve captchas or bypass bot protection. Pages behind a login, a paywall or an anti-bot wall are captured as
  they appear to a visitor (often the wall itself).
- Very long pages are cut at `maxHeight` (default 10,000 px) to keep images usable.
- Only capture pages you are allowed to reproduce. You are responsible for respecting copyright and website terms.

### Related tools

- **HTML to Markdown** and **Sitemap URL Extractor** from the same publisher: turn a sitemap into a list of URLs, then
  screenshot or convert them.

# Actor input Schema

## `urls` (type: `array`):

One URL per entry. A missing https:// is added. Duplicates are removed.

## `urlsText` (type: `string`):

URLs separated by new lines, commas or spaces (handy for pasting a spreadsheet column).

## `devices` (type: `array`):

One screenshot per URL and per device.

## `fullPage` (type: `boolean`):

Capture the whole scrollable page. Off = only the first screen (viewport).

## `maxHeight` (type: `integer`):

Very long pages are cut at this height.

## `format` (type: `string`):

PNG is lossless; JPEG and WebP are much smaller.

## `quality` (type: `integer`):

1 = smallest file, 100 = best quality. Ignored for PNG.

## `delaySeconds` (type: `integer`):

For animations, lazy images or late pop-ups.

## `hideSelectors` (type: `array`):

For example #cookie-banner, .newsletter-popup. Matching elements are hidden before the screenshot.

## `darkMode` (type: `boolean`):

Ask the page for its dark colour scheme (prefers-color-scheme: dark).

## `timeoutSeconds` (type: `integer`):

Pages that take longer to load return an error row (not charged).

## `maxResults` (type: `integer`):

The run stops once this many screenshots are delivered, so you control the cost.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://apify.com"
  ],
  "devices": [
    "desktop"
  ],
  "fullPage": true,
  "maxHeight": 10000,
  "format": "png",
  "quality": 80,
  "delaySeconds": 1,
  "darkMode": false,
  "timeoutSeconds": 45,
  "maxResults": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://example.com",
        "https://apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("openregistry/website-screenshot").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://example.com",
        "https://apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("openregistry/website-screenshot").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://example.com",
    "https://apify.com"
  ]
}' |
apify call openregistry/website-screenshot --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,openregistry/website-screenshot"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o9tWRV6xR8Juy75TL/builds/XCR9xyhyid0xAlNrE/openapi.json
