# Website Screenshot & PDF: Full Page, Mobile, No Cookie Popups (`datafetch-lab/website-screenshot-pdf`) Actor

Clean full-page screenshots or PDFs of any website on desktop, laptop, tablet and mobile in one run. Cookie banners and chat widgets hidden automatically. Dark mode, element capture, PNG, JPEG or PDF, with a direct link to every file.

- **URL**: https://apify.com/datafetch-lab/website-screenshot-pdf.md
- **Developed by:** [DataFetch Lab](https://apify.com/datafetch-lab) (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

$3.00 / 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.

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** captures **clean, full-page screenshots or PDF files of any website** on **desktop, laptop, tablet and mobile** in one run. Cookie banners and chat widgets are hidden automatically, lazy-loaded images are loaded before the capture, and every result comes with a **direct link to the file**. You **only pay for successful captures**.

### What can this screenshot tool do?

- 📱 **4 devices in one run**: Desktop 1440 px, Laptop 1280 px, iPad and iPhone
- 📄 **PNG, JPEG or PDF** (A4 or US Letter)
- 🧹 **Clean captures**: hides consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and more) and chat bubbles (Intercom, HubSpot, Drift, Crisp, Tawk)
- 🖼️ **True full page**: scrolls the page first so lazy images appear
- 🌙 **Dark mode** for sites that support it
- 🎯 **Element capture**: shoot only `#pricing` or `.hero`, or hide any element you choose
- ⏱️ **Smart waiting**: page load, network idle, or wait for a specific element
- 🔗 **Direct file link** in every result, ready to open, embed or download
- 🔍 **Visual change monitoring**: compare every page with the last run and get the % changed plus an image that highlights what changed
- 🗺️ **Whole websites from a sitemap**: paste a sitemap.xml and capture every page
- 👆 **Click before capture**: open a tab, press "Load more" or close a pop-up first
- 🌍 **Optional proxy**: see a site the way visitors from another country see it
- 💸 **Failed pages are free**

### Who uses it?

- **Marketers and agencies**: competitor landing page tracking, client reports, portfolios
- **SEO and QA teams**: mobile vs desktop checks, visual regression, before/after releases
- **Compliance and legal**: dated PDF copies of web pages
- **Developers**: thumbnails and link previews through the API

### How to use it

1. Add one or more **website URLs**.
2. Pick the **devices** and the **file format**.
3. Optionally hide extra elements, choose dark mode or wait for an element.
4. Click **Start**. Open the **Screenshots** view to preview every file and download it.

### How much does it cost?

**$3.00 per 1,000 successful screenshots or PDFs** ($0.003 each). Pages that fail to load cost nothing.

**Example:** 100 pages on desktop and mobile = 200 files = **$0.60**.

### Input example

```json
{
  "urls": ["https://apify.com", "https://www.wikipedia.org"],
  "devices": ["desktop", "mobile"],
  "format": "png",
  "fullPage": true,
  "hideCookieBanners": true
}
```

### Output example

```json
{
  "url": "https://apify.com",
  "device": "mobile",
  "format": "png",
  "success": true,
  "title": "Apify: Marketplace of ready-to-run tools for AI",
  "httpStatus": 200,
  "fileUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/apify_com-mobile.png?signature=...",
  "bytes": 1551410,
  "viewport": { "width": 390, "height": 664 },
  "takenAt": "2026-11-17T01:36:04.590Z"
}
```

### Monitor websites for visual changes

Turn on **Detect visual changes since the last run** and create a daily **Schedule**. The first run saves a baseline. Every next run adds to each result:

```json
{
  "url": "https://competitor.com/pricing",
  "changed": true,
  "changePercent": 3.42,
  "previousTakenAt": "2026-11-16T08:00:04.120Z",
  "changesImageUrl": "https://api.apify.com/v2/key-value-stores/.../records/competitor_com-pricing-desktop-changes.png?signature=..."
}
```

Use it to watch competitor pricing pages, landing pages, your own site after deployments, or pages you must archive for compliance. Set **Changed when more than (% of page)** higher to ignore rotating banners. Use a different **Monitor name** for each group of pages.

### Tips

