# Website Screenshot — Full Page, Mobile, PDF, No Cookie Banners (`strawhat_studio/website-screenshot`) Actor

Screenshot many URLs at once as PNG, JPEG, WebP or PDF: full page, mobile and tablet views, single elements, dark mode. Cookie pop-ups and ads hidden. $3 per 1,000 screenshots; failed and blocked pages are free.

- **URL**: https://apify.com/strawhat_studio/website-screenshot.md
- **Developed by:** [Strawhat Studio](https://apify.com/strawhat_studio) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.

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

### What does Website Screenshot do?

Website Screenshot captures **many web pages in one run** as **PNG, JPEG, WebP or PDF**. Each page gets a row with a link to its image, the page title, the HTTP status and the image size.

- **Full page or first screen.** Full-page shots go top to bottom, up to 16,000 pixels tall.
- **Phones, tablets and desktops.** iPhone, Android, iPad, laptop and desktop presets, or your own width, height and pixel density (sharp 2x and 3x retina images).
- **One element only.** Give a CSS selector, such as `#pricing`, and get just that part of the page as an image.
- **Clean shots.** Cookie pop-ups are hidden, ads and trackers are blocked, and you can hide any other element, such as a chat widget. Nothing is clicked or accepted on your behalf.
- **Lazy images, when you need them.** Turn on *Scroll to load lazy images* and the page is scrolled first, so images further down appear in full-page shots and PDFs.
- **Dark mode** for sites that support it.
- **Pay only for screenshots.** Pages that fail, show an error or block the visit still get a row with the reason, at no charge.

### Who is it for?

- **Agencies and web teams**: visual records of client sites, checks before and after a release, and archives.
- **Marketers**: a scheduled capture of competitors' landing pages and pricing pages.
- **QA and designers**: the same pages on phone, tablet and desktop in one run.
- **Automation and AI agents**: a picture of any public page, straight from an API call, Make, Zapier or n8n.

### What data do you get?

One row per URL. The image itself is saved in the run's key-value store and linked from the row.

| Field | Example |
|---|---|
| `url` | `https://apify.com/`: the URL you gave, cleaned up |
| `status` | `captured`, `blocked`, `error` or `skipped` (see below) |
| `screenshotUrl` | Link to the image or PDF |
| `screenshotKey` | `0001-apify-com.png`: the file's name in the key-value store |
| `format` | `png`, `jpeg`, `webp` or `pdf` |
| `width`, `height` | 1920, 10056: image size in pixels (empty for PDFs) |
| `fileSizeBytes` | 1205041 |
| `finalUrl` | The address after redirects |
| `httpStatus` | 200 |
| `title` | The page's title |
| `device`, `fullPage` | `desktop`, `true` |
| `truncated` | `true` when the page was taller than 16,000 pixels and was cut |
| `loadTimedOut` | `true` when the page didn't finish loading in time and what had rendered was captured |
| `error` | Why a page wasn't captured |
| `position` | The URL's place in your list (0 for an invalid URL) |
| `capturedAt` | `2026-11-26T06:30:52Z` |

**Statuses:**

- `captured`: the screenshot you asked for. These are the only rows you pay for.
- `blocked`: the site showed a bot check or a block page instead of the page. The row links to a picture of what it showed. Free.
- `error`: the page failed: an invalid URL, a site that can't be reached, an HTTP error such as 404 or 500, a file download, or an element that never appeared. Error pages also get a picture when there was one to take. Free.
- `skipped`: your *Maximum cost per run* was reached before this URL. Free.

The run's summary is saved to the key-value store as `OUTPUT`, with a count of each status.

#### Output example

```json
{
  "url": "https://apify.com/",
  "position": 1,
  "status": "captured",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/aBc123/records/0001-apify-com.png",
  "screenshotKey": "0001-apify-com.png",
  "format": "png",
  "width": 1920,
  "height": 10056,
  "fileSizeBytes": 1205041,
  "finalUrl": "https://apify.com/",
  "httpStatus": 200,
  "title": "Apify: Marketplace of ready-to-run tools for AI",
  "device": "desktop",
  "fullPage": true,
  "truncated": false,
  "loadTimedOut": false,
  "error": null,
  "capturedAt": "2026-11-26T06:30:52Z"
}
```

### How to use it

1. Add **URLs**, one per line. `example.com` works too; `https://` is added. A URL listed twice is captured once.
2. Pick the **format** and **device**, and whether you want the **full page**.
3. Optional: **capture one element** with a CSS selector, **hide elements**, turn on **dark mode**, or change the timing (wait until, extra wait, wait for an element).
4. Run it. Open the **Screenshots** tab to see the images, or download the dataset as JSON, CSV or Excel with the links.

#### Input example

```json
{
  "urls": ["https://apify.com", "https://en.wikipedia.org/wiki/Web_scraping"],
  "format": "jpeg",
  "fullPage": true,
  "device": "iphone",
  "hideCookieBanners": true,
  "blockAds": true,
  "hideSelectors": ["#intercom-container"]
}
```

### How much does it cost?

**$3 per 1,000 screenshots** ($0.003 each), plus Apify's standard start fee of $0.00005 per run for each GB of memory ($0.0001 at the default 2 GB). Compute is included; there is no separate platform usage charge.

You pay only for rows with status `captured`. Blocked pages, errors, invalid URLs and skipped URLs cost nothing. You can cap any run's cost with the *Maximum cost per run* setting.

**Speed:** one page at a time for each 4 GB of memory (Apify gives one CPU core per 4 GB). Light pages take 1–3 seconds at the default 2 GB, and very heavy ones up to a minute; in our test of 60 big popular sites, a page took 15 seconds on average. So a run with the default 1-hour timeout fits about 250 heavy pages or 1,000 light ones. For longer lists, raise the memory (8–16 GB captures 2–4 pages at once) or the run timeout. The price per screenshot stays the same.

### Limits

- **Sites with bot protection may refuse.** Big shops, travel sites and some news sites often answer automated browsers with a challenge or block page. This Actor doesn't get around them: no proxies, no stealth tricks, no CAPTCHA solving. Such pages come back as `blocked`, free, with a picture of what the site showed. In our tests of 60 big popular sites, about a third were blocked this way; smaller sites, docs and your own pages rarely are.
- **Public pages only.** No logins, cookies or custom headers, so pages behind a login show their login screen.
- **16,000 pixels tall at most.** Longer pages are cut at that height and marked `truncated`. At 2x or 3x pixel density the limit is 16,000 image pixels, so the page part is shorter (5,333 page pixels at 3x).
- **Cookie pop-ups** are hidden for the common consent tools and for small fixed boxes with notice wording such as "we use cookies" or "accept all cookies". Headers and footers that only link to a cookie policy stay. Rare custom pop-ups may still show; add their selector to *Hide elements*.
- **Blocked ads leave their empty slots** on some sites.
- **Lazy images** further down a page may show as blank boxes unless *Scroll to load lazy images* is on. With it on, infinite-scroll pages are captured as far as 8 seconds of scrolling loads them.
- **Pages that keep loading** are given 10 seconds after their HTML is ready (15 with *Network quiet*), then captured and marked `loadTimedOut`.
- **Storage:** images live in the run's key-value store and follow Apify's data retention for your plan. Download them, or send them on with an integration, if you need them longer.

### FAQ

**How do I download all the images?**
Each row's `screenshotUrl` is a direct link. All files are also in the run's key-value store (*Storage* tab), and the API can list them: `GET https://api.apify.com/v2/key-value-stores/<storeId>/keys`.

**Can I take a screenshot every day?**
Yes. Save your input as a task and add a schedule. Each run saves its own images.

**Why was a page marked blocked?**
The site showed a bot check ("Just a moment…", "Access denied", a CAPTCHA) or refused the visit with HTTP 401, 403, 429 or 503. It's free, and the row links to a picture of what the site showed.

**Does it accept cookie banners?**
No. It hides them with CSS and never clicks Accept, so no consent is given on your behalf.

**Can I capture a page as a PDF?**
Yes: set *Format* to PDF and pick A4 or US Letter. The PDF uses the page's screen styles, so it looks like the website rather than its print version.

# Actor input Schema

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

One web page per line. A missing https:// is added. Duplicates are captured once. Only public pages: no logins.

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

Image format of each screenshot, or a PDF of the page.

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

Capture the whole page from top to bottom, not just the first screen. Pages taller than 16,000 pixels are cut at that height and marked truncated.

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

Screen size and device the page is shown on. Phones and tablets get the mobile version of the site.

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

Capture only the first element that matches, for example #pricing or .hero. Images only, not PDF. Leave empty for the page.

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

Hide the consent pop-ups of common cookie tools (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics and others) and small fixed boxes with cookie-notice wording. Nothing is clicked or accepted.

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

Block requests to common ad and tracking networks. Pages load faster and show fewer ad slots.

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

Elements to hide before capturing, one CSS selector per line, for example a chat widget or a sticky header.

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

Ask the page for its dark theme. Only sites that support dark mode change.

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

When the page counts as ready. If it isn't ready 10 seconds after its HTML (15 for Network quiet), what has rendered is captured and the row is marked loadTimedOut.

## `delaySecs` (type: `number`):

Pause after the page is ready, for animations and late images.

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

Wait until this element is visible before capturing. If it never shows, the row fails and isn't charged.

## `scrollToLoad` (type: `boolean`):

For full-page shots and PDFs, scroll down the page first so lazy-loaded images further down appear. Slower: a run takes about twice as long.

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

How long to wait for each page's HTML. After that, the page gets up to 10 more seconds to finish loading (15 for Network quiet), then what has rendered is captured.

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

Overrides the device's screen width.

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

Overrides the device's screen height. With Full page on, it only sets the first screen.

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

1 for standard, 2 or 3 for sharp retina images (larger files). Overrides the device's density.

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

Higher is sharper and larger. PNG and PDF ignore it.

## `pdfPageSize` (type: `string`):

Paper size when the format is PDF.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "hideCookieBanners": true,
  "blockAds": true,
  "darkMode": false,
  "waitUntil": "load",
  "delaySecs": 1,
  "scrollToLoad": false,
  "timeoutSecs": 30,
  "quality": 80,
  "pdfPageSize": "A4"
}
```

# Actor output Schema

## `screenshots` (type: `string`):

No description

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

No description

## `summary` (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://en.wikipedia.org/wiki/Web_scraping"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("strawhat_studio/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://en.wikipedia.org/wiki/Web_scraping",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("strawhat_studio/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://en.wikipedia.org/wiki/Web_scraping"
  ]
}' |
apify call strawhat_studio/website-screenshot --silent --output-dataset

```

## MCP server setup

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