# Website Screenshot Tool - Full Page, Mobile & PDF Capture (`rasareka/website-screenshot`) Actor

Capture website screenshots in bulk with real Chrome: full-page or viewport, desktop, laptop, tablet and mobile sizes, PNG, JPEG, WebP or PDF. Hides cookie banners, dark mode, ad blocking. Each image gets a public URL. For visual monitoring, social previews, archiving and QA.

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

## Pricing

from $2.00 / 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.

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 Generator (Full Page, Mobile, PDF)

Take **website screenshots in bulk** with a real Chrome browser. Paste a list of URLs and get a **full-page or viewport screenshot** of each one in **PNG, JPEG, WebP or PDF**, at **desktop, laptop, tablet, mobile or custom sizes**. Cookie banners are hidden for you, and every image gets a **public URL** you can drop straight into a spreadsheet, a Slack message or your own app.

### What you get

- **Viewport or full-page screenshots.** Full page scrolls the page once first, so lazy-loaded images show up
- **Device presets:** Desktop 1920x1080, Laptop 1366x768, Tablet 768x1024, Mobile 390x844 (with a mobile user agent and touch, so sites serve their real mobile layout), or any custom width and height
- **Four formats:** PNG (lossless), JPEG and WebP (with a quality setting), or a one-page **PDF** with backgrounds, rendered with screen styles so it looks like the page
- **Cookie banners hidden:** OneTrust, Cookiebot, TrustArc, Didomi, Usercentrics, Quantcast, Sourcepoint, CookieYes, Complianz, iubenda and generic cookie/consent bars are hidden with CSS. Nothing is clicked or accepted
- **Dark mode:** emulate `prefers-color-scheme: dark`
- **Optional ad blocking:** a simple list of about 45 well-known ad networks
- **Wait options:** wait for `load`, `domcontentloaded` or `networkidle`, plus an extra delay for animations and fonts
- **One dataset row per page:** URL, final URL after redirects, page title, HTTP status, public `screenshotUrl`, format, width, height, file size and timestamp
- Files are stored in the run's key-value store with readable keys like `apify-com-14328ece77.png` and the correct content type

### Why this Actor

| | This Actor | Screenshot API subscriptions |
|---|---|---|
| Pricing | Pay per screenshot saved, no monthly plan | Monthly plans with a fixed quota |
| Failed pages | Free (listed in a FAILED record with the reason) | Often count against your quota |
| Bulk | Paste hundreds of URLs, run in parallel | Usually one API call per screenshot |
| Formats | PNG, JPEG, WebP, PDF | Varies by plan |
| Automation | Apify API, schedules, webhooks, Make, Zapier, n8n | Their own API |
| Pages behind bot protection | Not supported (skipped, see Limits) | Some offer proxies or solvers |

### Use cases

- **Visual monitoring:** schedule a daily run of your key pages and keep a dated visual history; spot broken layouts after a deploy
- **Social previews and thumbnails:** generate preview images of articles, landing pages or customer sites for cards, directories and link previews
- **Archiving:** keep PDF or PNG snapshots of pages as they looked on a given day (terms pages, pricing pages, press coverage)
- **QA and responsive testing:** capture the same pages at desktop, tablet and mobile sizes and compare them side by side, in light and dark mode
- **Competitor tracking:** take a weekly full-page screenshot of competitors' homepages and pricing pages to see what changed

### Input example

```json
{
  "urls": ["https://apify.com", "https://www.wikipedia.org", "https://github.com"],
  "viewport": "mobile",
  "fullPage": true,
  "format": "jpeg",
  "jpegQuality": 80,
  "delayMs": 1000,
  "waitUntil": "load",
  "hideCookieBanners": true,
  "darkMode": false,
  "blockAds": false,
  "maxConcurrency": 3,
  "timeoutSecs": 60
}
```

