# Website Screenshot Generator: Full Page, Mobile & PDF (`keel-data/website-screenshot`) Actor

Website screenshot generator and API: capture full-page screenshots of any list of URLs on desktop, tablet and mobile, as PNG, JPEG or PDF. Cookie banners are hidden and lazy images load first. Pay only for screenshots that succeed.

- **URL**: https://apify.com/keel-data/website-screenshot.md
- **Developed by:** [Keel Data](https://apify.com/keel-data) (community)
- **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 Generator: Full Page, Mobile & PDF

Take clean, full-page screenshots of any list of websites, on desktop, laptop, tablet and phone sizes, in one run. Cookie banners and consent pop-ups are hidden automatically, lazy-loaded images are loaded first, and you can save each page as a PDF too.

**You only pay for screenshots that work.** Pages that fail, show a bot check, or answer with an error (404, 500…) are free.

### What you get

- **Full-page or visible-screen screenshots** (PNG or JPEG), with very long pages cut at a height you choose
- **Devices**: Desktop 1920×1080, Laptop 1366×768, Tablet (iPad), Mobile (iPhone), Android (Pixel), or your own size. Pick several and get one image per device
- **No cookie banners**: hides OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, CookieYes, Sourcepoint, Google consent, Axeptio, tarteaucitron and other common pop-ups. Nothing is accepted on your behalf: the banners are only hidden
- **Lazy images loaded**: the page is scrolled first so images and sections below the fold appear
- **URL to PDF**: optional A4 PDF of each page, with backgrounds
- **Dark mode**, extra wait time, and your own CSS selectors to hide chat widgets or pop-ups
- **Direct links** to every image and PDF, ready for spreadsheets, Make, Zapier, n8n or your own code

### Use cases

- Website monitoring and visual archives (before/after a redesign, competitor pages over time)
- SEO and marketing audits, agency reports, client proposals
- Mobile vs desktop checks of landing pages
- Thumbnails and previews for directories and link lists
- Compliance and evidence captures (pages as they looked on a date)
- Feeding page images to AI vision models

### Input example

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

### Output example

One row per URL and device:

```json
{
  "status": "ok",
  "url": "https://www.wikipedia.org",
  "device": "mobile",
  "width": 390,
  "height": 2310,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/wikipedia-org-mobile-1x2y3z.png",
  "title": "Wikipedia",
  "httpStatus": 200,
  "bannersHidden": 0,
  "warnings": []
}
```

`status` is `ok` (charged), `http_error` or `blocked` (screenshot saved, free) or `error` (free).

### Pricing

Pay per event: one **screenshot** event per image that succeeds, and one **pdf** event per PDF. No monthly fee and no start fee; platform compute is included in the price. Set a maximum cost per run in Apify and the Actor stops when it is reached, keeping everything taken so far.

### Tips

- Sites that block cloud servers: turn on a **residential proxy** in the Proxy field.
- Heavy JavaScript sites: set **Wait until** to "Network idle" or add a few seconds of extra wait.
- Huge pages: lower **Maximum page height** or use JPEG to keep files small.
- Many URLs: raise **Pages at the same time** and give the run more memory (about 500 MB per page).

### Is it legal?

Screenshots of public web pages are generally fine for analysis, monitoring and archiving. Respect each site's terms and copyright when you publish or reuse images, and don't capture pages behind a login that you are not allowed to access.

### Support

Open an issue on this Actor's Issues tab. We usually answer within a business day.

# Actor input Schema

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

Pages to capture. One screenshot is taken per URL and per device.

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

Pick one or more. Each device is a separate screenshot (and a separate charge). "custom" uses the width and height below.

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

Capture the whole scrolling page instead of only the visible screen.

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

PNG is lossless. JPEG files are much smaller.

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

1–100. Only used for JPEG.

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

Hides OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, CookieYes, Google consent and other common banners. Nothing is accepted on your behalf: the banners are only hidden.

## `scrollToLoadLazy` (type: `boolean`):

Scrolls through the page before the screenshot so lazy-loaded images and sections appear.

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

When the page counts as loaded. "Network idle" is best for heavy JavaScript sites but slower.

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

Extra pause after loading, for animations or late pop-ups. Max 30000.

## `savePdf` (type: `boolean`):

Saves an A4 PDF of each URL (once per URL, not per device). Charged separately.

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

Asks the site for its dark theme (prefers-color-scheme: dark), if it has one.

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

For example a chat widget: #intercom-container

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

Very long pages are cut at this height so images stay usable.

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

Used only by the "custom" device.

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

Used only by the "custom" device.

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

Higher is faster but needs more memory (about 500 MB per page).

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

Optional. Use a proxy for sites that block data-center traffic or show a country-specific version.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "devices": [
    "desktop"
  ],
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "hideCookieBanners": true,
  "scrollToLoadLazy": true,
  "waitUntil": "load",
  "delayMs": 1000,
  "savePdf": false,
  "darkMode": false,
  "hideSelectors": [],
  "maxHeight": 15000,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per URL and device, with a link to the image (and PDF if requested).

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

All screenshot images and PDFs saved in this run.

## `runStats` (type: `string`):

Counts of delivered, free and failed screenshots for this run.

# 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("keel-data/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("keel-data/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 keel-data/website-screenshot --silent --output-dataset

```

## MCP server setup

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