# Website Screenshot Scraper (`anyxsolutions/website-screenshot-scraper`) Actor

Website screenshot scraper: capture full-page or viewport screenshots of any URL as PNG, JPEG or PDF. Batch URLs, device presets (desktop, iPhone, Android, iPad), element capture by CSS selector, dark mode and wait options. Each file is saved with a download link.

- **URL**: https://apify.com/anyxsolutions/website-screenshot-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:** 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 results

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

![banner](https://anyx.solutions/banners/website-screenshot-scraper.png)

## Website Screenshot Scraper

**Full-page, viewport or element screenshots of any URL, as PNG, JPEG or PDF, on desktop, phone and tablet screens.**

Website screenshot scraper: capture full-page or viewport screenshots of any URL as PNG, JPEG or PDF. Batch URLs, device presets (desktop, iPhone, Android, iPad), element capture by CSS selector, dark mode and wait options. Each file is saved with a download link. Paste a list of URLs and get one file per page, plus one dataset row per page with its download link, final URL after redirects, page title, HTTP status, image size and file size. It's built for SEO and marketing teams archiving pages, QA teams checking layouts on several screens, agencies sending clients visual reports, and anyone who needs website thumbnails or PDFs at scale. No API key, no login.

### ⚡ Quick start

```json
{
  "startUrls": [
    { "url": "https://apify.com" },
    { "url": "https://en.wikipedia.org/wiki/Web_scraping" }
  ],
  "fullPage": true,
  "device": "iphone-15-pro",
  "format": "png",
  "maxItems": 5
}
```

To capture one element, add `"selector": "#pricing"`. For a printable document, set `"format": "pdf"`.

### 🧩 Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `startUrls` | array | yes | — | URLs to capture, one result per URL. Each needs `http://` or `https://`. |
| `fullPage` | boolean | no | `true` | Capture the whole page. Off captures only the first screen (the viewport). |
| `device` | string | no | `desktop` | Device: `desktop` (1440 × 900), `desktop-1920`, `desktop-1280`, `desktop-retina`, `iphone-15-pro`, `iphone-15-pro-max`, `iphone-se`, `pixel-7`, `galaxy-s24`, `ipad-pro-11`, `ipad-mini`. |
| `viewportWidth` | integer | no | — | Custom width in CSS pixels (200–3840); overrides the device's width. |
| `viewportHeight` | integer | no | — | Custom height in CSS pixels (200–3840); overrides the device's height. |
| `format` | string | no | `png` | `png`, `jpeg` or `pdf`. |
| `jpegQuality` | integer | no | `80` | JPEG quality, 1–100. |
| `pdfFormat` | string | no | `A4` | PDF paper size: `A4`, `Letter`, `Legal`, `A3` or `Tabloid`. |
| `selector` | string | no | — | CSS selector of one element to capture instead of the page, for example `#pricing`. Images only. |
| `waitUntil` | string | no | `load` | When the page counts as loaded: `load`, `domcontentloaded` or `networkidle`. |
| `waitForSelector` | string | no | — | CSS selector to wait for before capturing, for example `.product-grid` (up to 15 s). |
| `delayMs` | integer | no | `500` | Extra milliseconds to wait after load, 0–30000. |
| `scrollToBottom` | boolean | no | `true` | Scroll through the page first so lazy-loaded images appear (full page and PDF). |
| `hideConsentBanners` | boolean | no | `true` | Hide the banners of common cookie-consent tools (OneTrust, Cookiebot, Didomi, Quantcast, TrustArc, Usercentrics and others). |
| `hideSelectors` | array | no | — | CSS selectors to hide before the capture, such as cookie banners or chat widgets. |
| `colorScheme` | string | no | `light` | Ask the page for its `light` or `dark` theme. |
| `maxItems` | integer | no | `5` | The most URLs captured in one run. |
| `proxyConfiguration` | object | no | `{ "useApifyProxy": false }` | Apify proxy settings. Leave the proxy off unless a site blocks the capture. |

### 📤 Output

Each file goes to the run's key-value store. Each captured page is one row in the dataset, with a link to its file; the Console table shows a preview. Download the dataset as JSON, CSV or Excel. URLs that could not be captured are not in the dataset and are not charged; they are listed with the reason in the `FAILED_URLS` record of the key-value store.

#### Fields

| Field | Type | Description |
|---|---|---|
| `url` | string | The URL as you gave it. |
| `finalUrl` | string | The address the browser ended on, after redirects. |
| `title` | string | The page title. |
| `statusCode` | number | HTTP status of the page. Pages that answer 400 or above are not captured (see FAQ). |
| `format` | string | `png`, `jpeg` or `pdf`. |
| `device` | string | Device preset used. |
| `viewportWidth` | number | Screen width in CSS pixels. |
| `viewportHeight` | number | Screen height in CSS pixels. |
| `fullPage` | boolean | Whether the whole page was captured (always `false` for an element or a PDF). |
| `selector` | string | The element captured, or `null` for the page. |
| `imageWidth` | number | Image width in pixels (`null` for PDF). Phones and retina screens give 2–3 pixels per CSS pixel. |
| `imageHeight` | number | Image height in pixels (`null` for PDF). |
| `truncated` | boolean | `true` when the page was taller than the 16,384-pixel image limit and was cut there. |
| `fileSizeBytes` | number | File size in bytes. |
| `screenshotKey` | string | The file's key in the run's key-value store. |
| `screenshotUrl` | string | Direct download link to the file. |
| `capturedAt` | string | When the capture was taken (ISO 8601, UTC). |

<details><summary>Example output</summary>

```json
{
  "url": "https://apify.com",
  "finalUrl": "https://apify.com/",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "statusCode": 200,
  "format": "png",
  "device": "desktop",
  "viewportWidth": 1440,
  "viewportHeight": 900,
  "fullPage": true,
  "selector": null,
  "imageWidth": 1440,
  "imageHeight": 7342,
  "truncated": false,
  "fileSizeBytes": 2318211,
  "screenshotKey": "screenshot-apify-com-3c9f1a7e2b.png",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/aBcD1234/records/screenshot-apify-com-3c9f1a7e2b.png",
  "capturedAt": "2026-11-17T18:04:11.512Z"
}
```

</details>

### 💡 Use cases

- **Visual archive:** keep dated screenshots or PDFs of your own and competitors' pages, pricing and landing pages.
- **Responsive checks:** capture the same pages on desktop, iPhone, Android and iPad and compare layouts.
- **Thumbnails and link previews:** batch-generate website thumbnails for directories, portfolios and CMSs.
- **Client and SEO reports:** add page captures to audits and monthly reports.
- **Monitoring:** schedule the Actor and compare today's capture with last week's to spot changes.
- **Element captures:** grab one chart, banner, price box or navigation bar by CSS selector.

### ❓ FAQ

- **Do I need an API key or a login?** No. The Actor opens each page in a real Chrome browser, the way a visitor would.
- **Where are the files?** In the run's key-value store, under the `screenshotKey` of each row; `screenshotUrl` downloads the file directly. Apify keeps run storage according to your plan's data retention, so copy what you want to keep.
- **How do I get rid of cookie banners?** The banners of the common consent tools (OneTrust, Cookiebot, Didomi, Quantcast, TrustArc, Usercentrics, CookieYes and others) are hidden by default. For a site's own banner, add its CSS selector to `hideSelectors`, for example `.cookie-notice`. Set `hideConsentBanners` to `false` to keep banners in the picture.
- **Why is a very long page cut off?** Chrome cannot draw an image taller than 16,384 pixels, so longer pages stop there and the row says `truncated: true`. On phones and retina screens that is about 5,500 to 8,000 CSS pixels of page. Use a desktop preset or PDF for very long pages.
- **Does the PDF look like the website?** Yes. It is printed with the page's screen styles and backgrounds, on the paper size you pick, and long pages run over several sheets.
- **What if a site blocks the capture or shows another country's page?** Turn on the Apify proxy in `proxyConfiguration`; residential proxies with a country help with geo-specific pages.
- **Am I charged for pages that fail?** No. Only captured pages become dataset rows, and only rows are charged. A page that does not load, or answers with an error status (400 or above, such as 404 or a 503 rate-limit page), is not captured; rate limits and server errors are retried twice first. Failures are listed with the reason in `FAILED_URLS` and counted in the run's status message.
- **How much memory should I give it?** The default 2 GB suits small runs. For heavy pages such as news front pages, or batches of dozens of URLs or more, set 4 GB: it captures two pages at a time and finishes about twice as fast for about the same platform cost. 1 GB is too little for long pages.
- **Can it capture pages behind a login?** No. It captures what a visitor sees without signing in.

### 🔗 More scrapers by Anyx

- [Web Content Scraper](https://apify.com/anyxsolutions/web-content-scraper)
- [Google Search Scraper](https://apify.com/anyxsolutions/google-search-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

## `startUrls` (type: `array`):

The pages to screenshot, one result per URL, each starting with http:// or https://. Add as many as you like, or upload a text file with one URL per line.

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

Capture the whole page from top to bottom. Turn it off to capture only the first screen (the viewport).

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

The screen the page is rendered on. Phones and tablets also send that device's user agent, so sites show their mobile layout.

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

Optional. Overrides the device's screen width in CSS pixels, from 200 to 3840. Leave empty to use the device's own width.

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

Optional. Overrides the device's screen height in CSS pixels, from 200 to 3840. With Full page off, this is the height of the image.

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

File format: PNG (lossless), JPEG (smaller files) or PDF (the whole page as a printable document).

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

Image quality from 1 to 100 when the format is JPEG. Lower makes smaller files.

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

Paper size when the format is PDF. The page is printed as it looks on screen, with its backgrounds.

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

Optional CSS selector of one element to capture instead of the page, for example #pricing or header nav. The first match is used. Images only, not PDF.

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

When the page counts as loaded: Load waits for the page and its images, DOM ready is faster, Network idle also waits for late requests (up to 20 seconds).

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

Optional CSS selector to wait for before capturing, for example .product-grid. The page fails if it does not appear within 15 seconds.

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

Milliseconds to wait after the page has loaded, for animations and late content. From 0 to 30000.

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

Before a full-page or PDF capture, scroll through the page so lazy-loaded images and sections appear, then go back to the top.

## `hideConsentBanners` (type: `boolean`):

Hide the consent banners of common cookie tools, such as OneTrust, Cookiebot, Didomi, Quantcast, TrustArc and Usercentrics, before the capture. Turn it off to keep them in the picture.

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

Optional CSS selectors of elements to hide before the capture, such as cookie banners or chat widgets, for example #onetrust-banner-sdk.

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

Ask the page for its light or dark theme. Sites without a dark theme look the same either way.

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

The most URLs captured in one run. Extra URLs in the list are skipped, and the run's status message says how many.

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

Apify proxy settings for the browser. Leave the proxy off unless a site blocks the capture or shows a different country's page.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://en.wikipedia.org/wiki/Web_scraping"
    },
    {
      "url": "https://developer.mozilla.org/en-US/"
    }
  ],
  "fullPage": true,
  "device": "desktop",
  "format": "png",
  "jpegQuality": 80,
  "pdfFormat": "A4",
  "waitUntil": "load",
  "delayMs": 500,
  "scrollToBottom": true,
  "hideConsentBanners": true,
  "colorScheme": "light",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://en.wikipedia.org/wiki/Web_scraping"
        },
        {
            "url": "https://developer.mozilla.org/en-US/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/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 = { "startUrls": [
        { "url": "https://apify.com" },
        { "url": "https://en.wikipedia.org/wiki/Web_scraping" },
        { "url": "https://developer.mozilla.org/en-US/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://en.wikipedia.org/wiki/Web_scraping"
    },
    {
      "url": "https://developer.mozilla.org/en-US/"
    }
  ]
}' |
apify call anyxsolutions/website-screenshot-scraper --silent --output-dataset

```

## MCP server setup

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