# Website Screenshot & PDF: Full Page, Mobile, PNG, JPEG, WebP (`dottti/website-screenshot`) Actor

Screenshot any list of URLs as JPEG, PNG, WebP or PDF: visible window or full page, desktop, tablet or mobile size. Hides cookie banners, blocks ads, dark mode, wait for an element. Row per URL with file link, final URL, HTTP status, title, timings. $2 per 1,000; failed pages free.

- **URL**: https://apify.com/dottti/website-screenshot.md
- **Developed by:** [Dottti](https://apify.com/dottti) (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 $1.40 / 1,000 screenshots

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

## Website Screenshot & PDF

Take screenshots or PDFs of any list of web pages. The visible window or the full page, in desktop, laptop, tablet or mobile size, as PNG, JPEG, WebP or PDF. Cookie banners are hidden and ads are blocked by default.

You give it URLs. You get one row per URL with:

- a link to the image or PDF file (stored in the run's key-value store)

- the final URL after redirects, the HTTP status code and the page title

- file size, image width and height, page height, and whether a very long page was cut

- timings in milliseconds: page open, waiting, capture and total

- **Price:** $2.00 per 1,000 screenshots (visible window, one element, or a PDF) and $6.00 per 1,000 full-page screenshots, on the Apify Free plan, less on paid plans (down to $1.40 and $4.20). Pages that fail are free. Platform usage is included.

- **First run:** the form is prefilled with https://example.com and https://apify.com. Click **Start** and you get 2 JPEG screenshots of the visible window in about 20 seconds, for about $0.006 (tested 5 November 2026).

### Who it is for

- Marketing and SEO teams who need screenshots of their own or competitors' pages and landing pages
- Developers and QA who want visual snapshots of pages on desktop and mobile, for reports or visual checks
- Anyone archiving pages as PDF or images: invoices, articles, policy pages, price pages
- No-code users who want screenshots in Make, Zapier, n8n or Google Sheets through the Apify integrations

### Input

The simplest input is a list of URLs:

```json
{
    "urls": ["https://example.com", "https://apify.com"]
}
```

Mobile screenshots in dark mode as WebP:

```json
{
    "urls": ["https://github.com/microsoft/playwright"],
    "device": "mobile",
    "darkMode": true,
    "format": "webp",
    "quality": 80
}
```

A PDF of an article on A4 paper:

```json
{
    "urls": ["https://en.wikipedia.org/wiki/Screenshot"],
    "format": "pdf",
    "pdfPaperSize": "A4"
}
```

Wait until a chart has loaded, then capture only the chart:

```json
{
    "urls": ["https://example.com/dashboard"],
    "waitForSelector": "#chart",
    "captureSelector": "#chart"
}
```

Main options:

| Option | What it does |
| --- | --- |
| URLs | Pages to capture, one per line. https:// is added when missing. |
| File format | JPEG (default), PNG, WebP or PDF. JPEG and WebP files are 3 to 5 times smaller than PNG. |
| Device size | Desktop 1280x800, Desktop HD 1920x1080, Laptop 1366x768, Tablet 768x1024, Mobile 390x844, or Custom width and height. Tablet and mobile use a phone or tablet user agent and touch, so sites show their mobile layout. |
| Full page | Off (default): the visible window. On: the whole page from top to bottom, priced as a full-page screenshot. |
| Max height for full page | Long pages are cut at this height (default 10,000 px). The row says `truncated: true`. |
| Pixel density | 1, 2 or 3 for sharper (retina) images. |
| Quality | For JPEG and WebP. |
| Hide cookie banners | Hides consent popups. Nothing is clicked or accepted. |
| Block ads and trackers | Blocks known ad networks and hides empty ad boxes. |
| Dark mode | Asks the page for its dark theme. Only sites that have one change. |
| Hide these elements | Your own CSS selectors to hide, such as a chat widget. |
| Wait until / Wait for element / Extra delay | Control when the capture happens. |
| Capture only this element | Capture one element (a chart, a card, a table) instead of the page. |
| PDF paper size, landscape, print style | PDF layout options. |
| Capture error pages | Also capture pages that answer 404 or 500 (charged like any page). Off by default. |

### Output

One row per URL. Example from a real run (5 November 2026):

```json
{
    "url": "https://apify.com/",
    "status": "ok",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/eIQO3NUavmVUyHS6W/records/002-apify-com.jpg?signature=...",
    "finalUrl": "https://apify.com/",
    "httpStatus": 200,
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "format": "jpeg",
    "contentType": "image/jpeg",
    "fileSizeBytes": 125319,
    "key": "002-apify-com.jpg",
    "device": "desktop",
    "viewportWidth": 1280,
    "viewportHeight": 800,
    "fullPage": false,
    "imageWidth": 1280,
    "imageHeight": 800,
    "pageHeight": null,
    "truncated": false,
    "pdfPages": null,
    "darkMode": false,
    "cookieBoxesHidden": 3,
    "proxy": "none",
    "timings": {
        "navigationMs": 719,
        "waitMs": 2263,
        "captureMs": 31,
        "totalMs": 3016
    },
    "capturedAt": "2026-11-05T00:40:09.957Z",
    "charged": true,
    "chargedEvent": "screenshot",
    "error": null
}
```

The `screenshotUrl` link opens the file directly. Files stay in the run's key-value store for as long as your Apify plan keeps run data. To keep them longer, download them or copy them to your own storage with an integration.

Pages that could not be captured get a free status row instead, with `charged: false` and the reason in `error`:

| Status | Meaning |
| --- | --- |
| `not_found` | The page answered 404 or 410. |
| `http_error` | The page answered another 4xx or 5xx code, for example 403 when a site refuses automated visits. |
| `selector_not_found` / `element_not_found` | The element you asked to wait for or capture did not appear. |
| `invalid_selector` | The CSS selector is not valid. |
| `timeout`, `dns_error`, `ssl_error`, `network_error` | The page did not load. |
| `invalid_input` | The line is not a web address, or it is a local or private network address. |
| `skipped_cost_limit` | The run reached the maximum cost you set. |

The run always ends with status SUCCEEDED, so one bad URL never breaks a schedule or an integration. A `RUN_SUMMARY` record in the key-value store has the counts, average timings and average file size.

### Pricing

You pay per result. Platform usage is included in the price.

| Event | What it is | Free plan | Bronze | Silver | Gold and up |
| --- | --- | --- | --- | --- | --- |
| Screenshot | One image of the visible window, one image of a single element, or one PDF | $2.00 per 1,000 | $1.80 | $1.60 | $1.40 |
| Full-page screenshot | One image of the whole page (Full page on) | $6.00 per 1,000 | $5.40 | $4.80 | $4.20 |
| Actor start | Charged once per run, one event per GB of memory (4 events with the default 4 GB) | $0.0005 each | | | |

Why full-page costs more: to capture the whole page, the browser scrolls through it, loads every image and paints a picture up to 10,000 pixels tall. In our tests on 33 popular sites this took about 3 times the platform time of a window capture.

Examples on the Free plan:

- 1,000 window screenshots in one run: $2.00 + $0.002 start = about $2.00
- 1,000 full-page screenshots: about $6.00
- One URL per run through the API: $0.002 for the screenshot + $0.002 start = $0.004 per call

Status rows (404, timeouts, blocked pages, bad selectors, invalid URLs) are free. You can set a maximum cost per run in the run options; the Actor stops cleanly when it is reached and lists the URLs it skipped.

### Scheduling and integrations

- **Schedule:** save your input as a task and add a schedule in Apify Console (for example, every Monday at 08:00) to get fresh screenshots of the same pages every week.
- **API:** start a run with the Apify API or client libraries and read the dataset. Each row has the file link.
- **Integrations:** use the Apify apps for Make, Zapier or n8n, or the Google Drive integration, to send the files where you need them.

### Limits and honest notes

- Sites that block automated browsers, or that show a captcha or a login page, are captured as they appear to a visitor without a login. Captchas are never solved and nothing is logged in.
- Cookie banners are hidden with CSS. Most common consent tools are covered, but an unusual banner can still show. Add its selector under "Hide these elements".
- Some sites show a full-page consent wall and hide their content until you accept. Hiding the wall can leave a page with little content.
- Dark mode only works on sites that support the `prefers-color-scheme` setting.
- WebP images cannot be taller than 16,383 pixels. Long WebP captures are cut there.
- PDFs of image-heavy pages can be large (more than 10 MB for a long news home page).
- Apify residential proxy is not supported, because whole pages are downloaded and residential traffic would cost more than the price. Pages are opened directly, and a page that fails or answers 403 or 429 is retried once through an Apify datacenter proxy. You can also give your own proxy URLs.
- Local and private network addresses are not captured.

### Questions and feedback

Open an issue on the Issues tab of this Actor. If a page does not come out right, include the URL and your input, and we will look at it.

# Actor input Schema

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

Web pages to capture, one per line. Each URL gives one row and one file. https:// is added when missing. Duplicates are captured once.

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

JPEG (default) and WebP are 3 to 5 times smaller than PNG and fine for most uses. PNG is lossless, best for sharp text and pixel checks. PDF prints the page to paper-sized pages with selectable text and working links.

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

Window size the page is opened in. Desktop 1280x800, Desktop HD 1920x1080, Laptop 1366x768, Tablet 768x1024 (iPad user agent, touch), Mobile 390x844 (iPhone user agent, touch). Custom uses Width and Height below.

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

Off (default): only the visible window (viewport), charged as a screenshot. On: the whole page from top to bottom (up to Max height), charged as a full-page screenshot. Not used for PDF.

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

Window width when Device size is Custom.

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

Window height when Device size is Custom. With Full page on, this is the minimum image height.

## `mobileUserAgent` (type: `boolean`):

With Device size Custom: send a mobile user agent and turn on touch, so sites show their mobile layout.

## `deviceScaleFactor` (type: `integer`):

1 = normal. 2 or 3 = sharp retina images (2x or 3x more pixels each way, much bigger files).

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

10 to 100. Lower means smaller files. Not used for PNG or PDF.

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

Very long pages are cut at this height so files stay a usable size. The row says truncated: true when that happens.

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

Hides cookie and consent popups (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics and similar, plus boxes that look like one). Nothing is clicked or accepted; the banner is only hidden.

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

Blocks requests to known ad networks and trackers and hides empty ad boxes. Pages also load faster.

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

Tells the page the visitor prefers dark mode. Only sites that support dark mode (prefers-color-scheme) change.

## `hideSelectors` (type: `string`):

Optional CSS selectors to hide before the capture, one per line. Example: .chat-widget

## `scrollToLoadImages` (type: `boolean`):

For full-page captures: scroll down the page once before the capture so images that load on scroll show up.

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

When the page counts as loaded. Page loaded is right for most sites. Network idle waits up to 15 s more for busy apps.

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

Optional. Waits until this element is visible before the capture, for example #chart or .price. If it does not appear in time, you get a free status row and no charge.

## `selectorTimeoutSecs` (type: `integer`):

How long to wait for the element above.

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

Optional fixed wait after loading, for animations or slow widgets.

## `captureSelector` (type: `string`):

Optional. Captures just the first matching element (a chart, a card, a table) instead of the page, charged as a screenshot. Image formats only.

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

Paper size for PDF output.

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

Landscape pages instead of portrait.

## `pdfPrintMedia` (type: `boolean`):

Off: the PDF looks like the page on screen. On: uses the site's print stylesheet (often hides menus and ads).

## `captureErrorPages` (type: `boolean`):

Off: pages that answer with HTTP 400 or higher get a free status row and no file. On: they are captured and charged like any page (useful for monitoring).

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

Maximum time to open and prepare one page before the capture.

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

0 = automatic (about 6 tabs on the default 4 GB of memory). Pages are CPU-heavy: below 4 GB, Apify gives the run little CPU and each page is much slower.

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

Optional. By default pages are opened directly, and only pages that fail or answer 403/429 are retried once through an Apify datacenter proxy. You can use Apify datacenter proxy or your own proxy URLs. Apify residential proxy is not supported (screenshots download whole pages, which makes residential traffic too costly for this price).

## `autoProxyFallback` (type: `boolean`):

On: a page that fails directly is retried through an Apify datacenter proxy. Ignored when you set your own proxy.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://apify.com"
  ],
  "format": "jpeg",
  "device": "desktop",
  "fullPage": false,
  "width": 1920,
  "height": 1080,
  "mobileUserAgent": false,
  "deviceScaleFactor": 1,
  "quality": 80,
  "maxHeight": 10000,
  "hideCookieBanners": true,
  "blockAds": true,
  "darkMode": false,
  "scrollToLoadImages": true,
  "waitUntil": "load",
  "selectorTimeoutSecs": 10,
  "delayMs": 0,
  "pdfPaperSize": "A4",
  "pdfLandscape": false,
  "pdfPrintMedia": false,
  "captureErrorPages": false,
  "timeoutSecs": 30,
  "maxConcurrency": 0,
  "autoProxyFallback": true
}
```

# Actor output Schema

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

All rows. Paid rows have status ok; filter on status to drop the free status rows.

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

The key-value store that holds the image and PDF files.

## `runSummary` (type: `string`):

Captured count, status counts, average timings and file size.

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

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

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

```

## MCP server setup

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