# Website Screenshot Pro (`merrowick/website-screenshot-pro`) Actor

Bulk full-page PNG, JPEG or PDF captures of the URLs you supply. Honest browser, no evasion; blocked pages are reported and never charged.

- **URL**: https://apify.com/merrowick/website-screenshot-pro.md
- **Developed by:** [Merrowick Tools](https://apify.com/merrowick) (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 Pro

Capture full-page **PNG, JPEG or PDF** screenshots of a list of URLs in bulk. Each file is stored in the run's key-value store, and you get a table with a public link, HTTP status, page title and final URL for every URL.

### Use cases

- Visual archives of your own sites or competitors' public landing pages
- Thumbnails/previews for directories, link galleries and CMSs
- Before/after evidence for deployments, QA and design reviews
- PDF snapshots of public pages for reports and compliance records

### Input example

```json
{
  "urls": ["https://example.com", "https://apify.com"],
  "format": "png",
  "fullPage": true,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "waitUntil": "load",
  "delayMs": 1000
}
```

Options: `format` (`png` | `jpeg` | `pdf`), `fullPage`, viewport size, `waitUntil` (`load`, `domcontentloaded`, `networkidle`, `commit`), `delayMs`, `selector` (capture one element), `quality` (JPEG), `timeoutSecs`, `maxConcurrency` (1–8).

### Output example

```json
{
  "url": "https://example.com",
  "status": "ok",
  "finalUrl": "https://example.com/",
  "title": "Example Domain",
  "fileKey": "0001-example.com.png",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/0001-example.com.png",
  "httpStatus": 200,
  "error": null
}
```

`status` is `ok`, `blocked` or `failed`.

### Pricing

Pay per event: **$0.004 per successful screenshot** (US$4 per 1,000). No start fee. Blocked, failed or invalid URLs are **not charged**. Standard Apify platform usage applies according to your plan.

### Respecting websites

This Actor visits **only the URLs you provide** and never follows links. It uses a plain, honest browser user agent with no proxies, stealth plugins, fingerprint spoofing or CAPTCHA solving. If a site answers 401/403/429 or shows a bot-challenge page, the URL is marked `blocked`, nothing is charged, and the Actor moves on. Please capture only pages you're allowed to access and follow each site's terms.

### Limits

- Pages behind logins, paywalls or bot protection can't be captured.
- Very long pages may be cut off by browser limits on image size (~16,000 px); use PDF for those.
- PDF output is always the full page; `selector` applies to PNG/JPEG only.
- Default per-URL timeout is 45 s.

### Use with AI agents (MCP)

This Actor works as a tool in any MCP client (Claude, Cursor, VS Code, LangGraph, etc.) through Apify's hosted MCP server.

Add it to your MCP client config (OAuth sign-in opens on first use):

```json
{
  "mcpServers": {
    "website-screenshot-pro": { "url": "https://mcp.apify.com?tools=merrowick/website-screenshot-pro" }
  }
}
```

Or with a token header: `"headers": { "Authorization": "Bearer <APIFY_TOKEN>" }`. The CLI can write the config for you: `apify mcp install cursor`.

The tool appears as `merrowick--website-screenshot-pro`. Only `urls` is required. Give the agent the `screenshotUrl` to download or show the image.

Example tool-call input:

```json
{ "urls": ["https://example.com"], "format": "png", "fullPage": true }
```

Example output item (one per input):

```json
{
  "url": "https://example.com",
  "status": "ok",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/0001-example.com.png?signature=...",
  "fileKey": "0001-example.com.png",
  "httpStatus": 200,
  "title": "Example Domain",
  "finalUrl": "https://example.com/",
  "error": null
}
```

The tool returns the run status and dataset ID; read the items with `get-dataset-items` (added automatically by the MCP server). Failed and blocked items are never charged.

### Call it from code

API (sync, returns dataset items):

```bash
curl -X POST "https://api.apify.com/v2/acts/merrowick~website-screenshot-pro/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{ "urls": ["https://example.com"], "format": "png", "fullPage": true }'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("merrowick/website-screenshot-pro").call(run_input={ "urls": ["https://example.com"], "format": "png", "fullPage": True })
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

JavaScript (`npm i apify-client`):

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('merrowick/website-screenshot-pro').call({ "urls": ["https://example.com"], "format": "png", "fullPage": true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

# Changelog

This Actor's version history is a separate document: https://apify.com/merrowick/website-screenshot-pro/changelog.md

# Actor input Schema

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

Required. List of full http(s) page URLs to screenshot, e.g. \["https://example.com"]. Only these exact URLs are visited; links are never followed. One result item per URL.

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

Output file type. 'png' (default, lossless), 'jpeg' (smaller files, see quality) or 'pdf' (printable document, always full page).

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

true (default): capture the whole scrollable page. false: capture only the visible viewport (viewportWidth x viewportHeight).

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

Browser window width in pixels. 1280 = desktop (default), 390 = mobile.

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

Browser window height in pixels. Defines the capture size when fullPage is false.

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

When to take the shot: 'load' (default), 'domcontentloaded' (faster), 'networkidle' (wait for heavy JS apps), 'commit' (fastest).

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

Extra wait in milliseconds after the page loads, for animations or lazy content. Default 0.

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

Optional CSS selector, e.g. '#main' or '.pricing'. If set, only the first visible matching element is captured (PNG/JPEG only). Leave empty for the whole page.

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

JPEG quality 1-100 (default 80). Ignored for PNG and PDF.

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

Maximum seconds spent on one URL before it is marked failed (not charged). Default 45.

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

How many pages to capture in parallel (1-8, default 4).

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://apify.com"
  ],
  "format": "png",
  "fullPage": true,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "waitUntil": "load",
  "delayMs": 0,
  "selector": "main",
  "quality": 80,
  "timeoutSecs": 45,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

One item per input URL: status (ok/blocked/failed), screenshotUrl download link, title, httpStatus, finalUrl, error.

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

Key-value store holding the PNG/JPEG/PDF files; keys match each item's fileKey.

# 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://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("merrowick/website-screenshot-pro").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://example.com"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,merrowick/website-screenshot-pro"
        }
    }
}
```

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/9VyeevPkqoad3Pw5T/builds/yq5WWE8okFyVoYq2C/openapi.json
