# Bulk Website Screenshot & PDF Generator (PNG, JPEG, PDF) (`dailypalslab/bulk-screenshot-pdf`) Actor

Take full-page screenshots (PNG/JPEG) and PDFs of hundreds of URLs in one run. Desktop, laptop, tablet and mobile presets, cookie-banner hiding, ad blocking and dark mode. Files are saved with public download links.

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

## Pricing

Pay per event

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

## Bulk Website Screenshot & PDF Generator

Turn a list of URLs into **full-page website screenshots (PNG or JPEG) and PDFs** in one run. Paste 1 or 1,000 links, pick a device (desktop, laptop, tablet, iPhone), and get one image or PDF per page, each with a **public download link**, plus a clean table of page titles, HTTP status codes and file sizes.

Built on a real Chromium browser, so JavaScript-heavy sites, web apps and lazy-loaded images render the way a visitor sees them. Cookie banners are hidden for you, ads can be blocked, and dark mode is one switch away.

### What can this website screenshot tool do?

- 📸 **Bulk screenshots**: capture hundreds of web pages in parallel with one browser.
- 📄 **Webpage to PDF**: save any URL as a printable PDF (A4, Letter, Legal, A3, Tabloid) with selectable text, or get a screenshot **and** a PDF of each page.
- 📱 **Device presets**: Desktop 1366x768, Laptop 1440x900, Tablet 820x1180, Mobile iPhone 390x844 (retina), or any custom width and height.
- 🧾 **Full-page or viewport**: capture the whole scrollable page (lazy images are loaded by scrolling first) or just the first screen.
- 🍪 **Hide cookie banners**: best-effort clicking of "Accept" and hiding of popular consent popups (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, Osano, iubenda and more).
- 🚫 **Block ads and trackers**: cleaner, faster captures.
- 🌙 **Dark mode**: request the site's dark theme (`prefers-color-scheme: dark`).
- ⏱️ **Wait options**: load event, DOM ready or network idle, plus an extra delay for animations.
- 🔗 **Public file links**: every file is saved in the run's key-value store with a shareable URL in the results.

### Use cases

- **Website monitoring and archiving**: schedule daily screenshots of your homepage, landing pages or competitors' pricing pages.
- **SEO and marketing reports**: visual proof of rankings, ads, landing pages and SERP snapshots for clients.
- **QA and responsive testing**: check how pages look on desktop, tablet and mobile after each release.
- **Compliance and evidence**: keep dated PDF copies of terms, policies and product pages.
- **Thumbnails and previews**: generate link previews or directory thumbnails at scale.
- **Lead research**: capture prospects' websites for outreach decks.

### How to use it

1. Add your URLs (paste one per line, upload a .txt/.csv file, or link a remote list).
2. Choose the output format and device.
3. Click **Start**. Download files from the **Output** table (`fileUrl` column) or the run's key-value store, or fetch them via the API.