| Field | Description |
|---|---|
| `urls` | Pages to capture. Full URLs or bare domains (`example.com`). Duplicates are removed. |
| `viewport` | `desktop`, `laptop`, `tablet`, `mobile` or `custom` (then set `viewportWidth` and `viewportHeight`). Default `desktop`. |
| `fullPage` | Whole scrollable page instead of the visible window. Default `false`. |
| `format` | `png`, `jpeg`, `webp` or `pdf`. Default `png`. |
| `jpegQuality` | 1–100, for JPEG and WebP. Default 80. |
| `delayMs` | Extra wait after load, in milliseconds. Default 1000. |
| `waitUntil` | `load` (default), `domcontentloaded` or `networkidle`. |
| `hideCookieBanners` | Hide common consent banners with CSS. Default `true`. |
| `darkMode` | Emulate dark color scheme. Default `false`. |
| `blockAds` | Block a list of common ad networks. Default `false`. |
| `maxConcurrency` | Pages captured in parallel, 1–10. Default 3. |
| `timeoutSecs` | Max load time per page, 10–300. Default 60. |

With empty input the Actor takes one desktop screenshot of apify.com, so you can see what the output looks like.

### Output example (real local test run)

```json
{
  "url": "https://www.wikipedia.org/",
  "finalUrl": "https://www.wikipedia.org/",
  "title": "Wikipedia",
  "statusCode": 200,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/wikipedia-org-491bcd40ae.png",
  "screenshotKey": "wikipedia-org-491bcd40ae.png",
  "format": "png",
  "viewport": "desktop",
  "width": 1920,
  "height": 1080,
  "fullPage": false,
  "darkMode": false,
  "fileSizeKb": 145,
  "takenAt": "2026-11-07T02:42:28.029Z"
}
```

`screenshotUrl` points to the file in the run's key-value store. Open it in a browser, use it as an `<img src>`, or download it with the Apify API. In the Console, the dataset table shows a thumbnail of every screenshot.

#### Sample results from local test runs

| Page | Settings | Result |
|---|---|---|
| apify.com | desktop, PNG | 1920x1080, 178 KB |
| wikipedia.org | desktop, PNG | 1920x1080, 145 KB |
| github.com | desktop, PNG | 1920x1080, 61 KB |
| bbc.com | mobile, full page, JPEG | 390x16000 (page was 16,462 px, cut at 16,000), 953 KB |
| stripe.com | laptop, PDF | 1 page 1366x768 px, 117 KB, redirected to stripe.com/en-my |
| example.com | laptop, PDF | 1 page 1366x768 px, 53 KB |
| theverge.com | desktop, full page, WebP, dark mode, ads blocked, networkidle | 1920x16000, 1,048 KB |
| g2.com | desktop | Not captured: "DataDome captcha page" (free, in FAILED) |
| zillow.com | desktop | Not captured: "HUMAN (PerimeterX) captcha page" (free, in FAILED) |

Pages that can't be captured are listed in the **FAILED** record of the key-value store, for example:

```json
[
  { "url": "https://this-domain-does-not-exist-rr-1234.com", "type": "ERROR", "reason": "Domain not found (DNS lookup failed)" },
  { "url": "https://httpbin.org/status/404", "type": "ERROR", "reason": "HTTP 404" },
  { "url": "https://www.g2.com", "type": "BLOCKED", "reason": "DataDome captcha page" }
]
```

### Pricing

You pay only for screenshots that are saved to your dataset. Pages that fail (bad URL, DNS error, timeout, HTTP error, bot challenge) are free and listed in the FAILED record. You can set a maximum cost per run in the run options, and the Actor stops cleanly when it is reached.

**Memory:** this Actor runs a real Chrome browser, so it needs more memory than a plain HTTP scraper. The default is **1 GB** (also the minimum), which is enough for the default 3 pages in parallel. Raise memory (up to 4 GB) if you raise `maxConcurrency` or capture very long full pages. Platform usage (compute units) depends on the memory you choose and how long pages take to load.

### Limits (please read)

