# Website Screenshot API: bulk full-page, mobile & PDF capture (`berryish_pillar/website-screenshot`) Actor

Turn a list of URLs into full-page or viewport screenshots (PNG/JPEG) or PDFs. Desktop, laptop, tablet and mobile in one run, cookie banners hidden, lazy images loaded, element-only capture, dark mode. Public links to every image. $3 per 1,000 screenshots; failed captures are free.

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

## Pricing

Pay per event

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 API: bulk full-page, mobile and PDF captures

Paste a list of URLs and get a **screenshot of every page**: full-page or first screen, **PNG, JPEG or PDF**, on **desktop, laptop, tablet and mobile** in the same run. Every capture gets a **direct link** you can drop into a spreadsheet, a report or your app.

**$5 per 1,000 screenshots, browser time included. Failed captures are free.** No subscriptions, no API keys.

### What can it do?

- 📸 **Bulk capture**: hundreds of URLs per run, several pages in parallel.
- 📱 **Multi-device in one run**: desktop (1280×800), desktop HD (1920×1080), laptop (1440×900), tablet (iPad) and mobile (iPhone) with real mobile user agents and touch emulation.
- 🧾 **Full page, viewport, element or PDF**: capture the whole page, the first screen, a single element (`#pricing`), or a print-ready PDF (A4/Letter).
- 🍪 **Cookie banners hidden**: OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and other consent pop-ups are hidden before the shot.
- 🖼️ **Lazy images loaded**: scrolls the page first so full-page shots aren't full of empty boxes.
- 🌙 **Dark mode**, custom CSS (hide chat widgets), custom viewport, extra delay, wait-until options.
- 🛡️ **Robust**: a slow page is still captured with whatever rendered when the timeout hits; a hard per-URL timeout stops hung pages; very long pages are cut at a sane height.
- 🔗 **Direct links**: `screenshotUrl` points to the file in the run's key-value store.

### Who uses this?

- **Agencies and SEO teams**: visual audits, client reports, before/after redesign proof.
- **Marketers and competitive intelligence**: archive competitor homepages, pricing pages and landing pages on a schedule.
- **QA and developers**: visual checks of many pages and devices after a deploy.
- **Compliance and legal**: timestamped evidence of what a page showed.
- **AI agents and automations**: give a vision model a screenshot of any page through one API call.

### How to use it

1. Add your URLs (or upload a list).
2. Pick devices, full page or not, and the format.
3. Click **Start**. The **Screenshots** tab shows a preview of every image; download the dataset or use `screenshotUrl`.

#### Input example

```json
{
  "urls": [{ "url": "https://apify.com" }, { "url": "https://books.toscrape.com" }],
  "devices": ["desktop", "mobile"],
  "fullPage": true,
  "format": "jpeg",
  "hideCookieBanners": true
}
```

#### Output example

```json
{
  "input": "https://books.toscrape.com",
  "url": "https://books.toscrape.com",
  "device": "desktop",
  "finalUrl": "https://books.toscrape.com/",
  "statusCode": 200,
  "title": "All products | Books to Scrape - Sandbox",
  "format": "jpeg",
  "fullPage": true,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/books.toscrape.com-desktop-f596fa14ae.jpg",
  "width": 1280,
  "height": 2549,
  "bytes": 263534,
  "status": "ok",
  "error": null,
  "takenAt": "2026-11-17T16:41:12Z"
}
```

### How much does it cost?

Pay per event, browser compute included:

| Event | Price |
|---|---|
| Screenshot captured (per URL per device) | $0.005 ($5 per 1,000) |

You are **not charged** for URLs that fail to load or are blocked by robots.txt. Examples: 100 URLs on desktop + mobile = 200 screenshots = **$1.00**. A daily capture of 20 competitor pages = **$0.10 a day**. Set **Maximum cost per run** in run options and the Actor stops cleanly at that amount.

### Tips and limits

- Pages behind a login, paywall or bot challenge can't be captured; you'll see that page's challenge screen or an error (and you won't be charged for errors).
- Some sites need **Network idle** or a longer delay for heavy animations.
- Full-page height is capped at 15,000 px by default (raise to 30,000 if you need it).
- Files stay in the run's key-value store for your plan's data retention period. Download them or copy them to your own storage if you need them longer.

### Is it legal? Responsible use

The Actor opens public pages like a normal browser and checks robots.txt first by default. It doesn't log in or bypass bot protection. Screenshots may contain copyrighted material or personal data shown on the page: only capture pages you're allowed to, and use the images in line with the site's terms and the law.

### FAQ

**Can I call it from my app?** Yes. Use the Apify API's run-sync endpoint, then read `screenshotUrl` from the dataset items.

**Why is the image cut?** The page was taller than *Max full-page height*. Raise it.

**Something rendered wrong?** Open an issue with the URL and settings and we'll look at it.

# Actor input Schema

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

Pages to capture. A bare domain (example.com) is opened over HTTPS.

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

One screenshot per URL per device. desktop = 1280×800, desktop-hd = 1920×1080, laptop = 1440×900, tablet = iPad 820×1180, mobile = iPhone 390×844.

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

Capture the whole scrollable page instead of just the first screen.

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

Format.

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

JPEG quality.

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

PDF paper size.

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

Hides common consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and others) with CSS before capturing.

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

Scrolls through the page first so lazy-loaded images appear in full-page shots.

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

Wait until.

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

Wait for animations or late content.

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

Optional, e.g. #pricing or main. Leave empty for the page.

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

Emulate prefers-color-scheme: dark.

## `customCss` (type: `string`):

Optional CSS injected before capture, e.g. to hide a chat widget: #intercom-container{display:none!important}

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

Optional. Only used when exactly one device is selected.

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

Optional. Only used when exactly one device is selected.

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

Very long pages are cut at this height to keep files usable.

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

If the page hasn't finished loading by then, whatever has rendered is captured.

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

Pages in parallel.

## `maxScreenshots` (type: `integer`):

Stop after this many successful captures. 0 = no limit.

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

Skip URLs that the site's robots.txt disallows. Turn off only for sites you own.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://books.toscrape.com"
    }
  ],
  "devices": [
    "desktop"
  ],
  "fullPage": true,
  "format": "png",
  "jpegQuality": 80,
  "pdfFormat": "A4",
  "hideCookieBanners": true,
  "scrollToBottom": true,
  "waitUntil": "load",
  "delayMs": 1000,
  "darkMode": false,
  "maxFullPageHeight": 15000,
  "navigationTimeoutSecs": 30,
  "maxConcurrency": 3,
  "maxScreenshots": 0,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `screenshots` (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": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://books.toscrape.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("berryish_pillar/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": [
        { "url": "https://apify.com" },
        { "url": "https://books.toscrape.com" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("berryish_pillar/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": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://books.toscrape.com"
    }
  ]
}' |
apify call berryish_pillar/website-screenshot --silent --output-dataset

```

## MCP server setup

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