# Website Screenshot: full page PNG/JPEG (`agebreak/website-screenshot`) Actor

Take full-page or viewport screenshots of any URL in bulk with Playwright Chromium: desktop/tablet/mobile presets, PNG/JPEG, cookie banner hiding, dark mode, ad blocking.

- **URL**: https://apify.com/agebreak/website-screenshot.md
- **Developed by:** [age break](https://apify.com/agebreak) (community)
- **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 screenshot captureds

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: full-page PNG/JPEG of any URL, desktop, tablet or mobile

Take **screenshots of any list of web pages** with a real Chromium browser (Playwright): **full page or above the fold**, **desktop, tablet, mobile or custom size**, **PNG or JPEG**, retina pixel density, **cookie banners hidden**, optional **dark mode** and **ad blocking**. Each image is saved in the run's key-value store, and every page gets a dataset row with a direct image link, the final URL, HTTP status, page title, image size and timing.

### Why use this actor

- **Clean shots without consent pop-ups:** common cookie banners (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint, Complianz, CookieYes, Osano, iubenda and more) are hidden with CSS. Nothing is clicked and no consent is given on your behalf.
- **Real full-page screenshots:** the page is scrolled once so lazy-loaded images appear, then captured top to bottom. Endless pages are cut at a height you choose (default 15,000 px) and marked `truncated: true`.
- **Device presets:** Desktop 1440x900, Laptop 1280x800, Tablet 820x1180 and Mobile 390x844 (with touch and a mobile user agent, so you get the real mobile layout), or any custom size up to 3840 px. Pixel density 1-3x for retina images.
- **PNG or JPEG** with a quality setting; JPEG files are several times smaller.
- **Wait control:** page load, DOM ready or network idle, plus an extra delay for animations and late content. If network idle never comes, you still get the screenshot with a warning.
- **Dark mode** (`prefers-color-scheme: dark`) and **ad blocking** (about 50 ad networks) on request.
- **Image links ready to use:** `screenshotUrl` opens the image directly; the dataset table shows thumbnails.
- About **$4 per 1,000 screenshots**. Failed pages are free.

### Use cases

- **Visual archives and monitoring:** schedule daily screenshots of your own or competitors' homepages, pricing and landing pages.
- **SEO and marketing reports:** above-the-fold desktop and mobile shots for audits, pitches and client reports.
- **QA and responsive checks:** capture the same pages at desktop, tablet and mobile sizes after each deployment.
- **Directories, link previews and AI agents:** thumbnails of websites for listings, or page images for vision models.
- **Evidence and compliance:** record how a page looked at a given time (with HTTP status, final URL and timestamp).

### How to use

1. Click **Try for free** and add URLs, one per line.
2. Choose the **device**, **full page** or viewport only, and **PNG** or **JPEG**.
3. Click **Start**. The prefilled run (3 pages) takes about 15 seconds.
4. Open the **Screenshots** table and click a thumbnail, or download the dataset as **JSON, CSV, Excel or HTML** (each row has `screenshotUrl`). The image files are in the run's **key-value store**. Everything is also available through the **Apify API**, webhooks, Make, Zapier, n8n or the Apify MCP server.

#### Input example

```json
{
  "urls": ["https://apify.com", "https://www.wikipedia.org", "https://github.com"],
  "viewport": "desktop",
  "fullPage": true,
  "format": "png",
  "waitUntil": "load",
  "delayMs": 1000,
  "hideCookieBanners": true,
  "darkMode": false,
  "blockAds": false
}
```

#### Example output

Real row from a local test run on 2026-11-23 (the `screenshotUrl` is an `https://api.apify.com/v2/key-value-stores/.../records/...` link on the platform):

```json
{
  "url": "https://www.wikipedia.org/",
  "finalUrl": "https://www.wikipedia.org/",
  "status": "ok",
  "httpStatus": 200,
  "title": "Wikipedia",
  "screenshotKey": "screenshot-0002-wikipedia.org.png",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/screenshot-0002-wikipedia.org.png",
  "format": "png",
  "imageWidth": 1440,
  "imageHeight": 1102,
  "viewport": "desktop 1440x900",
  "deviceScaleFactor": 1,
  "fullPage": true,
  "pageHeight": 1102,
  "truncated": false,
  "bytes": 192754,
  "darkMode": false,
  "cookieBannersHidden": true,
  "adRequestsBlocked": null,
  "loadMs": 5898,
  "totalMs": 11390,
  "warning": null,
  "takenAt": "2026-11-23T17:29:41.512Z"
}
```

In the same test, apify.com gave a 1440x10072 full-page PNG (978 KB) and github.com a 1440x8551 PNG; a mobile JPEG of github.com at 2x density was 780x1688 px and 56 KB. Pages that fail get a free row with `status` = `invalid-url`, `robots-blocked`, `timeout` or `failed` and an `error` message.

### Limitations (please read)

- **No login, no CAPTCHA solving, no bot-protection bypass.** Pages behind a login, a paywall or a challenge page (Cloudflare "checking your browser", CAPTCHAs) are captured as they appear to a normal visitor, which may be the challenge page itself.
- **Cookie banners are hidden, not accepted.** Sites that block all content until consent is given (some news sites) may show an empty or blurred page. Turn off *Hide cookie banners* if you need the banner in the shot.
- **Dark mode** only changes sites that support `prefers-color-scheme`.
- **Ad blocking** uses a list of known ad hosts; it is not a full ad blocker like uBlock Origin.
- **Very long pages** are cut at *Max full-page height*. Pages that change while scrolling (sticky headers, parallax, infinite feeds) may look slightly different from a manual screenshot.
- **Run time:** on the Apify platform a page takes about 2-5 s (heavy pages longer). Keep *Pages in parallel* at 2 with the default 2 GB memory.

### Source & terms

- **Source:** the web pages you enter, opened once each in headless Chromium (Playwright 1.65 in the official Apify Playwright image), like a normal visitor. No login, no proxies, no CAPTCHA or bot-protection bypass, no stealth tricks; desktop shots use the browser's own user agent, tablet and mobile shots a standard Android Chrome user agent so the site serves its mobile layout.
- **robots.txt:** checked for every URL by default (*Respect robots.txt*). Disallowed URLs are not opened and get a free `robots-blocked` row.
- **Politeness:** one page load per URL (plus one retry on failure), at most 5 pages in parallel (default 2).
- **Cookie consent:** banners are hidden visually only. The actor never clicks "accept" or gives consent for you.
- **Copyright:** screenshots show content owned by the website owners. You are responsible for how you use them (for example archiving, QA, audits and quoting are usually fine; republishing someone else's page design or content as your own is not).

### Pricing

Pay per event: **$4.00 per 1,000 screenshots** (event `screenshot`, $0.004 each). Invalid URLs, robots-blocked URLs, timeouts and failed pages are free. Platform usage (compute) is included in the event price.

Apify's free plan includes monthly platform credit, which is enough to try this actor at no cost.

### Is it legal?

Taking a screenshot of a public web page is like viewing it in your own browser. The actor only opens public pages, respects robots.txt by default and does not get around logins or bot protection. Pages may contain personal data or copyrighted material: you are responsible for using the images lawfully (GDPR, copyright, the site's terms).

### Built with AI assistance

This actor was built with AI assistance (Claude by Anthropic). A human operator reviews and publishes it. It was tested with real pages before release. If something breaks or you need a feature, please open an issue on the **Issues** tab.

### Related actors and keywords

website screenshot, screenshot url, full page screenshot, screenshot api, webpage to image, url to png, url to jpeg, mobile screenshot, responsive screenshots, website thumbnail generator, visual monitoring, playwright screenshot

# Actor input Schema

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

Pages to capture, one per line (https://apify.com/store or just apify.com).

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

Browser window size. Tablet and mobile also emulate touch and a mobile user agent, so sites serve their mobile layout.

## `width` (type: `integer`):

Used only when Device is Custom.

## `height` (type: `integer`):

Used only when Device is Custom. With Full page on, this is the window height; the image is as tall as the page.

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

Capture the whole scrollable page. Off = only the visible viewport (above the fold).

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

Very long pages (infinite feeds) are cut at this height so images stay usable. The row says truncated: true.

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

PNG is sharp and lossless. JPEG files are several times smaller.

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

Only for JPEG. 80 is a good balance of size and sharpness.

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

2 = retina-sharp image with twice the width and height in pixels (4x the file size).

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

When the page counts as loaded. If Network idle never happens, the screenshot is still taken after the timeout, with a warning.

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

Wait this long after loading (and lazy-load scrolling) before the screenshot, for animations, fonts and late content.

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

For full-page shots: scrolls down once so lazy-loaded images appear, then back to the top.

## `navigationTimeoutSecs` (type: `integer`):

Give up on a page after this many seconds (one retry is made).

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

Hides common consent pop-ups (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint, Complianz and more) with CSS. Nothing is clicked and no consent is given.

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

Emulates prefers-color-scheme: dark. Only sites that support dark mode change.

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

Blocks requests to about 50 well-known ad networks (DoubleClick, Amazon ads, Taboola, Outbrain, Criteo...). Analytics are not blocked.

## `respectRobotsTxt` (type: `boolean`):

Skip URLs that the site's robots.txt disallows (a free row with status robots-blocked is saved).

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

How many pages are open at the same time. 2 fits the default 2 GB memory; use 4-5 only with 4 GB or more.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org",
    "https://github.com"
  ],
  "viewport": "desktop",
  "width": 1440,
  "height": 900,
  "fullPage": true,
  "maxFullPageHeight": 15000,
  "format": "png",
  "quality": 80,
  "deviceScaleFactor": 1,
  "waitUntil": "load",
  "delayMs": 1000,
  "scrollToBottom": true,
  "navigationTimeoutSecs": 45,
  "hideCookieBanners": true,
  "darkMode": false,
  "blockAds": false,
  "respectRobotsTxt": true,
  "maxConcurrency": 2
}
```

# Actor output Schema

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

No description

## `files` (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",
        "https://www.wikipedia.org",
        "https://github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("agebreak/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",
        "https://www.wikipedia.org",
        "https://github.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("agebreak/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",
    "https://www.wikipedia.org",
    "https://github.com"
  ]
}' |
apify call agebreak/website-screenshot --silent --output-dataset

```

## MCP server setup

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