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

Capture screenshots (PNG, JPEG) and PDFs of any list of web pages with a real Chrome browser. Full page or viewport, desktop or mobile, wait and delay options, cookie banner hiding. Download links for every file.

- **URL**: https://apify.com/klyve1/website-screenshot-pdf.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (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

from $3.00 / 1,000 page 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: full page, mobile, in bulk

Capture screenshots and PDFs of any list of web pages with a real Chrome browser. Full page or visible area only, desktop, mobile (iPhone) or tablet (iPad), PNG or JPEG, A4 or Letter PDF. Every capture comes with a direct download link, the HTTP status code and the page title.

### What people use it for

- **Visual monitoring and archiving**: schedule daily captures of your pages, competitor pages or legal notices to keep a dated visual record.
- **Proof and compliance**: save a PDF of a web page as it looked at a given time, with the date and final URL.
- **QA and responsive checks**: capture the same pages on desktop, mobile and tablet after each release.
- **Reports and presentations**: drop full-page screenshots of websites into audits, pitch decks or client reports.
- **Thumbnails and previews**: create preview images of links for directories, newsletters or apps.

### Example output

```json
{
  "url": "https://example.com",
  "finalUrl": "https://example.com/",
  "statusCode": 200,
  "title": "Example Domain",
  "device": "desktop",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/example-com-c984d0.png",
  "screenshotKey": "example-com-c984d0.png",
  "screenshotBytes": 80742,
  "pdfUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/example-com-c984d0.pdf",
  "pdfKey": "example-com-c984d0.pdf",
  "pdfBytes": 159948,
  "durationMs": 887,
  "capturedAt": "2026-11-16T18:07:41.728Z"
}
```

Pages that fail to load get a row with an `error` field and are not charged.

### Input

| Field | What it does |
|---|---|
| Page URLs | The pages to capture. |
| What to capture | Screenshot, PDF, or both. |
| Full page | Whole scrollable page, or only the visible viewport. |
| Device | Desktop (custom viewport), mobile (iPhone 13) or tablet (iPad). |
| Viewport width / height | Desktop browser size, default 1366 x 768. |
| Image format / JPEG quality | PNG (lossless) or JPEG (smaller). |
| PDF paper size | A4, Letter, Legal or A3. |
| Wait until / Extra delay | Control when the capture is taken on heavy JavaScript sites. |
| Hide cookie banners | Hides the most common consent banners so they do not cover the page. |
| Browser language | Locale such as en-US or fr-FR. |
| Pages in parallel | Speed up big lists (give the run more memory for high values). |

### Pricing

Pay per result: **$0.003 per page captured** ($3 per 1,000 pages). Screenshot and PDF of the same page count as one capture. Pages that fail to load are free. Set a maximum charge per run to stay in control.

### Good to know

- Before a full-page capture the Actor scrolls through the page so lazy-loaded images appear.
- Very long pages are captured completely. Use JPEG for pages longer than 10,000 pixels to keep files small.
- Files stay in the run's storage for the data retention period of your Apify plan: download them if you need them longer.
- The Actor does not log in, solve CAPTCHAs or bypass bot protection. Pages behind a login or an anti-bot wall are captured as they appear to a normal visitor, or reported as failed.
- Only capture pages you are allowed to reproduce.

# Actor input Schema

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

Web pages to capture, one per line.

## `output` (type: `string`):

A screenshot image, a PDF of the page, or both (charged as one capture).

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

Capture the whole scrollable page. Turn off to capture only the visible viewport (above the fold).

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

Desktop uses the viewport size below. Mobile emulates an iPhone 13, tablet an iPad.

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

Browser width in pixels for desktop captures.

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

Browser height in pixels for desktop captures. Also the image height when Full page is off.

## `imageFormat` (type: `string`):

PNG is lossless, JPEG is much smaller for long pages.

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

Quality from 1 to 100 when the image format is JPEG.

## `pdfFormat` (type: `string`):

Paper size for PDF captures.

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

When the page is considered loaded. Network idle is best for heavy JavaScript sites but slower.

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

Extra time to wait after loading, for animations or late content. Max 30000.

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

Hide the most common cookie consent banners (OneTrust, Cookiebot, Didomi, Quantcast and others) with CSS so they do not cover the capture.

## `locale` (type: `string`):

Browser locale, for example en-US, fr-FR or de-DE. Some sites show content in this language.

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

How many pages are captured at the same time. Use more memory for higher values.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://example.com"
  ],
  "output": "screenshot",
  "fullPage": true,
  "device": "desktop",
  "viewportWidth": 1366,
  "viewportHeight": 768,
  "imageFormat": "png",
  "jpegQuality": 80,
  "pdfFormat": "A4",
  "waitUntil": "load",
  "delayMs": 0,
  "hideCookieBanners": true,
  "locale": "en-US",
  "maxConcurrency": 3
}
```

# Actor output Schema

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

All rows produced by the run.

# 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://example.com"
    ],
    "output": "screenshot"
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/website-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": [
        "https://apify.com",
        "https://example.com",
    ],
    "output": "screenshot",
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,klyve1/website-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/8rWFmzz4FmVHEfbX9/builds/urPpD1Bx5pZe9BttP/openapi.json
