# Website Screenshot API - Screenshot URL, Full Page & PDF (`scrolahdata/website-screenshot-generator`) Actor

Capture full-page or viewport screenshots and PDFs of any URL in bulk. Desktop, tablet and mobile, dark mode, cookie banners hidden, element capture. Pay per screenshot. HTML to image, URL to PDF.

- **URL**: https://apify.com/scrolahdata/website-screenshot-generator.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (community)
- **Categories:** Developer tools, Automation, 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 $4.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.
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 Generator — Full Page, Mobile & PDF

Capture **full-page screenshots** or **PDFs** of any list of URLs in bulk. Every capture gets a **public image URL** you can drop into a spreadsheet, report or AI pipeline.

### Features

- 📸 **Full page or viewport** — lazy-loaded images are scrolled into view first
- 📱 **Desktop, laptop, tablet & mobile** in one run (one capture per device)
- 🍪 **Cookie banners hidden** automatically (OneTrust, Cookiebot, Didomi, Usercentrics and more)
- 🌙 **Dark mode** emulation
- 🎯 **Element screenshots** with a CSS selector (e.g. `#pricing`)
- 🙈 **Hide elements** like chat widgets or sticky headers
- 📄 **PDF export** (A4, Letter, Legal, A3)
- PNG or JPEG, custom viewport, delay and wait options
- 💸 **Pay per screenshot — failed pages are free**

### Input example

```json
{
  "urls": ["apify.com", "https://www.wikipedia.org"],
  "devices": ["desktop", "mobile"],
  "format": "png",
  "fullPage": true,
  "hideCookieBanners": true
}
```

### Output

```json
{
  "url": "https://apify.com",
  "finalUrl": "https://apify.com/",
  "device": "mobile",
  "format": "png",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "httpStatus": 200,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/apify.com-1a2b3c4d5e.png",
  "sizeBytes": 845123,
  "status": "ok"
}
```

Files are also stored in the run's key-value store.

### Use cases

- **Website monitoring & visual archives** — schedule daily captures
- **SEO / competitor tracking** — landing pages, pricing pages
- **Lead lists & sales decks** — thumbnails of prospect websites
- **QA** — check responsive layouts on mobile and tablet
- **AI agents** — give vision models a picture of a page

### Pricing

One **Screenshot** event per successful capture (one URL × one device). Errors are not charged.

### How to use Website Screenshot Generator

1. Click **Try for free** (the Apify free plan includes monthly credit).
2. Fill in the input — the example input is already pre-filled, so you can just press **Start**.
3. Download results as **JSON, CSV, Excel or HTML**, or open them in the dataset table view.

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client` and get results as JSON.
- **Schedules & monitoring** — run it hourly, daily or weekly and get only fresh data.
- **Zapier, Make, n8n, Google Sheets, Slack, webhooks** — send results to your tools automatically.
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

### FAQ

**Do I need an API key, login or cookies?** No. It reads publicly available data only.

**How much does it cost?** You pay only for results (see the Pricing tab), no start fee. Error rows are free. Higher Apify plans get automatic discounts.

**Is it legal?** It collects public data only. Make sure your use complies with the website's terms and data-protection laws (e.g. GDPR) — don't collect personal data without a legal basis.

**Something doesn't work or you need a feature?** Open an issue in the **Issues** tab — we usually reply within a day.

### More from ScrolahData

- [Website Contact Scraper](https://apify.com/scrolahdata/website-contact-scraper) — emails, phones, socials & tech stack
- [App Store & Google Play Reviews Scraper](https://apify.com/scrolahdata/app-store-reviews-scraper)

# Actor input Schema

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

Pages to capture.

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

Domains or URLs, e.g. example.com. Bulk paste friendly.

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

Output file type.

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

One capture per URL per device.

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

Capture the whole scrollable page instead of only the viewport.

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

Hide common cookie/consent popups (OneTrust, Cookiebot, Didomi, Usercentrics...).

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

Emulate prefers-color-scheme: dark.

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

CSS selector to capture just one element (e.g. #pricing).

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

CSS selectors to hide before capture, comma separated (e.g. .chat-widget, header).

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

Extra wait for animations / lazy content.

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

Navigation event to wait for (then up to 8 s more for the load event).

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

Scroll through the page before a full-page capture.

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

Overrides the device width.

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

Overrides the device height.

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

Double pixel density. Sharper but 4x bigger files.

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

Very long pages are cut at this height.

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

Only for JPEG.

## `pdfPaperFormat` (type: `string`):

Only for PDF.

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

Navigation timeout per page.

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

Pages captured in parallel.

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

Off by default (faster). Turn on for sites that block cloud IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://www.wikipedia.org"
    }
  ],
  "format": "jpeg",
  "devices": [
    "desktop"
  ],
  "fullPage": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "delayMs": 1000,
  "waitUntil": "domcontentloaded",
  "scrollToBottom": true,
  "retina": false,
  "maxHeight": 10000,
  "quality": 80,
  "pdfPaperFormat": "A4",
  "timeoutSecs": 30,
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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://www.wikipedia.org"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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

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/visR72L6gaAzUdvyd/builds/jzvojUw6Ob7EsLuHr/openapi.json
