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

Bulk website screenshots and PDFs: full page or first screen on desktop, tablet and phone in PNG, JPEG, WebP or PDF. Cookie banners and chats hidden, ads blocked, a file link in every row.

- **URL**: https://apify.com/mastertools/website-screenshot.md
- **Developed by:** [Master Tools](https://apify.com/mastertools) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 screenshot or pdfs

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Website Screenshot & PDF API

**Turn any list of URLs into clean, full-page screenshots and PDFs — desktop, tablet and phone in one run, cookie banners gone, a direct file link in every row.**

Paste links, press **Start**, and get pixel-perfect PNG, JPEG, WebP or PDF captures of every page, top to bottom. Lazy images are loaded, consent popups and chat bubbles are hidden, ads are not even loaded. Every file lands in your run storage with a public link, a preview in the results table and the page title, size and status next to it.

### Why teams use it

- 📸 **The whole page, not just the first screen** — the Actor scrolls through every page so lazy images and late sections show up, then captures it top to bottom.
- 🍪 **Clean shots out of the box** — cookie and consent banners (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint and more) and chat widgets (Intercom, Drift, HubSpot, Zendesk, Crisp, Tidio…) are hidden automatically.
- 📱 **Every screen size in one run** — desktop 1920×1080, laptop 1440×900, iPad, iPhone and Android, or your own width. Pick several and check a responsive design with one click.
- 🗂️ **PNG, JPEG, WebP or PDF** — lossless images for design reviews, light JPEG/WebP for reports and dashboards, printable PDF documents for archiving and compliance.
- 🎯 **One element instead of the page** — capture just the pricing table, a chart or a product card with a CSS selector.
- 🌙 **Dark mode and Retina** — see the site's dark theme and get 2× sharp images for presentations.
- ⚡ **Fast and light** — ads, trackers and background videos are blocked, so pages load quicker and look tidier.
- 🔗 **A ready link for every file** — paste it into Google Sheets, Notion, Slack, a CRM or an AI agent. The results table shows a preview of each screenshot.
- ✅ **Pay only for real screenshots** — pages behind a bot check, error pages and unreachable sites are marked in the table and never billed.

### What people capture

- **Website monitoring and change tracking** — schedule daily screenshots of your homepage, competitors' pricing pages or landing pages and keep a visual history.
- **SEO and marketing reports** — full-page captures of SERP landing pages, ads destinations and campaign pages for clients.
- **QA and responsive design checks** — the same page on desktop, tablet and phone after every release.
- **Archiving and compliance** — PDF copies of terms, policies and product pages as they were on a given day.
- **Lead research and sales outreach** — a homepage snapshot for every company in your list.
- **AI agents and LLM workflows** — give your agent eyes: one URL in, an image of the page out in seconds.
- **Thumbnails and link previews** — website thumbnails for directories, galleries and bookmark apps.

### How to use

1. Press **Start** — the example (5 websites, desktop, full page, PNG) is ready in seconds.
2. Replace the example with your own links — a bare domain like `example.com` works too; paste a whole spreadsheet column at once.
3. Pick devices and a file format, then open **Screenshots** in the results: a preview, the file link and the page details for every URL.
4. Download the table as Excel, CSV or JSON, or fetch it with the Apify API. Files stay in the run's key-value store.

### Input

| Field | What it does | Example |
|---|---|---|
| `urls` | Pages to capture: links or bare domains | `["https://apify.com", "stripe.com"]` |
| `devices` | Screen sizes: `desktop`, `laptop`, `tablet`, `mobile`, `android` | `["desktop", "mobile"]` |
| `format` | `png`, `jpeg`, `webp` or `pdf` | `"png"` |
| `fullPage` | Whole page or only the first screen | `true` |
| `hideBanners` | Hide cookie banners, consent popups and chat widgets | `true` |
| `blockAds` | Block ads and trackers | `true` |
| `hideSelectors` | More elements to remove | `[".promo-bar"]` |
| `selector` | Capture one element instead of the page | `"#pricing"` |
| `viewportWidth` / `viewportHeight` | Your own screen size in pixels | `1280` |
| `darkMode` | Ask the site for its dark theme | `false` |
| `retina` | 2× pixel density | `false` |
| `quality` | JPEG / WebP quality 1–100 | `80` |
| `maxHeight` | Cut endless pages at this height | `20000` |
| `waitUntil` | `load`, `domcontentloaded` or `networkidle` | `"load"` |
| `delaySecs` | Extra pause before the shot | `2` |
| `waitForSelector` | Wait until this element appears | `".chart-ready"` |
| `pdfSize` / `pdfLandscape` | Paper size and orientation for PDF | `"A4"` |

Only `urls` matters — everything else has a sensible default.

### Output

One flat row per URL × device:

```json
{
  "url": "https://apify.com/",
  "device": "desktop",
  "format": "png",
  "status": "ok",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/0001-apify-com-desktop.png",
  "fileKey": "0001-apify-com-desktop.png",
  "pageTitle": "Apify: Marketplace of ready-to-run tools for your AI",
  "finalUrl": "https://apify.com/",
  "httpStatus": 200,
  "width": 1920,
  "height": 10072,
  "fileSizeBytes": 1198871,
  "pdfPages": null,
  "truncated": false,
  "loadTimeMs": 6540,
  "takenAt": "2026-11-16T18:35:31.120Z",
  "error": null
}
```

`status` tells you what happened: `ok` — the file is ready; `blocked` — the site showed a bot check instead of the page; `http_error` — the site answered with an error page; `failed` — the page could not be opened (the `error` field says why in plain words); `invalid_url` — not a website address. Only `ok` rows are billed.

### Instant screenshot API for apps and AI agents

Call the Actor over HTTP and get the image itself back in seconds — no polling, no storage lookups:

```
GET https://mastertools--website-screenshot.apify.actor/?url=https://apify.com&device=mobile&format=png
Authorization: Bearer <YOUR_APIFY_TOKEN>
```

Every input field works as a query parameter (`fullPage`, `format`, `device`, `selector`, `darkMode`…). Add `response=json` to get the row with a file link instead of the image.

For batches, run the Actor through the [Apify API](https://docs.apify.com/api/v2) or a client library and read the dataset — the `screenshotUrl` of each row is a direct link to the file.

### Use it with AI agents

Connect the Actor as a tool in Claude, ChatGPT, Cursor or n8n through the Apify MCP server. One input (`urls`), a compact row per page, files with direct links — your agent can look at a page, compare designs or check what changed.

### Integrations

Google Sheets, Google Drive, Slack, Make, Zapier, n8n, webhooks and the Apify API. Schedule the Actor to capture the same pages every day and build a visual archive automatically.

### FAQ

**Does it capture the full page?** Yes, by default — the page is scrolled first so lazy-loaded images and sections appear. Endless feeds are cut at `maxHeight` and marked with `truncated: true`.

**Can I take mobile screenshots?** Yes: `mobile` (iPhone), `android` and `tablet` (iPad) load the site's real mobile layout with a mobile browser and touch screen. Pick several devices to get each URL on each screen.

**How do I get rid of cookie popups?** They are hidden by default. If a site has its own popup we don't know yet, add its CSS selector to `hideSelectors`.

**Can I screenshot a page behind a login?** The Actor captures public pages. Sites that show a bot check to cloud browsers get a `blocked` row — it is free.

**How do I download all files at once?** Every row has a direct link; the run's key-value store holds all files, and the Apify API lists them for bulk download.

**How long are files kept?** As long as your Apify plan keeps run storage. Copy them to Google Drive, S3 or Dropbox with an integration for long-term archives.

### Need screenshots at scale?

Daily visual monitoring of thousands of pages, screenshot archives delivered to your cloud storage, custom capture flows for sites behind a login — contact us for a turnkey pipeline.

# Actor input Schema

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

Pages to capture: full links or bare domains (example.com), one per line. Paste a whole column from a spreadsheet — duplicates are skipped.

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

Screen sizes to capture every URL on. Pick several to check a responsive design in one run — each URL × device is one file.

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

PNG — sharp and lossless. JPEG and WebP — small files. PDF — the whole page as a printable document.

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

Capture the whole page top to bottom, lazy images included. Off — only the first screen.

## `hideBanners` (type: `boolean`):

Clean shots without consent popups (OneTrust, Cookiebot, Usercentrics, Didomi and more) and chat bubbles (Intercom, Drift, HubSpot, Zendesk…).

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

Pages load faster and look cleaner.

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

CSS selectors of anything else to remove from the shot, for example .promo-bar or #newsletter-popup.

## `selector` (type: `string`):

CSS selector of a single element to capture instead of the page — a pricing table, a chart, a product card. Example: #pricing

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

Overrides the device width, for example 1280. Leave empty to use the device size.

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

Overrides the device height (the first screen), for example 800.

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

Ask the site for its dark theme (prefers-color-scheme: dark).

## `retina` (type: `boolean`):

Twice the pixel density — crisper text, bigger files. Long pages are cut at half of Max page height.

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

1–100. Higher is sharper and heavier.

## `maxHeight` (type: `integer`):

Very long pages (endless feeds) are cut at this height. Up to 30000 for PNG/JPEG, 16383 for WebP.

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

When the page counts as loaded. "Load" fits most sites; "Network idle" waits for heavy JavaScript apps.

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

Pause after loading so animations, sliders and charts settle. Usually not needed: the page is already scrolled and its images loaded.

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

CSS selector that must appear before the shot, for example .chart-loaded.

## `scrollToBottom` (type: `boolean`):

Scroll through the page once before a full-page shot so lazy images and sections show up.

## `pageTimeoutSecs` (type: `integer`):

Give up on a page after this long. Slow pages are captured as soon as their content is in.

## `pdfSize` (type: `string`):

Used only for PDF.

## `pdfLandscape` (type: `boolean`):

Wide pages fit better in landscape.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org",
    "https://www.python.org",
    "https://duckduckgo.com",
    "https://developer.mozilla.org"
  ],
  "devices": [
    "desktop"
  ],
  "format": "png",
  "fullPage": true,
  "hideBanners": true,
  "blockAds": true,
  "darkMode": false,
  "retina": false,
  "quality": 80,
  "maxHeight": 20000,
  "waitUntil": "load",
  "delaySecs": 0,
  "scrollToBottom": true,
  "pageTimeoutSecs": 30,
  "pdfSize": "A4",
  "pdfLandscape": false
}
```

# Actor output Schema

## `screenshots` (type: `string`):

One row per page: preview, direct file link, size, page title and status.

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

All PNG, JPEG, WebP and PDF files of this 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://www.wikipedia.org",
        "https://www.python.org",
        "https://duckduckgo.com",
        "https://developer.mozilla.org"
    ],
    "devices": [
        "desktop"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mastertools/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 = {
    "urls": [
        "https://apify.com",
        "https://www.wikipedia.org",
        "https://www.python.org",
        "https://duckduckgo.com",
        "https://developer.mozilla.org",
    ],
    "devices": ["desktop"],
}

# Run the Actor and wait for it to finish
run = client.actor("mastertools/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 '{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org",
    "https://www.python.org",
    "https://duckduckgo.com",
    "https://developer.mozilla.org"
  ],
  "devices": [
    "desktop"
  ]
}' |
apify call mastertools/website-screenshot --silent --output-dataset

```

## MCP server setup

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