# Website Screenshot - Bulk Full Page Screenshots & PDF (`maxqim/website-screenshot`) Actor

Take screenshots of many URLs at once: full page or viewport, desktop / laptop / tablet / mobile, PNG, JPEG or PDF, dark mode, hide cookie banners. Each result has a direct image link. Pay only for screenshots taken.

- **URL**: https://apify.com/maxqim/website-screenshot.md
- **Developed by:** [miao qi](https://apify.com/maxqim) (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

$2.00 / 1,000 screenshot takens

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: Bulk Full Page Screenshots & PDF

Capture **screenshots of hundreds of web pages in one run**. Full page or visible area, desktop / laptop / tablet / mobile, PNG, JPEG or PDF. Every result comes with a **direct link to the image**, ready for Google Sheets, Airtable, Notion, Slack or your app.

- **Bulk**: paste a list of URLs (or upload a file), get one screenshot per URL per device
- **Full page**: scrolls the page first so lazy-loaded images appear
- **Devices**: Desktop 1920x1080, Laptop 1366x768, Tablet 820x1180, Mobile 390x844 (iPhone), optional retina (2x)
- **Clean shots**: hides common cookie / consent banners (CSS only), plus any elements you list (chat widgets, pop-ups)
- **Dark mode**, extra delay, wait for network idle
- **PNG, JPEG or PDF (A4)**
- **Fair pricing**: you pay only for screenshots that were taken; failed pages are listed with the error and are free

### Output

| Field | Example |
| --- | --- |
| `screenshotUrl` | Direct public link to the image / PDF |
| `url`, `finalUrl`, `statusCode`, `title` | https://apify.com, 200, "Apify: Full-stack web scraping..." |
| `device`, `width`, `format`, `fullPage`, `sizeKb` | "mobile", 390, "jpeg", true, 512.3 |
| `key` | File name in the run's key-value store |
| `error` | Why a page could not be captured (not charged) |

The dataset table shows the screenshots as thumbnails.

### Use cases

- **Website monitoring and archiving**: daily snapshots of your site, competitors' pricing pages or landing pages
- **SEO and agencies**: before/after shots for client reports, mobile vs desktop checks
- **QA**: visual check of many pages after a deploy
- **Lead lists and directories**: add a website thumbnail to every company in your list
- **Proof and compliance**: PDF copies of pages with the capture time

### Input example

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

### Notes

- Pages that need a login, or sites that block automated browsers, are not captured (no CAPTCHA solving).
- Please capture only pages you are allowed to.

### Pricing

Pay per screenshot taken. Failed pages are free.

# Actor input Schema

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

Pages to capture. Add as many as you like.

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

One screenshot per URL per device.

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

Capture the whole scrollable page instead of only the visible area.

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

Output file type.

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

Only for JPEG.

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

Hides common cookie / consent pop-ups (OneTrust, Cookiebot, Usercentrics, Didomi, ...) with CSS.

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

Extra elements to hide, e.g. ".chat-widget", "#newsletter-popup".

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

Ask the page for its dark color scheme.

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

When the page counts as ready.

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

Wait this long before capturing, e.g. for animations.

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

2 = retina-sharp images (4x file size).

## `pageTimeoutSecs` (type: `integer`):

Give up on a page after this long.

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

Pages captured at the same time.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://www.wikipedia.org"
    }
  ],
  "devices": [
    "desktop"
  ],
  "fullPage": false,
  "format": "png",
  "jpegQuality": 80,
  "hideCookieBanners": true,
  "darkMode": false,
  "waitUntil": "load",
  "delayMs": 0,
  "deviceScaleFactor": 1,
  "pageTimeoutSecs": 45,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

One item per URL with a link to its screenshot image.

# 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://www.wikipedia.org"
        }
    ]
};

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

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

```

## MCP server setup

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