# Bulk Website Screenshot & PDF (`rowharbor1988/bulk-website-screenshot`) Actor

Capture full-page screenshots (PNG/JPEG) or PDFs of many URLs at once. Desktop, tablet and real mobile rendering, cookie banners accepted automatically, pop-ups closed. Pay only for successful captures.

- **URL**: https://apify.com/rowharbor1988/bulk-website-screenshot.md
- **Developed by:** [rowharbor1988](https://apify.com/rowharbor1988) (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.50 / 1,000 screenshot or pdfs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Bulk Website Screenshot & PDF

Capture **full-page screenshots or PDFs of hundreds of URLs in one run**. Paste a list of links, pick a device, and get a table with a download link for every image. Cookie banners are accepted or hidden automatically, and you **only pay for screenshots that succeed**.

### What you can use it for

- **Website audits and agency reports** – screenshot every page of a client site on desktop and mobile.
- **Visual monitoring** – schedule the Actor daily and keep a dated archive of how pages looked.
- **Competitor and ad tracking** – capture landing pages, pricing pages or campaigns over time.
- **Proof and documentation** – save PDFs of terms, offers or published content with a timestamp.
- **Thumbnails for directories and link previews.**

### Features

- PNG, JPEG or PDF (A4 with backgrounds)
- Full page or visible area only
- Device presets: Desktop 1366×768, Desktop HD 1920×1080, Laptop, Tablet and Mobile (real mobile rendering: touch, mobile browser, 2× retina) – or a custom size
- Handles cookie/consent banners: clicks "Accept all" on common systems (OneTrust, Cookiebot, Usercentrics, Didomi, Sourcepoint, Borlabs, Complianz and more – also inside iframes), removes the blur of consent walls, closes push/newsletter pop-ups ("No thanks", "Not now", "×") and hides what is left
- Hide any other element with your own CSS selectors (chat widgets, newsletter pop-ups)
- Dark mode for sites that support it
- Lazy-loaded images are loaded by scrolling through the page before capture
- Up to 20 pages in parallel, automatic retries, clear error message per URL
- Works with schedules, webhooks, the API, Make, Zapier and n8n

### Input

| Field | Description |
|---|---|
| URLs | Full URLs (`https://…`), one per row, or upload a text file. Duplicates are removed. |
| Output format | `png`, `jpeg` or `pdf` |
| Device | `desktop`, `desktop-hd`, `laptop`, `tablet`, `mobile` or `custom` |
| Full page | `true` = whole page, `false` = visible area |
| Accept / hide cookie banners | on by default |
| Extra wait | seconds to wait after loading |

Example:

```json
{
  "startUrls": [{ "url": "https://apify.com" }, { "url": "https://example.com" }],
  "format": "png",
  "device": "mobile",
  "fullPage": true
}
```

### Output

Each URL becomes one row in the dataset. Images and PDFs are stored in the run's key-value store; `screenshotUrl` is a direct download link.

```json
{
  "url": "https://example.com/",
  "loadedUrl": "https://example.com/",
  "status": "success",
  "httpStatus": 200,
  "title": "Example Domain",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/00001_example.com.png",
  "format": "png",
  "device": "mobile",
  "width": 390,
  "fullPage": true,
  "bytes": 48213,
  "consentAccepted": true,
  "truncated": false,
  "capturedAt": "2026-11-20T09:15:02.123Z",
  "error": null
}
```

Failed pages appear with `"status": "failed"` and an `error` message – and are not charged.

### Pricing

Pay per event: you are charged **only for each successful screenshot or PDF**. Failed pages are free. Set a maximum cost per run in the run options, and the Actor stops cleanly when it is reached.

### Tips

- Pages with heavy JavaScript: set **Page is ready when** to `networkidle` or add a few seconds of **Extra wait**.
- Sites that block data-center traffic (some return HTTP 429/403): enable a **Proxy** (residential proxies cost extra on your Apify plan). The Actor already waits and retries before giving up.
- Very long pages: images are limited to 16,000 pixels in height (a Chrome limit; on mobile 2× retina that is 8,000 CSS pixels). Such results have `"truncated": true`. For the complete page use PDF.
- Memory: 2 GB (default) is recommended. With 1 GB the browser is CPU-limited and pages take 2–3× longer.
- A few sites (e.g. Wikipedia, w3.org) block data-center browsers; enable a residential proxy for those.

### Limitations

- Pages behind a login are not supported.
- Some sites actively block automated browsers; these URLs return an error and are not charged.
- Only capture pages you are allowed to capture. You are responsible for how you use the screenshots (copyright, privacy).

### Support

Found a problem or need a feature? Open an issue on the **Issues** tab – we reply within a few days.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to capture – full URLs starting with https:// or http://. One screenshot (or PDF) per URL; duplicates are removed. You can also upload a text file with one URL per line.

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

PNG (lossless), JPEG (smaller files) or PDF (A4, with backgrounds).

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

Viewport preset. Choose 'custom' to set width and height yourself.

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

Capture the whole scrollable page instead of only the visible area (ignored for PDF).

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

Clicks "Accept all" on common consent banners (OneTrust, Cookiebot, Usercentrics, Didomi, Sourcepoint, Borlabs and more, also inside iframes), removes the blur that consent walls put over the page, and hides remaining banners.

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

Ask the page to render its dark theme (prefers-color-scheme: dark), if it has one.

## `delaySecs` (type: `integer`):

Wait this long after the page has loaded, e.g. for animations or slow widgets.

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

'load' works for most pages. 'networkidle' waits until network traffic stops (slower, better for heavy JavaScript pages).

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

1–100, only used for JPEG.

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

Additional elements to hide, e.g. '.newsletter-popup' or '#chat-widget'.

## `viewportWidth` (type: `integer`):

Only for device 'custom'. 200–3840.

## `viewportHeight` (type: `integer`):

Only for device 'custom'. 200–2160.

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

Give up on a page after this time (it is retried twice).

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

How many pages are captured at the same time.

## `proxyConfiguration` (type: `object`):

Optional. Use a proxy if sites block data-center traffic or to capture a country-specific version.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "format": "png",
  "device": "desktop",
  "fullPage": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "delaySecs": 0,
  "waitUntil": "load",
  "quality": 80,
  "hideSelectors": [],
  "viewportWidth": 1366,
  "viewportHeight": 768,
  "timeoutSecs": 45,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowharbor1988/bulk-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 = { "startUrls": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("rowharbor1988/bulk-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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call rowharbor1988/bulk-website-screenshot --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rowharbor1988/bulk-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/xYZuYPINzWSLwDlAl/builds/F5K7bziRTbVWUJQNh/openapi.json