- 🐢 For heavy web apps, choose **Network idle** or **Wait for this element**.
- 📏 Very long pages are cut at 16,000 px by default to keep files usable. Change it under **Advanced**.
- 🗓️ **Schedule** daily runs to build a visual history of any page.
- 🗺️ Capturing a whole site? Add its **sitemap.xml** and set **Maximum pages from sitemaps**.

### FAQ

#### Is the file link private?

The link contains a signature that gives access to that single file only. Share it only with people who should see it.

#### Why does a page look different from my browser?

Some sites show different content by country, login state or A/B tests. Captures are taken as a new visitor without cookies.

#### Can I capture pages behind a login?

No. The tool captures public pages only.

#### Can I use the API?

Yes. Start runs with the Apify API, or connect Make, Zapier, n8n and AI agents through the Apify MCP server.

### Other tools from DataFetch Lab

- [App Store Scraper](https://apify.com/datafetch-lab/app-store-scraper): reviews, ratings, charts and search in every country
- [Career Site Jobs](https://apify.com/datafetch-lab/career-site-jobs): open jobs from Greenhouse, Lever, Ashby, Workday and more

### Support

Something not captured the way you expected? Open an issue on the **Issues** tab with the URL and we will look at it quickly.

# Actor input Schema

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

Pages to capture, for example https://example.com. Add as many as you need.

## `sitemapUrls` (type: `array`):

Capture every page listed in a sitemap.xml (sitemap index files are supported). Pages are added to the Website URLs above.

## `maxSitemapPages` (type: `integer`):

Upper limit of pages taken from each sitemap.

## `devices` (type: `array`):

One file is created for every URL and device.

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

PNG for sharp images, JPEG for smaller files, PDF for documents and archives.

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

Capture the whole page from top to bottom, not only the first screen.

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

Hides common consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics and more) and chat bubbles.

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

Extra elements to hide, for example .newsletter-popup or #promo-bar.

## `clickSelectors` (type: `array`):

For example a "Load more" button, a tab, or a pop-up close button (button.close). Clicked in order; missing elements are skipped.

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

Ask the website to use its dark theme, if it has one.

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

When the page is considered ready. Use Network idle for heavy web apps.

## `waitForSelector` (type: `string`):

Wait until this element appears, for example #pricing-table.

## `delaySeconds` (type: `integer`):

Extra time for animations and late content.

## `timeoutSeconds` (type: `integer`):

Pages that take longer are skipped and not charged.

## `elementSelector` (type: `string`):

For example #hero or .pricing. Leave empty to capture the page.

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

Only used for JPEG files.

## `pdfPaperSize` (type: `string`):

Only used for PDF files.

## `maxHeightPx` (type: `integer`):

Very long pages are cut at this height to keep files usable.

## `customWidth` (type: `integer`):

Overrides the desktop width. Use together with height.

## `customHeight` (type: `integer`):

Overrides the desktop height. Use together with width.

## `compareWithPrevious` (type: `boolean`):

Compares every PNG screenshot with the previous run of the same monitor and reports the share of the page that changed, with an image that highlights the changes. Schedule it to monitor pages.

## `monitorName` (type: `string`):

Use different names to keep separate baselines, for example "competitors" and "my-site".

## `changeThresholdPercent` (type: `number`):

A page is marked as changed when at least this share of its pixels differs. Small values catch small edits; larger values ignore rotating banners.

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

Capture through a proxy, for example to see a website as visitors from another country see it. Off by default.

## Actor input object example

```json
{
  "urls": [
    "https://www.wikipedia.org"
  ],
  "maxSitemapPages": 100,
  "devices": [
    "desktop"
  ],
  "format": "png",
  "fullPage": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "waitUntil": "load",
  "delaySeconds": 1,
  "timeoutSeconds": 60,
  "quality": 80,
  "pdfPaperSize": "A4",
  "maxHeightPx": 16000,
  "compareWithPrevious": false,
  "monitorName": "default",
  "changeThresholdPercent": 0.5
}
```

# Actor output Schema

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

No description

## `store` (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://www.wikipedia.org"
    ],
    "devices": [
        "desktop"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datafetch-lab/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://www.wikipedia.org"],
    "devices": ["desktop"],
}

# Run the Actor and wait for it to finish
run = client.actor("datafetch-lab/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://www.wikipedia.org"
  ],
  "devices": [
    "desktop"
  ]
}' |
apify call datafetch-lab/website-screenshot-pdf --silent --output-dataset

```

## MCP server setup

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