- **Pages behind bot protection are skipped, not bypassed.** If a page shows a Cloudflare "Just a moment..." challenge, a captcha (DataDome, HUMAN/PerimeterX, reCAPTCHA, hCaptcha), an Akamai or Imperva interstitial, or answers with HTTP 403/429, it goes to FAILED with the reason and is not charged. The Actor uses no proxies and never tries to get past these checks.
- **No logins.** Only pages that are publicly visible without signing in.
- **Full page is cut at 16,000 px** to keep memory use safe and stay within WebP's size limit. The row then has `truncatedAtPx: 16000`.
- **Cookie banners are hidden, not accepted.** Content that a site only shows after consent (some embedded videos or maps) stays hidden. A site with an unusual banner may still show it; report the URL and we will add it.
- **Ad blocking is a short host list**, not a full ad blocker. Empty ad slots may remain as blank space.
- **WebP** is encoded inside Chrome. If that fails for a page, the image is saved as JPEG and the row says `"format": "jpeg"`.
- **PDF** is a single page sized to the viewport (or the full page height when `fullPage` is on), not a multi-page print layout.
- Screenshots are taken at 1x pixel density.
- Files in the run's default key-value store follow your Apify data retention settings. Copy them elsewhere if you need them long term.

### FAQ

**Do I need an account, API key or proxy?** You need an Apify account to run it. No API key or proxy is needed.

**Can I use the screenshot URLs in other tools?** Yes. `screenshotUrl` is a direct link to the file in the key-value store. Use it in Google Sheets (`=IMAGE(url)`), Airtable, Notion, Slack or your own code.

**Why did a page fail with "Timed out"?** The page didn't finish loading in `timeoutSecs`. Try `waitUntil: "domcontentloaded"` or a higher timeout.

**Is this legal?** The Actor only loads public pages the way any visitor's browser would and saves an image of what it shows. You are responsible for how you use the screenshots, including copyright and trademark rules and privacy laws such as GDPR if a page shows personal data.

**Something looks wrong.** Open an issue on the Issues tab with the URL and your input. We usually reply within 24 hours.

# Actor input Schema

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

Pages to screenshot, one per line. Full URLs (https://example.com/pricing) or bare domains (example.com) both work. Duplicates are removed.

## `viewport` (type: `string`):

Browser window size. Desktop 1920x1080, Laptop 1366x768, Tablet 768x1024, Mobile 390x844 (tablet and mobile also use a mobile user agent and touch, so sites serve their mobile layout). Choose Custom to set your own width and height below.

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

Viewport width in pixels. Used only when Device / viewport is Custom (200-3840). Widths under 600 px get a mobile user agent.

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

Viewport height in pixels. Used only when Device / viewport is Custom (200-4320).

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

Capture the whole scrollable page instead of only the visible window. The page is scrolled once first so lazy-loaded images appear. Very long pages are cut at 16,000 px.

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

PNG (lossless), JPEG (smaller), WebP (smallest, encoded by Chrome; falls back to JPEG if encoding fails) or PDF (one page, screen styles, backgrounds included).

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

Image quality from 1 to 100 for JPEG and WebP. Ignored for PNG and PDF.

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

Extra wait after the page has loaded, so animations, fonts and late content settle (0-60000).

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

When navigation counts as finished. "load" suits most sites. "domcontentloaded" is faster. "networkidle" waits until there are no network requests for 500 ms (up to 30 s, then the screenshot is taken anyway).

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

Hide common cookie and consent banners (OneTrust, Cookiebot, TrustArc, Didomi, Usercentrics, Quantcast, CookieYes and generic cookie/consent bars) with CSS. Banners are only hidden visually; nothing is clicked or accepted.

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

Emulate prefers-color-scheme: dark. Sites that support a dark theme will render it.

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

Block requests to about 45 well-known ad and ad-tracking networks (DoubleClick, AdSense, Taboola, Outbrain, Criteo...). A simple host list, not a full ad blocker.

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

How many pages to capture in parallel (1-10). Each page uses roughly 150-300 MB of memory, so raise run memory if you go above 3.

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

Maximum time to load one page (10-300). Pages that do not load in time are listed in FAILED and are not charged.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "viewport": "desktop",
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "fullPage": false,
  "format": "png",
  "jpegQuality": 80,
  "delayMs": 1000,
  "waitUntil": "load",
  "hideCookieBanners": true,
  "darkMode": false,
  "blockAds": false,
  "maxConcurrency": 3,
  "timeoutSecs": 60
}
```

# Actor output Schema

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

No description

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

No description

## `failed` (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://apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rasareka/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"] }

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

```

## MCP server setup

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