# Screenshot Pro: Website Screenshot and PDF (`jefrimaruli/screenshot-pro`) Actor

Full-page website screenshots that actually load lazy images. PNG, JPEG or PDF for desktop, tablet and mobile in one run, with cookie banners removed.

- **URL**: https://apify.com/jefrimaruli/screenshot-pro.md
- **Developed by:** [Jefri Maruli](https://apify.com/jefrimaruli) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Screenshot Pro do?

Screenshot Pro captures screenshots of any public website. Give it a list of URLs and get back full-page or element screenshots as **PNG, JPEG or PDF**, for desktop, tablet and mobile in a single run.

Use it for:

- Visual monitoring and archiving of competitor pages, landing pages and pricing pages
- Thumbnails and previews for directories, link previews and dashboards
- QA checks of responsive layouts across devices
- Compliance and evidence captures (ads, claims, published content)
- Feeding page images to AI and vision models

### Why Screenshot Pro?

- **Lazy-loaded images actually load.** The page is scrolled from top to bottom and every image is awaited before capture, so full-page shots don't come back with grey boxes.
- **Cookie banners and chat bubbles hidden** (OneTrust, Cookiebot, Didomi, Usercentrics, Intercom, HubSpot, Tawk and more).
- **Desktop, tablet and mobile in one run.** One screenshot per URL per device.
- **PNG, JPEG or PDF.** PDF keeps backgrounds and uses the screen layout, not the print layout.
- **Element screenshots** via a CSS selector, **dark mode**, **wait for selector** and **extra delay** for pages that load late.
- **Batch friendly.** Hundreds of URLs, captured in parallel. A broken URL is reported in the results and doesn't stop the run.

### How much does it cost?

$6 per 1,000 screenshots, with no memory or compute fees on top. The only other charge is a start fee of $0.00005 per GB of memory, which is $0.0002 per run at the default 4 GB. Failed pages are free. Set a maximum cost per run and the Actor stops when it is reached.

### Input

| Field | Description | Default |
|---|---|---|
| `urls` | Pages to capture. `example.com` is treated as `https://example.com`. | required |
| `devices` | Any of `desktop` (1920x1080), `tablet` (820x1180), `mobile` (390x844) | `["desktop"]` |
| `format` | `png`, `jpeg` or `pdf` | `png` |
| `fullPage` | Whole scrollable page instead of the visible viewport | `true` |
| `selector` | Capture only the first element matching this CSS selector | |
| `hideCookieBanners` | Hide consent popups and chat widgets | `true` |
| `darkMode` | Request the site's dark color scheme | `false` |
| `waitForSelector` | Wait for this element before capturing | |
| `delayMs` | Extra wait after load, max 30000 | `0` |
| `jpegQuality` | 1 to 100 | `80` |
| `timeoutSecs` | Per-page timeout | `60` |
| `maxConcurrency` | Pages captured in parallel, 1 to 10 | `3` |

Example:

```json
{
    "urls": ["https://apify.com", "example.com"],
    "devices": ["desktop", "mobile"],
    "format": "jpeg"
}
```

### Output

Each screenshot is saved in the run's key-value store, and one row per screenshot goes to the dataset:

```json
{
    "url": "https://apify.com/",
    "finalUrl": "https://apify.com/",
    "title": "Apify: Full-stack web scraping and data extraction platform",
    "device": "mobile",
    "format": "jpeg",
    "key": "apify.com_mobile_3f2a9c1b7d4e.jpg",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/apify.com_mobile_3f2a9c1b7d4e.jpg",
    "sizeBytes": 412345,
    "capturedAt": "2026-10-03T12:00:00.000Z"
}
```

Failed pages produce a row with an `error` field instead.

### Limits

- Only public `http` and `https` pages. Pages behind a login are not supported.
- Infinite-scroll feeds are scrolled for a limited distance, then captured.
- Some sites block automated browsers. Those pages come back with an `error`, and you are not charged.

### FAQ

#### Why do other screenshot tools return grey boxes instead of images?

Many sites only load images when you scroll to them. Screenshot Pro scrolls the whole page and waits for every image before capturing, so full-page shots come back complete.

#### Can I capture a page behind a login?

No. Screenshot Pro only captures public pages.

#### Can I capture just one part of the page?

Yes. Put a CSS selector such as `#pricing` or `.hero` in "Element selector" and only that element is captured.

#### How do I take screenshots on a schedule?

Create a Schedule in Apify Console (for example daily at 09:00) and point it at a saved task with your URLs. Each run stores new screenshots, which works for visual monitoring and archiving.

#### How do I use it from code?

Call it through the Apify API or the `apify-client` package for JavaScript or Python, then download each file from `screenshotUrl` in the dataset.

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('jefrimaruli/screenshot-pro').call({
    urls: ['https://example.com'],
    devices: ['desktop', 'mobile'],
    format: 'png',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => i.screenshotUrl));
```

#### What happens if a page fails?

The dataset gets a row with an `error` field for that page, the rest of the run continues, and you are not charged for it.

# Actor input Schema

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

Web pages to capture. http and https only; a missing scheme defaults to https.

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

One screenshot per URL per device. Desktop 1920x1080, tablet 820x1180, mobile 390x844.

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

PNG for sharp UI, JPEG for small files, PDF for printable full pages.

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

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

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

Optional CSS selector. Captures only the first matching element (PNG and JPEG only).

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

Hides common consent popups (OneTrust, Cookiebot, Didomi and others) and chat bubbles before capturing.

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

Ask the site for its dark color scheme (prefers-color-scheme: dark).

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

Optional CSS selector to wait for before capturing, for pages that load content late.

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

Extra wait after the page loads, for animations. Max 30000.

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

1 to 100. Only used for JPEG.

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

Give up on a page after this long.

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

How many pages to capture at once. Higher is faster but needs more memory.

## Actor input object example

```json
{
  "urls": [
    "https://www.bbc.com",
    "https://apify.com"
  ],
  "devices": [
    "desktop",
    "mobile"
  ],
  "format": "png",
  "fullPage": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "delayMs": 0,
  "jpegQuality": 80,
  "timeoutSecs": 60,
  "maxConcurrency": 3
}
```

# 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://www.bbc.com",
        "https://apify.com"
    ],
    "devices": [
        "desktop",
        "mobile"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jefrimaruli/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://www.bbc.com",
        "https://apify.com",
    ],
    "devices": [
        "desktop",
        "mobile",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("jefrimaruli/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://www.bbc.com",
    "https://apify.com"
  ],
  "devices": [
    "desktop",
    "mobile"
  ]
}' |
apify call jefrimaruli/screenshot-pro --silent --output-dataset

```

## MCP server setup

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