# Website Screenshot API — Full Page, Mobile, Element & PDF (`actor-forge/website-screenshot`) Actor

Bulk website screenshots and PDFs: viewport, full-page or element, as PNG, JPEG or PDF, on desktop, tablet or mobile. Hides cookie banners, supports dark mode, returns direct file links. $1 per 1,000 screenshots, $2 per 1,000 full-page/PDF.

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

## Pricing

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

Bulk website screenshots and PDFs: viewport, full-page or element, as PNG, JPEG or PDF, on desktop, tablet or mobile. Hides cookie banners, supports dark mode, returns direct file links. $1 per 1,000 screenshots, $2 per 1,000 full-page/PDF.

Take **website screenshots and PDFs at scale** with one API call. Give it a list of URLs. You get back a viewport, **full-page** or single-element capture of each page as **PNG, JPEG or PDF**, rendered on desktop, laptop, tablet or mobile (real iPhone/iPad viewports and user agents), with **cookie banners hidden** and optional dark mode. Every capture is saved to storage and returned as a **direct download link** that works without an API token, so it's easy to hand to AI agents, Zapier/Make, or your own app. Use it for visual monitoring and archiving, website thumbnails and link previews, SEO and competitor audits, QA and regression snapshots, compliance evidence, or as a 'look at this page' tool for AI agents. Pages that fail to load (blocked, 4xx/5xx, nothing rendered) are reported with the reason and **never charged**.

### What data does it return?

Every run outputs clean, schema-validated rows like these:

| url | status | captureType | format | width | height | fileUrl | error |
| --- | --- | --- | --- | --- | --- | --- | --- |
| https://en.wikipedia.org/wiki/Web_scraping | ok | fullPage | png | 390 | 3461 | https://api.apify.com/v2/key-value-stores/…/records/0002-en-wikipedia-org-wiki-Web-scraping.png?signature=… |  |
| https://github.com | ok | viewport | png | 1920 | 1080 | https://api.apify.com/v2/key-value-stores/…/records/0001-github-com.png?signature=… |  |
| https://www.nytimes.com | error | viewport | png |  |  |  | HTTP 403 (not charged) |

### How much does it cost?

Transparent pay-per-event pricing — you only pay for what you get, and the
actor **always respects your run budget**: set a maximum total charge and it
stops cleanly at the cap instead of overrunning.

| Event | Price | Charged | Worked example |
| --- | --- | --- | --- |
| `screenshot` | $0.001 | per viewport or element screenshot saved | 1,000 homepage thumbnails = $1.00 |
| `full-page-or-pdf` | $0.002 | per full-page screenshot or PDF saved | 500 full-page captures = $1.00; 100 PDFs = $0.20 |
| `apify-actor-start` | $0.00005 | per run per GB of memory (platform start fee) | One run at 2 GB = $0.0001 |

### Input options

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `urls` | array | yes | — | Web pages to capture (up to 5,000 per run). Bare domains like example.com get https:// added. |
| `format` | string | no | `"png"` | PNG (lossless), JPEG (smaller files) or PDF (A4, backgrounds printed). |
| `fullPage` | boolean | no | `false` | Capture the whole scrolling page instead of just the visible viewport. Full-page captures are billed at the full-page rate. |
| `device` | string | no | `"desktop"` | Viewport preset: desktop 1920×1080, laptop 1366×768, tablet (iPad) 820×1180 @2x, mobile (iPhone) 390×844 @3x with a mobile user agent. |
| `width` | integer | no | — | Overrides the device preset width. |
| `height` | integer | no | — | Overrides the device preset height. |
| `selector` | string | no | — | Capture only the first element matching this CSS selector, e.g. 'header' or '#pricing'. Billed as a screenshot (ignored for PDF). |
| `waitUntil` | string | no | `"load"` | When the page counts as loaded. 'networkidle' is best for heavy single-page apps but slower. |
| `delayMs` | integer | no | `1000` | Wait this long after loading before capturing (lets animations and lazy content settle). |
| `hideCookieBanners` | boolean | no | `true` | Hide common cookie-consent popups (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast and more) before capturing. |
| `darkMode` | boolean | no | `false` | Render with prefers-color-scheme: dark. |
| `jpegQuality` | integer | no | `80` | 10–100, JPEG only. |

### Limits & honest notes

- Full-page captures are capped at 16,000 device pixels tall (Chrome's practical rasterisation limit): 16,000 CSS px on desktop/laptop, 8,000 on tablet/mobile (2×). Longer pages are captured from the top down to that height.
- Full-page mobile/tablet captures render at 2× (not 3×) to stay within that limit. Viewport captures use the device's native scale.
- Sites that block automated browsers (e.g. some news paywalls returning HTTP 403) can't be captured. They come back as error rows and are not charged.
- Video and audio are not loaded (they never appear in a still image), which makes captures faster and leaner.
- Cookie-banner hiding covers the major consent platforms (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, TrustArc and more). Custom in-house banners may still appear.
- For security, internal and private addresses (localhost, 10.x, 192.168.x, cloud metadata endpoints) are refused.
- Download links are signed and work without an API token for as long as the run's storage is retained (per your Apify plan).
- Respects your run budget: set a maximum total charge and the actor stops cleanly at the cap.

### Related ActorForge actors

- [Website Change Monitor](https://apify.com/actor-forge/website-change-monitor)
- [Website to Markdown](https://apify.com/actor-forge/website-to-markdown)
- [Image Converter & Compressor](https://apify.com/actor-forge/image-converter) — compress or convert the screenshots
- [SEO Audit Crawler](https://apify.com/actor-forge/seo-audit)

### Changelog

- **2026-10-18** — Initial release: PNG/JPEG/PDF, viewport/full-page/element, 4 device presets, cookie-banner hiding, dark mode, signed download links, SSRF protection.

***

*Built and maintained by **ActorForge**. Reliability first: every actor in the
portfolio is monitored by an automated nightly self-test, and breakages are
typically fixed the same day.*

# Actor input Schema

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

Web pages to capture (up to 5,000 per run). Bare domains like example.com get https:// added.

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

PNG (lossless), JPEG (smaller files) or PDF (A4, backgrounds printed).

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

Capture the whole scrolling page instead of just the visible viewport. Full-page captures are billed at the full-page rate.

## `device` (type: `string`):

Viewport preset: desktop 1920×1080, laptop 1366×768, tablet (iPad) 820×1180 @2x, mobile (iPhone) 390×844 @3x with a mobile user agent.

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

Overrides the device preset width.

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

Overrides the device preset height.

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

Capture only the first element matching this CSS selector, e.g. 'header' or '#pricing'. Billed as a screenshot (ignored for PDF).

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

When the page counts as loaded. 'networkidle' is best for heavy single-page apps but slower.

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

Wait this long after loading before capturing (lets animations and lazy content settle).

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

Hide common cookie-consent popups (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast and more) before capturing.

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

Render with prefers-color-scheme: dark.

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

10–100, JPEG only.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "format": "png",
  "fullPage": false,
  "device": "desktop",
  "waitUntil": "load",
  "delayMs": 1000,
  "hideCookieBanners": true,
  "darkMode": false,
  "jpegQuality": 80
}
```

# Actor output Schema

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

One row per URL with a direct link to the saved screenshot or PDF.

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

All saved screenshots and PDFs.

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

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

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

```

## MCP server setup

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