# Website Screenshot API – Full Page, Mobile, Element & PDF (`datiaperti-it/website-screenshot`) Actor

Take screenshots of any list of web pages: full page or viewport, desktop, laptop, tablet or mobile, a single element by CSS selector, PNG or JPEG, optional PDF, dark mode, cookie banners hidden, lazy-loaded images included. Pay only for successful screenshots.

- **URL**: https://apify.com/datiaperti-it/website-screenshot.md
- **Developed by:** [Dati Aperti IT](https://apify.com/datiaperti-it) (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

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

## Website Screenshot API – Full Page, Mobile, Element & PDF

Take **screenshots of any list of web pages** with a real Chrome browser: the visible part or the
**full page**, on **desktop, laptop, tablet or mobile**, or **just one element** by CSS selector. You get
PNG or JPEG files, an optional **PDF**, and a table with a link to every image.

- **Clean shots:** common **cookie and consent banners are hidden**, and **lazy-loaded images** can be
  loaded by scrolling first.
- **Real devices:** mobile and tablet are emulated with touch and high-resolution screens.
  **Dark mode** is available when the site supports it.
- **Bulk:** up to 5,000 pages per run, several in parallel, duplicates removed.
- **Pay only for successful screenshots.** Pages that fail are listed in `FAILED_URLS` and cost nothing.

### Who uses it

- **Marketers and agencies:** archive competitors' landing pages, monitor ads and pricing pages, build
  reports.
- **Developers and QA:** visual checks of pages on desktop and mobile.
- **SEO teams:** proof of how pages looked on a given day.
- **AI agents:** "take a full-page mobile screenshot of this page" through the Apify MCP server.

### Input

| Field | What it does |
|---|---|
| Web pages | One address per line. `example.com` works too. |
| Device | Desktop 1920×1080, laptop 1366×768, tablet 768×1024, mobile 390×844, or a custom size. |
| Full page | The whole page, top to bottom. |
| Only this element | A CSS selector, e.g. `#pricing`. |
| Image format | PNG (sharp) or JPEG (smaller), with a JPEG quality setting. |
| Also save a PDF | An A4 PDF of each page. |
| Hide cookie banners | On by default. |
| Load lazy images | Scrolls the page before capturing. |
| Dark mode | Asks the page for its dark theme. |
| Wait until, extra wait, timeout | Control when the page counts as ready. |
| Pages in parallel | 1–10. Default 3. |

### Output

One row per page in the dataset, with the image link. The files themselves are in the run's key-value
store.

```json
{
  "url": "https://apify.com",
  "finalUrl": "https://apify.com/",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "statusCode": 200,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/00000-apify.com-1a2b3c.png",
  "screenshotKey": "00000-apify.com-1a2b3c.png",
  "format": "png",
  "viewport": {"width": 1920, "height": 1080, "deviceScaleFactor": 1, "mobile": false},
  "fullPage": true,
  "selector": null,
  "bytes": 845312,
  "takenAt": "2026-11-12T10:30:00+00:00",
  "pdfUrl": "https://api.apify.com/v2/key-value-stores/.../records/00000-apify.com-1a2b3c.pdf"
}
```

### How much does it cost?

You pay **per successful screenshot**. A PDF, if you ask for one, is included in the same price. Failed
pages are free.

### FAQ

**Can it screenshot pages behind a login?** No. It captures public pages, as any visitor would see them.

**Some banners are still visible.** The Actor hides the most common cookie tools. If a site uses
another one, try "Only this element", or tell us in the Issues tab.

**Images are missing at the bottom of the page.** Turn on "Load lazy images", and maybe add a few
seconds of extra wait.

**Can I use it on a schedule?** Yes. Schedule the Actor or a saved task, and connect it to Slack, Google
Drive, Make, Zapier or n8n.

**Can I suggest a feature?** Yes, open an issue in the Issues tab: we usually answer within a few days.

Please capture only pages you are allowed to view, and respect the sites' terms and copyright when you
reuse the images.

# Actor input Schema

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

Addresses of the pages to capture, one per line. 'example.com' works too.

## `viewport` (type: `string`):

Screen size to emulate.

## `width` (type: `integer`):

Used only with 'Custom size'.

## `height` (type: `integer`):

Used only with 'Custom size'.

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

Capture the whole page from top to bottom, not just the visible part.

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

Optional. Capture only one element, e.g. '#pricing' or '.chart'.

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

PNG is sharper, JPEG makes smaller files.

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

1–100, only for JPEG.

## `pdf` (type: `boolean`):

Save an A4 PDF of each page as well.

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

Hide common cookie and consent pop-ups so they don't cover the page.

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

Scroll through the page before capturing, so images that load on scroll appear. Recommended with 'Full page'.

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

Ask the page for its dark theme, if it has one.

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

When the page counts as loaded.

## `delaySecs` (type: `integer`):

Wait this long after loading, e.g. for animations.

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

Give up on a page after this many seconds. Failed pages are not charged.

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

More is faster but needs more memory: about 1 GB for 2 pages.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_page"
  ],
  "viewport": "desktop",
  "fullPage": false,
  "format": "png",
  "quality": 80,
  "pdf": false,
  "hideCookieBanners": true,
  "scrollToBottom": false,
  "darkMode": false,
  "waitUntil": "load",
  "delaySecs": 0,
  "timeoutSecs": 45,
  "maxConcurrency": 2
}
```

# Actor output Schema

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

All results of the run, one item per record.

# 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_page"
    ]
};

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

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

```

## MCP server setup

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