# Website Screenshot Pro – Bulk Full-Page, Devices & PDF (`plainwren/screenshot-pro-v2`) Actor

Takes viewport or full-page screenshots (PNG, JPEG or PDF) of the URLs you list, for your own or authorised sites. Device presets, cookie-banner hiding (never clicks Accept), no crawling. Blocked pages are free. By Plainwren.

- **URL**: https://apify.com/plainwren/screenshot-pro-v2.md
- **Developed by:** [Plainwren Studio](https://apify.com/plainwren) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 viewport screenshots

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

### What is Website Screenshot Pro?

**Website Screenshot Pro** takes a screenshot or PDF of each URL you list, for your own or authorised sites.

- One capture per listed URL: viewport or full page, as PNG, JPEG (quality 1–100) or PDF (A4 or Letter).
- Device presets: desktop 1920×1080, laptop 1366×768, tablet 820×1180 @2×, phone 390×844 @2×, or a custom viewport.
- Cookie and consent banners are hidden with our own CSS (a short, hand-written list of well-known consent-banner root nodes, plus any `hideSelectors` you add). It only hides them: it never clicks Accept or Reject.
- It visits only the URLs you list. It does not crawl or follow links, does not log in, and does not get past paywalls, captchas or bot checks. A page that refuses automated access comes back as a failed item, and failed items are not charged.
- You get the file plus run metadata only: URL, final URL after redirects, HTTP status, size, width/height or PDF pages, timings and warnings. No text, title, links or other data is pulled out of pages.

Try it: leave the input empty and click Start. The Actor captures https://tools.plainwrenstudio.com/ as a free demo.

Support: support@plainwrenstudio.com.

### Who is it for?

- Developers and QA teams checking their own or authorised pages across desktop, laptop, tablet and phone viewports.
- Site owners and agencies archiving or reporting on pages they are allowed to capture, with a file and a dataset row per URL.
- Automations and agents through the Apify API, schedules and integrations.

### Use cases

- Capture up to 1,000 of your own or authorised URLs as viewport or full-page PNG or JPEG, or as a PDF, with desktop, laptop, tablet or phone presets.
- Hide cookie banners with CSS (it never clicks Accept) and download the files plus a dataset of status, size and timings. Blocked pages are free.
- Run a no-config capture of https://tools.plainwrenstudio.com/ to see the output shape before you list your own URLs.

### How to take screenshots

1. Open the Input tab and add your URLs, or leave the list empty to run the free demo.
2. Pick the format (PNG, JPEG or PDF), turn on Full page if you want the whole scrolling page (PNG and JPEG), and pick a device preset.
3. Optional: add extra CSS selectors to hide, change the wait after load, or raise the timeout.
4. Click Start.
5. Open the Output tab, or download the files from the run's key-value store (`screenshot-0000.png` / `.jpg` / `.pdf`).

#### Input example

```json
{
  "urls": ["https://tools.plainwrenstudio.com/"],
  "format": "png",
  "fullPage": false,
  "device": "desktop",
  "hideCookieBanners": true,
  "jpegQuality": 80,
  "pdfPaper": "A4",
  "waitUntil": "load",
  "delayMs": 500,
  "timeoutSecs": 30,
  "maxFullPageHeight": 15000,
  "maxConcurrency": 2,
  "perDomainDelayMs": 2000
}
```

| Field | Type | What it does |
|---|---|---|
| `urls` | array | Pages to capture (strings or `{ url }` objects), max 1,000. Leave empty, or list exactly `https://tools.plainwrenstudio.com/`, for a free demo. |
| `format` | `png` / `jpeg` / `pdf` (default `png`) | Output file type. |
| `fullPage` | boolean (default `false`) | For PNG and JPEG, capture the scrolling page up to `maxFullPageHeight`. A PDF is always a print to A4 or Letter; this flag does not change that, and the `pdf` event is charged either way. |
| `device` | `desktop` / `laptop` / `tablet` / `phone` / `custom` (default `desktop`) | Viewport preset. Phone and tablet use a mobile, touch layout and an Android 13 Pixel 7 user agent (not iPhone or iOS). |
| `width`, `height`, `deviceScaleFactor` | integer | Used when `device` is `custom` (width/height 200–4000 CSS pixels; scale 1–3). Custom viewports keep Chrome's ordinary user agent. |
| `hideCookieBanners` | boolean (default `true`) | Hide common cookie and consent banners with CSS. Never clicks Accept or Reject. |
| `hideSelectors` | array of strings | Extra CSS selectors to hide (max 50). |
| `jpegQuality` | integer (default `80`) | 1–100, JPEG only. |
| `pdfPaper` | `A4` / `Letter` (default `A4`) | PDF paper size. |
| `waitUntil` | `load` / `domcontentloaded` / `networkidle` (default `load`) | When the page counts as loaded. |
| `delayMs` | integer (default `500`) | Extra wait after load (0–30,000 ms). |
| `timeoutSecs` | integer (default `30`) | Give up on a page after this long (5–90 s). |
| `maxFullPageHeight` | integer (default `15,000`) | Full-page PNG/JPEG taller than this are cut here (500–20,000 CSS pixels). The row shows `truncated: true`. |
| `maxConcurrency` | integer (default `2`) | How many different hosts are captured at once (1–4), also capped at about one page per GB of run memory. One page at a time per host. |
| `perDomainDelayMs` | integer (default `2,000`) | Minimum time between load starts on the same host (1,000–60,000 ms). |

### How much does it cost?

Website Screenshot Pro uses pay-per-event pricing:

- $0.003 per successful viewport PNG or JPEG (`screenshot`).
- $0.005 per successful full-page PNG or JPEG (`full-page-screenshot`).
- $0.005 per successful PDF (`pdf`).
- A run start fee of $0.00125 per GB of run memory: $0.0025 per run at the default 2 GB.
- Free: the demo run, failed captures, and blocked pages.

You can set a spending limit on any run. When it is reached, the run stops cleanly and remaining URLs are skipped, not charged.

### Limits

- For your own or authorised sites.
- No crawling. It loads only the URLs you list, after running the address guard. Pop-ups and further top-level navigation are stopped.
- No logins, cookies or custom headers.
- No private or internal addresses, including through redirects or sub-requests (images, scripts, frames).
- Output files over 25 MB fail as `TOO_LARGE` and are free.
- Default memory is 2048 MB (min 1024, max 4096). This Actor launches headless Chrome.

### FAQ

#### Do I need to tick anything for the demo?

No. Leave the URL list empty, or list exactly `https://tools.plainwrenstudio.com/`, and the run is free.

#### What user agent does it use?

Desktop and laptop captures use Chrome's ordinary HeadlessChrome user agent. Phone and tablet presets use a full mobile user agent with the platform string `Linux; Android 13; Pixel 7` and a `Mobile` token, still including HeadlessChrome. This is not iPhone or iOS emulation. The Actor does not put a Plainwren token or bot URL in the user agent. The User-Agent page is https://tools.plainwrenstudio.com/bots/screenshot-pro/.

#### Does it obey robots.txt?

No. This Actor does not read robots.txt.

#### Am I charged when a capture fails?

No. Failed and blocked pages are free. You pay only for files you get, plus the start fee.

#### Does it remove cookie banners?

It hides common cookie and consent banners with CSS and undoes the scroll lock they add. It never clicks Accept or Reject. To hide something else, add its CSS selector.

### Third-party notices

Direct dependencies, to be installed by Ops (do not add others without a review):

- `apify` 3.7.2 — Apache-2.0
- `puppeteer-core` 25.16.0 — Apache-2.0

Overrides (same as the team's other Actors): `apify-client` 2.25.0,
`basic-ftp` 6.2.3.

No cookie filter list is bundled (EasyList and similar lists are GPL-3.0 /
CC BY-SA); the cookie rules in `src/core/cookie-css.js` are our own.

The browser comes from the Apify base image
`apify/actor-node-puppeteer-chrome:22-25.16.0` (the tag must stay in lockstep
with `puppeteer-core`), not from our package. Chromium-based browsers include
some LGPL components (e.g. FFmpeg), used unmodified as a hosted service. We
bundle no LGPL code ourselves and must add none on top.

A full `THIRD_PARTY_LICENSES.csv` of the production lockfile can be generated
after Ops runs `npm ci`. The stub file in this tree lists the direct
dependencies and the Chrome notice.

This actor is not affiliated with Google, Cloudflare, or the consent-management
platforms whose public root selectors appear in the hide list.

# Actor input Schema

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

The pages to capture, one per line (max 1,000 per run). Only these exact URLs are loaded: links are not followed and nothing is crawled. Use it for your own or authorised sites. Pages behind a login, paywall or bot check fail and are not charged. If you leave this empty, the run does a free demo capture of the sample page https://tools.plainwrenstudio.com/.

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

PNG, JPEG, or a PDF of the printed page (A4 or Letter).

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

Capture the whole scrolling page, up to maxFullPageHeight, instead of only the viewport. Full-page captures are charged as a full-page-screenshot event (PDF uses the pdf event either way).

## `device` (type: `string`):

Viewport preset: desktop 1920×1080, laptop 1366×768, tablet 820×1180 at 2×, phone 390×844 at 2×, or a custom size.

## `width` (type: `integer`):

Viewport width when device is Custom (200–4000 CSS pixels).

## `height` (type: `integer`):

Viewport height when device is Custom (200–4000 CSS pixels).

## `deviceScaleFactor` (type: `integer`):

Device scale factor when device is Custom (1–3).

## `hideCookieBanners` (type: `boolean`):

Hide common cookie and consent banners with our own CSS (never clicks Accept or Reject). The scroll lock these tools put on the page is also undone.

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

Extra CSS selectors to hide (for example a chat widget). They are hidden, not clicked. Invalid or unsafe selectors are ignored.

## `jpegQuality` (type: `integer`):

JPEG quality 1–100 (ignored for PNG and PDF).

## `pdfPaper` (type: `string`):

Paper size when format is PDF.

## `waitUntil` (type: `string`):

When to treat the page as loaded: the window load event, DOMContentLoaded, or when the network has been idle for 500 ms (networkidle).

## `delayMs` (type: `integer`):

Wait this many milliseconds after the page has loaded (and banners have been hidden) before taking the screenshot (0–30,000).

## `timeoutSecs` (type: `integer`):

How long Chrome waits for a page to load (5–90). The rate-limit wait between pages on the same domain does not count against this. Pages that time out fail and are not charged.

## `maxFullPageHeight` (type: `integer`):

Cap for full-page captures, in CSS pixels (500–20,000). Taller pages are cut and flagged as truncated. Default 15,000.

## `maxConcurrency` (type: `integer`):

How many pages to capture at once (1–4). Further capped at about one page per GB of run memory. Default 2, and the default memory is 2 GB.

## `perDomainDelayMs` (type: `integer`):

Minimum gap between page loads on the same domain (1,000–60,000). One page at a time per domain. This wait does not count against the load timeout.

## Actor input object example

```json
{
  "urls": [
    "https://tools.plainwrenstudio.com/"
  ],
  "format": "png",
  "fullPage": false,
  "device": "desktop",
  "width": 1920,
  "height": 1080,
  "deviceScaleFactor": 1,
  "hideCookieBanners": true,
  "hideSelectors": [],
  "jpegQuality": 80,
  "pdfPaper": "A4",
  "waitUntil": "load",
  "delayMs": 500,
  "timeoutSecs": 30,
  "maxFullPageHeight": 15000,
  "maxConcurrency": 2,
  "perDomainDelayMs": 2000
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per listed URL, in completion order. index is the input position. The image or PDF lives in the key-value store, linked from screenshotUrl.

## `OUTPUT` (type: `string`):

Run summary (totals, limit reason, demo flag).

# 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://tools.plainwrenstudio.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainwren/screenshot-pro-v2").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://tools.plainwrenstudio.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("plainwren/screenshot-pro-v2").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://tools.plainwrenstudio.com/"
  ]
}' |
apify call plainwren/screenshot-pro-v2 --silent --output-dataset

```

## MCP server setup

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

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/uNRtFFownOKikUY0V/builds/ZSUBofsY9ivRMokBZ/openapi.json
