# Website Screenshot Scraper — Full-Page PNG, JPEG & PDF API (`innolabs/website-screenshot-scraper`) Actor

Website screenshot scraper API: full-page or viewport PNG/JPEG/PDF captures of any URL, device presets, element capture, delay and cookie-banner hiding. Pay per screenshot.

- **URL**: https://apify.com/innolabs/website-screenshot-scraper.md
- **Developed by:** [Tristan Leroux](https://apify.com/innolabs) (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

Pay per event

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 Scraper — Full-Page PNG, JPEG & PDF Screenshot API

Capture **screenshots of any web page** in bulk: full-page or first-screen PNG and JPEG
images, or the whole page as a PDF. Emulate a desktop browser, an iPhone or an iPad,
capture a single element, wait for slow pages, scroll to load lazy images and **hide cookie
banners automatically**. Every screenshot gets a direct download link and a dataset row with
the page title, final URL, HTTP status and image size. No browser setup, no code. Run it
from Apify Console or call it as a website screenshot API.

### What does Website Screenshot Scraper do?

Website Screenshot Scraper opens each URL in a real Chromium browser and saves what a
visitor sees:

- **Full-page or viewport screenshots** — the whole scrollable page (up to 20,000 px tall,
  adjustable) or just the first screen at your viewport size.
- **PNG, JPEG or PDF** — lossless PNG, small JPEG with adjustable quality, or a printable
  PDF (A4, Letter, Legal, A3, Tabloid) with backgrounds.
- **Devices** — desktop (any viewport, e.g. 1280×800 or 1920×1080), mobile phone
  (iPhone 15 Pro) and tablet (iPad Pro 11) presets, retina pixel density, dark mode, or
  any of 100+ exact device models such as Pixel 7 or Galaxy S24.
- **Element capture** — screenshot only a chart, a pricing table, a product card or any
  element matched by a CSS selector.
- **Clean captures** — cookie and consent pop-ups from the common consent platforms are
  hidden and page scrolling is unlocked; hide your own elements (chat widgets, newsletter
  pop-ups) by selector; optionally block ad networks.
- **Reliable loading** — choose the load event (load, DOM ready, network idle), add a delay,
  wait for a specific element, and scroll through the page first so lazy-loaded images
  appear. Slow pages are captured as they are at the timeout instead of failing.
- **Bulk runs** — thousands of URLs per run, several pages in parallel, duplicates
  captured once, and a failed URL never stops the run.

Each screenshot is stored in the run's key-value store; the dataset row links to it, so
you can download the files, embed them or pass the links to another tool.

### Use cases

- **Visual monitoring** — schedule daily screenshots of your landing pages, pricing pages
  or competitors' homepages and keep a visual history of every change.
- **SEO and marketing reports** — capture search result pages, ads and landing pages on
  desktop and mobile for client reports and audits.
- **QA and web development** — check how pages render on desktop, phone and tablet after
  each deployment, in light and dark mode.
- **Compliance and archiving** — keep dated full-page PDFs or PNGs of terms, prices,
  claims and published content as evidence.
- **Content and social media** — create thumbnails and previews of articles, products or
  dashboards, or capture just one chart with element capture.
- **AI and data pipelines** — feed page screenshots to vision models for classification,
  design analysis or visual QA.

### How much does it cost?

You pay only for the screenshots you get (pay-per-event). Failed pages, duplicates and
anything over your `maxItems` limit are never charged, and there is no separate charge for
the browser time.

| Event | What you pay for | Free plan | Paid plans (from) |
| --- | --- | --- | --- |
| `screenshot` | One captured page (PNG, JPEG or PDF) with its dataset row | $1.65 per 1,000 | $1.65 per 1,000 |

The price is the same on every plan (Free, Bronze, Silver, Gold and above). Apify also charges a tiny actor-start fee ($0.00005 per run).

Worked examples:

1. **Weekly competitor archive** — full-page PNGs of 500 competitor pages every week:
   500 × $1.65 / 1,000 = **$0.825 per week**.
2. **Daily desktop + mobile check of 20 landing pages** — 40 screenshots a day, about 1,200
   a month: 1,200 × $1.65 / 1,000 = **$1.98 per month**.

The Apify Free plan includes $5 monthly credit, enough for about 3,000 screenshots every
month.

### How to use Website Screenshot Scraper

In Apify Console:

1. Open Website Screenshot Scraper and click **Try for free**.
2. Paste your pages into **URLs** (the form is prefilled with five well-known sites).
3. Pick the **Format** (PNG, JPEG or PDF), **Full page** on or off, and the **Device**.
4. Optional: open **Page loading**, **Clean screenshots** or **Element, size and quality**
   to add a delay, hide elements, capture one element or change the viewport.
5. Click **Start**. Screenshots appear in the **Output** tab as they are captured; click a
   screenshot link to open the image, or export the table as JSON, CSV or Excel.

Through the API:

1. Get your API token in Apify Console → Settings → Integrations.
2. Start the actor with your input JSON (see [Integrations and API](#integrations-and-api)).
3. Read the dataset items and download each `screenshotUrl`.

### Input

Only `urls` is required.

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `urls` | array | – | Pages to capture, e.g. `https://apify.com`. Links without `https://` get it added. `{"url": "..."}` objects are accepted too. |
| `format` | string | `png` | `png`, `jpeg` or `pdf`. |
| `fullPage` | boolean | `true` | Whole scrollable page; `false` = first screen only. |
| `device` | string | `desktop` | `desktop`, `mobile` (iPhone 15 Pro) or `tablet` (iPad Pro 11). |
| `waitUntil` | string | `load` | `load`, `domcontentloaded`, `networkidle` or `commit`. |
| `delayMs` | integer | `1000` | Extra wait after loading, in milliseconds. |
| `waitForSelector` | string | – | Wait until this element is visible before capturing. |
| `scrollToBottom` | boolean | `true` | Scroll through the page first so lazy images load. |
| `timeoutSecs` | integer | `60` | Page load timeout; slow pages are captured as they are. |
| `hideCookieBanners` | boolean | `true` | Hide cookie and consent pop-ups and unlock scrolling. |
| `hideSelectors` | array | – | CSS selectors of elements to hide, e.g. `#chat-widget`. |
| `blockAds` | boolean | `false` | Block major ad and tracking networks. |
| `selector` | string | – | Capture only the first visible element matching this CSS selector (PNG/JPEG). |
| `viewportWidth` / `viewportHeight` | integer | `1280` / `800` | Desktop browser window size in CSS pixels. |
| `deviceScaleFactor` | integer | 1 desktop, 2 mobile/tablet | Pixel density, `2` = retina. |
| `deviceName` | string | – | Exact device model, e.g. `Pixel 7`, `iPhone 13 Mini`, `Galaxy S24`. |
| `colorScheme` | string | `light` | `light`, `dark` or `no-preference`. |
| `jpegQuality` | integer | `80` | JPEG quality 1–100. |
| `maxFullPageHeight` | integer | `20000` | Full-page screenshots are cut at this height (CSS px). |
| `pdfFormat` | string | `A4` | `A4`, `Letter`, `Legal`, `A3` or `Tabloid`. |
| `maxItems` | integer | `1000` | Maximum screenshots in the run. |
| `maxConcurrency` | integer | `4` | Pages captured in parallel (also limited by run memory). |
| `proxyConfiguration` | object | no proxy | Optional Apify Proxy, e.g. residential or a specific country. |
| `debug` | boolean | `false` | Log every captured page. |

Example — mobile screenshots of the first screen as JPEG, dark mode, chat widget hidden:

```json
{
    "urls": ["https://www.wikipedia.org", "https://news.ycombinator.com"],
    "format": "jpeg",
    "fullPage": false,
    "device": "mobile",
    "colorScheme": "dark",
    "hideSelectors": ["#chat-widget"],
    "jpegQuality": 75
}
```

Example — only the infobox of a Wikipedia article, at retina density:

```json
{
    "urls": ["https://en.wikipedia.org/wiki/Python_(programming_language)"],
    "selector": ".infobox",
    "deviceScaleFactor": 2,
    "delayMs": 0
}
```

### Output

One dataset row per screenshot. Example from a real run on 2026-11-03:

```json
{
    "url": "https://apify.com/",
    "finalUrl": "https://apify.com/",
    "status": 200,
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/screenshot-apify-com-b2cbeceab7.png",
    "key": "screenshot-apify-com-b2cbeceab7.png",
    "format": "png",
    "contentType": "image/png",
    "width": 1280,
    "height": 10052,
    "pages": null,
    "fullPage": true,
    "selector": null,
    "device": "desktop",
    "viewportWidth": 1280,
    "viewportHeight": 800,
    "deviceScaleFactor": 1.0,
    "bytes": 1008298,
    "capturedAt": "2026-11-03T17:20:41Z"
}
```

Field notes:

- `screenshotUrl` is a direct link to the file in the run's key-value store (you can open
  it in a browser or download it). `key` is the record name in that store.
- `width` and `height` are the image size in pixels (CSS size × `deviceScaleFactor`). For
  PDFs they are the page size in points (1/72 inch) and `pages` is the page count.
- `status` is the HTTP status of the page (a 404 page is still captured and charged as a
  screenshot; filter on `status` if you only want 200s). `finalUrl` shows where redirects
  ended.
- `fullPage` is `false` for viewport and element screenshots.
- `device` is `desktop`, `mobile (iPhone 15 Pro)`, `tablet (iPad Pro 11)` or the exact
  model you set.

### Integrations and API

Capture screenshots and get the rows back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/innolabs~website-screenshot-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com", "https://www.wikipedia.org"], "format": "png", "fullPage": true}'
```

Python with [apify-client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient
import httpx

client = ApifyClient("YOUR_TOKEN")
run = client.actor("innolabs/website-screenshot-scraper").call(
    run_input={
        "urls": ["https://apify.com", "https://www.wikipedia.org"],
        "format": "jpeg",
        "device": "mobile",
        "fullPage": False,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    with open(item["key"], "wb") as f:
        f.write(httpx.get(item["screenshotUrl"]).content)
    print(item["url"], item["status"], item["width"], "x", item["height"])
```

- **Make, Zapier, n8n** — start the actor from a workflow and send each screenshot link to
  Google Drive, Slack, Notion, Airtable or email.
- **Scheduling** — create a schedule in Apify Console (e.g. every morning) for automatic
  visual monitoring.
- **Webhooks** — trigger your pipeline when a run finishes.
- **AI agents (MCP)** — connect Claude, Cursor or other MCP clients through the Apify MCP
  server at https://mcp.apify.com and let your agent take screenshots on demand.

### FAQ

#### Are cookie banners always removed?

Banners from the widely used consent platforms (OneTrust, Cookiebot, Didomi, Usercentrics,
Sourcepoint, Quantcast, TrustArc, Complianz, CookieYes and others) and fixed bars whose
name mentions cookies or consent are hidden, and scroll locks are removed. A site with a
custom pop-up can still show it; add its CSS selector to **Hide elements**. The scraper
hides banners; it does not click "accept", so no consent is given on your behalf.

#### Why is part of my full-page screenshot empty?

Some pages load images only when you scroll near them. Keep **Scroll to bottom first** on,
and increase **Delay** for pages with slow animations. For single-page apps, choose
**Network idle** in **Wait until**.

#### Can I take screenshots of pages behind a login?

Not in this version: the browser starts without cookies or a session, so you get what a
logged-out visitor sees.

#### Do I need a proxy?

Usually not. Pages load directly by default, which is the fastest option. Turn on Apify
Proxy in **Proxy configuration** for sites that block data-center traffic, and choose
residential proxies or a proxy country to see country-specific content (prices,
languages, cookie banners). Proxies make page loading slower.

#### What if a page fails?

Each URL is processed on its own. A page that cannot be opened (wrong address, server
down, blocked) is retried once and then listed in the run's `SUMMARY` record and log; it
is not charged and the run continues. If every URL fails, the run is marked as failed with
the reason.

#### How fast is it?

At the default 1 GB memory, simple pages take 3–8 seconds and heavy news and media
homepages up to about a minute (full-page capture with scrolling). Pages are captured in
parallel when the run has more memory (one more page per 600 MB above the first 400 MB)
and each page also renders faster, so give the run 2–4 GB for large batches.

### Limits

- Full-page screenshots are cut at 20,000 CSS pixels by default (`maxFullPageHeight`,
  up to 50,000) so endless feeds stay manageable.
- Element capture and PDF cannot be combined; PDF always contains the whole page.
- Pages taller than the browser window are captured screen by screen and joined, so fixed
  headers, chat buttons and cookie bars appear once at the top instead of on every
  screen. Content inside scrollable boxes (chat panels, inner scroll areas) is captured
  as shown, not expanded.
- Pages behind a login, CAPTCHA walls and sites that block automated browsers return
  whatever the browser is shown (for example a block page); try residential proxies.
- WebP output, custom cookies/headers and clicking through pop-ups are not available.
- Very heavy pages need memory: at 1 GB pages are captured one at a time; add memory for
  parallel capture.
- Screenshot files are kept as long as the run's storage is retained on your Apify plan;
  download them if you need them longer.

# Changelog

This Actor's version history is a separate document: https://apify.com/innolabs/website-screenshot-scraper/changelog.md

# Actor input Schema

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

Web pages to capture, one per line, e.g. https://apify.com. Links without http(s):// get https://. Duplicates are captured once.

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

PNG (lossless), JPEG (smaller files, see JPEG quality) or PDF (the whole page as a printable document, A4 by default).

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

Capture the whole scrollable page. Off = only the visible viewport (first screen). Ignored for PDF and element capture.

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

Desktop browser (viewport below), mobile phone (iPhone 15 Pro, 393×659, touch, mobile user agent) or tablet (iPad Pro 11, 834×1194). Mobile and tablet render at 2× pixel density unless Device scale factor is set.

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

Page load event to wait for: load (all images and scripts), domcontentloaded (HTML parsed, faster), networkidle (no network traffic for 500 ms, best for single-page apps) or commit (first response byte).

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

Extra wait after the page has loaded, for animations, sliders and late pop-ups. 1000 = 1 second.

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

Optional CSS selector that must be visible before capturing, e.g. #main-chart or .price.

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

Scroll through the page (up to 15 s) so lazy-loaded images and sections render, then back to the top before capturing.

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

Maximum time to load one page. A page that never reaches the chosen load event is captured as it is at this point; a page that cannot be opened at all is retried once and then reported as failed (not charged).

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

Hide cookie and consent pop-ups from common consent platforms (OneTrust, Cookiebot, Didomi, Usercentrics, Sourcepoint, Quantcast, TrustArc and more) and fixed cookie bars, and unlock page scrolling.

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

CSS selectors of elements to hide before capturing, e.g. #chat-widget, .newsletter-popup, header.sticky.

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

Block requests to major ad and tracking networks (Google Ads, Amazon Ads, Taboola, Outbrain, Criteo and others). Pages often load faster, ad slots stay empty.

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

CSS selector of one element to capture instead of the page, e.g. #pricing, .chart or table.infobox. The first visible match is captured. PNG or JPEG only.

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

Browser window width in CSS pixels for the desktop device, e.g. 1280, 1440 or 1920.

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

Browser window height in CSS pixels for the desktop device; this is the screenshot height when Full page is off.

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

Pixel density: 2 = retina (twice the width and height in pixels). Empty = 1 for desktop, 2 for mobile and tablet.

## `deviceName` (type: `string`):

Overrides Device with any Playwright device model, e.g. Pixel 7, iPhone 13 Mini, Galaxy S24, iPad Mini, Desktop Firefox HiDPI. Uses the model's own viewport, pixel density and user agent.

## `colorScheme` (type: `string`):

Light or dark mode for sites that support prefers-color-scheme.

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

1–100, used only for JPEG. 80 gives files about 3–5× smaller than PNG with little visible loss.

## `maxFullPageHeight` (type: `integer`):

Full-page screenshots are cut at this height in CSS pixels, so endless feeds and infinite scroll pages stay manageable.

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

Paper size for PDF output. Pages are rendered with their screen styles and backgrounds.

## `maxItems` (type: `integer`):

Hard cap on screenshots (dataset items) in this run. The run stops cleanly when reached; you are never charged for more.

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

How many pages are captured at the same time. Also limited by the run memory (one page per 400 MB), so add memory for faster bulk runs.

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

Off by default: pages load directly, which was up to 10× faster than through a proxy in tests. Turn on Apify Proxy (RESIDENTIAL or a country) for sites that block data-center traffic or show country-specific content.

## `debug` (type: `boolean`):

Log every captured page with its size.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org",
    "https://www.python.org",
    "https://www.w3.org",
    "https://developer.mozilla.org"
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "waitUntil": "load",
  "delayMs": 1000,
  "scrollToBottom": true,
  "timeoutSecs": 60,
  "hideCookieBanners": true,
  "blockAds": false,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "colorScheme": "light",
  "jpegQuality": 80,
  "maxFullPageHeight": 20000,
  "pdfFormat": "A4",
  "maxItems": 1000,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debug": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per captured page: screenshot link, page title, HTTP status, image size and capture settings.

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

The PNG, JPEG and PDF files in the run's key-value store.

# 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://www.w3.org",
        "https://developer.mozilla.org"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("innolabs/website-screenshot-scraper").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://www.w3.org",
        "https://developer.mozilla.org",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("innolabs/website-screenshot-scraper").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://www.w3.org",
    "https://developer.mozilla.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call innolabs/website-screenshot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,innolabs/website-screenshot-scraper"
        }
    }
}
```

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/k8CkMAPCB6wnBgWbZ/builds/Z0JfRx12VPRDGV8V9/openapi.json