You can schedule the Actor, call it from the [Apify API](https://docs.apify.com/api/v2), or connect it to Make, Zapier, n8n, Google Drive, Slack and other integrations.

### Input example

```json
{
    "urls": [
        { "url": "https://example.com" },
        { "url": "https://en.wikipedia.org/wiki/Web_page" }
    ],
    "format": "png+pdf",
    "device": "desktop",
    "fullPage": true,
    "hideCookieBanners": true,
    "blockAds": false,
    "darkMode": false,
    "waitUntil": "load",
    "delayMs": 500,
    "timeoutSecs": 30,
    "maxUrls": 100
}
```

| Field | What it does | Default |
| --- | --- | --- |
| `urls` | Pages to capture. `https://` is added if missing. | required |
| `format` | `png`, `jpeg`, `pdf`, `png+pdf`, `jpeg+pdf` | `png` |
| `fullPage` | Whole scrollable page vs first screen only | `true` |
| `device` | `desktop`, `laptop`, `tablet`, `mobile`, `custom` | `desktop` |
| `width` / `height` | Custom viewport in px (overrides the preset) | – |
| `darkMode` | Ask for the site's dark theme | `false` |
| `hideCookieBanners` | Click "Accept" and hide consent popups | `true` |
| `blockAds` | Block common ad and tracking networks | `false` |
| `waitUntil` | `load`, `domcontentloaded`, `networkidle` | `load` |
| `delayMs` | Extra wait before capture (0–30000 ms) | `500` |
| `timeoutSecs` | Per-page timeout (5–120 s) | `30` |
| `jpegQuality` | 1–100, JPEG only | `80` |
| `pdfPaperFormat` | `A4`, `Letter`, `Legal`, `A3`, `Tabloid` | `A4` |
| `maxFullPageHeight` | Cut very long pages at this height (px) | `15000` |
| `maxUrls` | Max URLs per run (hard cap 1000) | `100` |
| `maxConcurrency` | Tabs in parallel (1–5) | `3` |

### Output example

One row per file. Files are in the default key-value store; `fileUrl` is a direct download link.

```json
{
    "url": "https://en.wikipedia.org/wiki/Web_page",
    "finalUrl": "https://en.wikipedia.org/wiki/Web_page",
    "title": "Web page - Wikipedia",
    "statusCode": 200,
    "format": "png",
    "width": 1366,
    "height": 3110,
    "deviceScaleFactor": 1,
    "fileKey": "0003-en.wikipedia.org-wiki-Web_page.png",
    "fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/0003-en.wikipedia.org-wiki-Web_page.png",
    "bytes": 274018,
    "error": null,
    "warning": null,
    "takenAt": "2026-11-22T04:52:30.301Z"
}
```

`width`/`height` are in CSS pixels; the image is `deviceScaleFactor` times larger (2x for tablet and mobile). PDF rows have `width`/`height` set to `null`. Failed pages have `error` filled in and no file. A run summary is saved as the `SUMMARY` record.

### Pricing

This Actor uses **pay-per-event** pricing, so you pay only for files you actually get:

| Event | Price |
| --- | --- |
| `screenshot`: each PNG, JPEG or PDF file saved | **$0.002 per file** |

- `png+pdf` / `jpeg+pdf` produce two files per URL (two events).
- **No charge** for invalid URLs, pages that fail to load, or pages answering with HTTP 4xx/5xx errors (you still get the row, and the image when one could be taken).
- Platform usage (compute) is included in the per-file price.
- Set **Max cost per run** in the run options and the Actor will stop before going over it.

Example: 1,000 full-page PNGs cost 1,000 × $0.002 = **$2**.

### Tips

- JavaScript-heavy single-page apps: use `waitUntil: "networkidle"` or raise `delayMs`.
- Need small files? Use `jpeg` with quality 60–80, or turn off `fullPage`.
- For 4–5 parallel tabs or very long pages, give the run 2048 MB+ memory.
- Behind a login or a strict bot wall? This Actor captures public pages only.

### Limits

- Up to 1,000 URLs per run (`maxUrls`, default 100). Split bigger lists into several runs.
- Full-page captures are cut at `maxFullPageHeight` (default 15,000 px, max 30,000 px).
- Cookie banner hiding is best-effort; unusual consent tools may still show.
- Sites that block automated browsers, require login or show CAPTCHAs may return an error or a blocked page.
- Only `http://` and `https://` URLs are supported.

### FAQ

**Can I take a screenshot of the whole page, not just the visible part?**
Yes, `fullPage` is on by default. The Actor scrolls the page first so lazy-loaded images appear.

**How do I convert a web page to PDF?**
Set `format` to `pdf` (or `png+pdf` to also get an image). PDFs use the screen styles with backgrounds, on the paper size you choose.

**Can I get mobile screenshots?**
Yes. `device: "mobile"` emulates an iPhone (390x844 viewport, touch, mobile user agent, retina 2x).

**Where are my files?**
In the run's **Storage → Key-value store**, and linked from each result row (`fileUrl`). Download them in bulk via the API or an integration (for example Google Drive or S3).

**How long are files kept?**
As long as the run's storage is retained on your Apify plan. Copy them elsewhere for long-term archiving.

**Can I schedule daily screenshots?**
Yes. Create a schedule in Apify Console and pick this Actor and your input.

**Is there an API?**
Yes, every Apify Actor can be started and its results downloaded via the Apify API, the JavaScript or Python client, or the CLI.

### Is it legal to take screenshots of websites?

Capturing publicly available web pages is generally lawful, but **you are responsible for the URLs you submit and for how you use the resulting files**, including copyright, trademarks, privacy (e.g. GDPR) and each website's terms of service. Don't use this Actor to capture personal data without a legal basis or content you aren't allowed to store or reuse. If in doubt, ask a lawyer.

### Support

Found a bug or need a feature (custom headers, element-only screenshots, cookies for logged-in pages)? Open an issue on the Actor's **Issues** tab. Made by **Daily Pals Labs**.

# Actor input Schema

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

Web pages to capture. Paste one per line, upload a text file, or link a remote list. URLs without http(s):// get https:// added.

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

PNG (lossless), JPEG (smaller files), PDF (printable, selectable text) or both a screenshot and a PDF per URL. Each file is one billable event.

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

Capture the whole scrollable page instead of just the visible viewport. Lazy-loaded images are triggered by scrolling first.

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

Viewport preset. Desktop 1366x768, Laptop 1440x900, Tablet (iPad Air 820x1180 @2x), Mobile (iPhone 390x844 @2x), or Custom (set width/height).

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

Overrides the preset width (200-3840).

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

Overrides the preset viewport height (200-4320). With Full page on, this is only the viewport; the image is as tall as the page.

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

Ask the site for its dark color scheme (prefers-color-scheme: dark). Only works on sites that support it.

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

Best-effort: clicks common "Accept" buttons and hides popular consent popups (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics and more).

## `blockAds` (type: `boolean`):

Blocks requests to common ad and tracking networks. Faster, cleaner captures; may leave empty ad slots.

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

When the page counts as loaded. "Network idle" is best for heavy JavaScript apps but slower.

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

Wait this long after load before capturing (animations, late content). 0-30000.

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

Give up on a page after this long (5-120). Slow pages are still captured if something loaded.

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

1-100. Only used for JPEG.

## `pdfPaperFormat` (type: `string`):

Paper size used when the output format is PDF (e.g. A4, Letter).

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

Very long pages are cut at this height to keep files usable (500-30000).

## `maxUrls` (type: `integer`):

Process at most this many URLs per run (hard cap 1000).

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

Browser tabs open at once (1-5). More is faster but needs more memory: use 2048 MB+ for 4-5.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://example.com"
    },
    {
      "url": "https://en.wikipedia.org/wiki/Web_page"
    }
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "darkMode": false,
  "hideCookieBanners": true,
  "blockAds": false,
  "waitUntil": "load",
  "delayMs": 500,
  "timeoutSecs": 30,
  "jpegQuality": 80,
  "pdfPaperFormat": "A4",
  "maxFullPageHeight": 15000,
  "maxUrls": 100,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

Screenshot & PDF results as a dataset (JSON, CSV, Excel via the API).

## `summary` (type: `string`):

Counts, failures and settings for this run.

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

All saved PNG, JPEG and PDF files in the run's key-value store.

# 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": [
        {
            "url": "https://example.com"
        },
        {
            "url": "https://en.wikipedia.org/wiki/Web_page"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dailypalslab/bulk-screenshot-pdf").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": [
        { "url": "https://example.com" },
        { "url": "https://en.wikipedia.org/wiki/Web_page" },
    ] }

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

```

## MCP server setup

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

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/SERYWDPg24cX1jRov/builds/sNSvbzKcZrw5P0P7u/openapi.json
