# Website Screenshot & PDF: Bulk, Full Page, Mobile (`mrlarryjohnson/website-screenshot-pro`) Actor

Capture full-page or viewport screenshots (PNG/JPEG) or PDFs of many URLs at once. Desktop, tablet and mobile presets, dark mode, hide cookie banners or any CSS selector, wait for content. Pay only for successful captures.

- **URL**: https://apify.com/mrlarryjohnson/website-screenshot-pro.md
- **Developed by:** [Larry Johnson](https://apify.com/mrlarryjohnson) (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 $2.00 / 1,000 screenshot or pdf captureds

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 & PDF (Bulk, Full Page, Mobile, Cookie Banners Hidden)

Capture **hundreds of pages in one run**: full-page or viewport **PNG/JPEG**, or printable **A4 PDF**. Choose a desktop, laptop, tablet or **mobile** preset, switch on dark mode, and get clean shots with **cookie banners and chat widgets hidden**.

Each result has a direct link to the image, plus the page title, final URL after redirects and the HTTP status.

### Why this one

- **Clean captures:** common consent pop-ups (OneTrust, Cookiebot, Quantcast, Didomi, Usercentrics, …) are hidden with CSS, and you can add your own selectors. Nothing is clicked or accepted for you.
- **Real mobile rendering:** 390×844 at 3× scale with a mobile user-agent and touch
- **Bulk and predictable:** you pay a flat price per successful capture. Failed pages cost nothing.
- **PDF mode** for archiving, compliance snapshots and client reports

### Use cases

Visual QA and regression checks, SEO and agency reports, archiving your own pages, social and OG previews, portfolio thumbnails, monitoring how your site looks on mobile.

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | — | Up to 1,000 |
| `device` | `desktop` | `desktop` 1920×1080, `laptop` 1366×768, `tablet` 820×1180, `mobile` 390×844, `custom` |
| `fullPage` | `true` | Very long pages are capped at 16,000 px |
| `format` | `png` | `png`, `jpeg`, `pdf` |
| `waitUntil` / `delayMs` | `load` / `500` | Wait for lazy content or animations |
| `hideCookieBanners` / `hideSelectors` | `true` / `[]` | |
| `darkMode` | `false` | prefers-color-scheme: dark |
| `timeoutSecs` | `45` | Per page |

### Output example

```json
{
  "url": "https://example.com", "finalUrl": "https://example.com/", "statusCode": 200, "title": "Example Domain",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/example-com-0caaf24ab1.png",
  "key": "example-com-0caaf24ab1.png", "format": "png", "bytes": 73335,
  "viewport": {"device": "laptop", "width": 1366, "height": 768}, "error": null
}
```

### Pricing (pay per event)

- **$2.00 per 1,000 captures** (`screenshot`, $0.002 each), plus the standard actor start.
- Pages that fail to load (DNS error, timeout, blocked URL) are **not charged**. Respects your run's maximum cost.

### Fair use

Capture pages you own or are allowed to capture. The Actor doesn't log in, solve CAPTCHAs, bypass paywalls or use residential proxies. It loads public pages the way a normal browser does. Private, loopback and cloud-metadata addresses are refused.

***

*Actively maintained. Issues answered within 24 hours on the Issues tab.*

# Actor input Schema

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

Pages to capture (http/https). Up to 1,000 per run. Capture pages you own or are allowed to capture; the Actor does not log in or bypass paywalls/CAPTCHAs.

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

Viewport preset. 'custom' uses the width/height below.

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

Used when device = custom.

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

Used when device = custom.

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

Capture the whole scrollable page instead of just the viewport (ignored for PDF).

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

PNG (lossless), JPEG (smaller) or PDF (A4, printable).

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

1-100, JPEG only.

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

Navigation event to wait for before capturing.

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

Wait this long after the page loads (animations, lazy content).

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

Hides common consent pop-ups (OneTrust, Cookiebot, Quantcast, generic) with CSS. It does not click or accept anything.

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

Extra elements to hide, e.g. ".chat-widget", "#promo".

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

Emulate prefers-color-scheme: dark.

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

Per-page navigation timeout.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_page"
  ],
  "device": "desktop",
  "width": 1280,
  "height": 800,
  "fullPage": true,
  "format": "png",
  "jpegQuality": 80,
  "waitUntil": "load",
  "delayMs": 500,
  "hideCookieBanners": true,
  "hideSelectors": [],
  "darkMode": false,
  "timeoutSecs": 45
}
```

# Actor output Schema

## `results` (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://apify.com",
        "https://en.wikipedia.org/wiki/Web_page"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrlarryjohnson/website-screenshot-pro").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://apify.com",
        "https://en.wikipedia.org/wiki/Web_page",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mrlarryjohnson/website-screenshot-pro").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://apify.com",
    "https://en.wikipedia.org/wiki/Web_page"
  ]
}' |
apify call mrlarryjohnson/website-screenshot-pro --silent --output-dataset

```

## MCP server setup

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

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/TvSXZyuNSeAi357Z5/builds/kC4qh0GSEROyA8PKS/openapi.json
