# Website Screenshot API - Bulk Full Page, Mobile, PDF (`bisketapis/website-screenshot-api`) Actor

Bulk website screenshot API. Send a list of URLs and get one PNG, JPEG or WebP per URL (plus optional PDF) with a direct file link. Full page or viewport, desktop or mobile, dark mode, element crop, cookie-banner hiding and ad blocking. You pay only for screenshots that succeed.

- **URL**: https://apify.com/bisketapis/website-screenshot-api.md
- **Developed by:** [Chris Lucas](https://apify.com/bisketapis) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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: bulk, full page, mobile, PDF

Send a list of URLs. Get back one PNG, JPEG or WebP per URL (and a PDF if you want one), each with a direct file link, plus one flat row per URL with the HTTP status, page title, image size, file size and load time.

You pay **$0.0008 per successful screenshot**. Failed, blocked and timed-out URLs cost nothing, and screenshots of error pages (HTTP 404, 403, 500) are saved for you but are free.

### What you get per URL

```json
{
  "url": "https://en.wikipedia.org/wiki/Screenshot",
  "finalUrl": "https://en.wikipedia.org/wiki/Screenshot",
  "status": 200,
  "title": "Screenshot - Wikipedia",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/6QD8WCc8jrRhj515D/records/shot-0002-en-wikipedia-org-ce96fea4.png",
  "screenshotKey": "shot-0002-en-wikipedia-org-ce96fea4.png",
  "pdfUrl": null,
  "format": "png",
  "width": 1280,
  "height": 800,
  "bytes": 237863,
  "loadMs": 350,
  "device": "desktop",
  "fullPage": false,
  "error": null,
  "scrapedAt": "2026-11-11T22:15:41Z"
}
```

`screenshotUrl` opens the image directly in a browser, an `<img>` tag or a download script. The files live in the run's key-value store; `screenshotKey` is the record name if you prefer the Apify API or SDK.

Every URL you send produces exactly one row, with the same fields on success and on failure. When something goes wrong, `error` says why in plain words (`timeout after 20 s`, `dns: host not found`, `selector not found`, `HTTP 404`) and `screenshotUrl` is empty unless an error page was captured.

### Input

Only `urls` is required. A run with the default input finishes in well under a minute.

```json
{
  "urls": ["https://example.com", "https://en.wikipedia.org/wiki/Screenshot"],
  "format": "png",
  "fullPage": false,
  "device": "desktop"
}
```

| Field | Default | What it does |
|---|---|---|
| `urls` | required | Pages to capture, one per line. `example.com` is read as `https://example.com`. Duplicates are captured once. Up to 5,000 per run. |
| `format` | `png` | `png`, `jpeg` or `webp`. |
| `fullPage` | `false` | Capture the whole scrollable page instead of the viewport. Cut at 20,000 px height. |
| `device` | `desktop` | `desktop` 1280x800, `laptop` 1440x900, `fullhd` 1920x1080, `tablet` 820x1180, `mobile` 390x844. Tablet and mobile use touch and a mobile user agent. |
| `width`, `height` | from device | Custom viewport, 240 to 3840 by 240 to 2160. |
| `darkMode` | `false` | Requests the dark theme (`prefers-color-scheme: dark`). |
| `selector` | none | CSS selector of one element to capture instead of the page, for example `#pricing`. |
| `waitUntil` | `load` | `load`, `domcontentloaded` (fastest) or `networkidle` (most complete). |
| `waitForSelector` | none | Wait until this element is visible before the capture. |
| `delayMs` | `0` | Fixed pause before the capture, up to 10,000 ms. |
| `scrollPage` | `false` | Scroll down and back up first so lazy-loaded images appear. |
| `timeoutSecs` | `20` | Page load timeout, 5 to 30 seconds. |
| `hideCookieBanners` | `true` | Hides common consent banners with CSS (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, Sourcepoint and about 80 more selectors). Nothing is clicked. |
| `blockAds` | `true` | Blocks requests to about 120 well-known ad, analytics and chat-widget domains. |
| `hideSelectors` | none | Your own CSS selectors to hide, for example `.newsletter-popup`. |
| `pdf` | `false` | Also save an A4 PDF of each page. The row gets a `pdfUrl`. |
| `quality` | `80` | JPEG and WebP quality, 1 to 100. |
| `deviceScaleFactor` | `1` | `2` for retina-sharp images (twice the pixels per side). |
| `maxConcurrency` | `2` | Pages in parallel, 1 to 3. |
| `maxRetries` | `1` | Extra attempts after a dropped connection or a crashed page. Timeouts are not retried. |
| `proxyConfiguration` | off | Optional proxy, for example to load a page from a specific country. |

#### Recipes

Mobile full-page WebP with a PDF copy:

```json
{ "urls": ["https://en.wikipedia.org/wiki/Screenshot"], "device": "mobile", "fullPage": true, "format": "webp", "pdf": true }
```

Crop one element in dark mode:

```json
{ "urls": ["https://en.wikipedia.org/wiki/Screenshot"], "selector": "#firstHeading", "darkMode": true }
```

Wait for a chart, then hide a chat widget:

```json
{ "urls": ["https://example.com/dashboard"], "waitForSelector": ".chart-ready", "delayMs": 500, "hideSelectors": ["#chat-widget"] }
```

### Pricing

Pay per event. No subscription, no rental fee.

| Event | Price | When |
|---|---|---|
| Screenshot | $0.0008 | Each screenshot of a page that loaded with an HTTP status below 400 |
| PDF | $0.0004 | Each PDF, only with `pdf: true` and only next to a successful screenshot |
| Actor start | $0.00005 | Once per run, per GB of memory |

| Job | Cost |
|---|---|
| 1 screenshot in its own run | $0.00085 |
| 1,000 screenshots in one run | $0.80 |
| 1,000 screenshots plus PDFs | $1.20 |
| 10,000 screenshots | $8.00 |

Not charged: invalid URLs, blocked URLs, DNS failures, timeouts, missing selectors, crashed pages, and screenshots of HTTP 4xx/5xx error pages. If you set a maximum cost per run, the actor stops starting new captures when the limit is reached.

### Use cases

- Visual checks after a deploy: capture your key pages on desktop and mobile and compare.
- Link previews and thumbnails for directories, dashboards and reports.
- SEO and competitor monitoring: keep dated captures of landing pages and pricing pages.
- Archiving pages as PNG plus PDF for compliance or client reports.
- Feeding page images to vision models.

### Safety limits

This actor only loads public web pages.

- Only `http://` and `https://` URLs. `file:`, `data:`, `javascript:`, `ftp:` and browser-internal URLs are rejected.
- Hostnames are resolved before the browser starts. Loopback, private (10.x, 172.16-31.x, 192.168.x), link-local and cloud metadata (169.254.169.254) addresses, carrier-grade NAT ranges, and the IPv6 equivalents are refused, including when a public-looking domain resolves to one of them.
- The same check runs inside the browser on every request the page makes. If a page redirects to, embeds or navigates to a private address, the capture is dropped and the row says `blocked: ...`.
- URLs with embedded credentials (`user:pass@host`) are rejected.

### FAQ

**How long are the files kept?** They are stored in the run's default key-value store, which follows your Apify plan's data retention (7 days on the free plan). Download them or copy them to a named store if you need them longer.

**Can I open `screenshotUrl` without an API token?** Yes, for accounts with the standard storage access setting. The link points to the record in the run's key-value store.

**Why is my full-page screenshot missing images?** Many sites load images only when they scroll into view. Turn on `scrollPage`, and add a `delayMs` of 500 to 1500 if needed.

**The cookie banner is still there.** Banner hiding uses a fixed CSS list and covers the common consent tools. For a custom banner, add its selector to `hideSelectors`.

**A page shows a bot check or "access denied".** Some sites refuse visits from cloud data centers. The capture is saved so you can see what happened, and it is not charged when the site answers with an HTTP error status. This actor does not try to get around bot protection.

**How do I make bulk runs faster?** Give the run more memory. Apify assigns CPU in proportion to memory: 1 GB runs 1 to 2 pages at a time, 4 GB runs 3 with a full CPU core.

**A heavy page timed out.** Large, script-heavy pages (news homepages, animated marketing sites) with `fullPage` or `scrollPage` can need more CPU than the default 1 GB run provides. Start the run with 2 to 4 GB of memory, or use `waitUntil: domcontentloaded`. Timeouts are never charged.

**Does it log in or fill forms?** No. It captures pages as an anonymous visitor.

### Limits

- Page load timeout is capped at 30 seconds. Timeouts are reported, not retried.
- With the default 1 GB of memory, full-page, scroll, PDF and scale-2 captures run one page at a time. Simple viewport captures run two at a time.
- Full-page captures are cut at 20,000 px height. WebP files are limited to 16,383 px per side by the format; taller captures are scaled down to fit.
- One set of options per run. To capture the same URL on desktop and mobile, start two runs.
- PDFs use the page's screen styles on A4 paper; very long or app-like pages can paginate awkwardly.
- Cookie banners inside cross-origin iframes or shadow DOM are not always hidden.
- Pages that need a login, a CAPTCHA or a specific region are captured as an anonymous visitor from the Apify cloud sees them.

# Actor input Schema

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

One web page per line. Only public http and https pages. A bare domain like example.com is treated as https://example.com. Duplicates are captured once.

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

File type of the screenshot.

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

Capture the whole scrollable page instead of only the visible viewport. Pages taller than 20,000 px are cut at 20,000 px.

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

Preset viewport. Tablet and mobile also send a touch device user agent so sites serve their mobile layout.

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

Overrides the width of the device preset, in CSS pixels.

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

Overrides the height of the device preset, in CSS pixels.

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

Ask the page for its dark theme (prefers-color-scheme: dark). Only changes sites that support a dark theme.

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

CSS selector of one element to capture instead of the page, for example #pricing or main article. The first match is used. If nothing matches, the row reports an error and is not charged.

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

When the page counts as loaded.

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

Wait until this CSS selector is visible before the capture, for example .chart-loaded.

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

Fixed pause after loading and before the capture. Maximum 10,000.

## `scrollPage` (type: `boolean`):

Scroll to the bottom and back before the capture so lazy-loaded images appear. Useful with Full page.

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

How long a page may take to load. Maximum 30.

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

Hide common consent banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and about 80 more) with CSS. Nothing is clicked or accepted.

## `blockAds` (type: `boolean`):

Stop requests to well-known ad, analytics and chat-widget domains. Pages load faster and screenshots are cleaner.

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

Extra CSS selectors to hide before the capture, one per line, for example .newsletter-popup or #chat-widget.

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

Save an A4 PDF of each page next to the screenshot. Billed as a separate PDF event.

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

1 to 100. Ignored for PNG.

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

2 gives retina-sharp images with twice the pixel width and height (and larger files).

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

1 to 3. Runs with less than 1 GB memory use 1; 3 needs 2 GB or more.

## `maxRetries` (type: `integer`):

Extra attempts after a timeout or dropped connection.

## `proxyConfiguration` (type: `object`):

Off by default: pages load directly from the Apify cloud. Turn on a proxy only if a site needs a specific country.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://en.wikipedia.org/wiki/Screenshot"
  ],
  "format": "png",
  "fullPage": false,
  "device": "desktop",
  "darkMode": false,
  "waitUntil": "load",
  "delayMs": 0,
  "scrollPage": false,
  "timeoutSecs": 20,
  "hideCookieBanners": true,
  "blockAds": true,
  "pdf": false,
  "quality": 80,
  "deviceScaleFactor": 1,
  "maxConcurrency": 2,
  "maxRetries": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Each row has the direct file link, size, status and timing.

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

All saved files in the run's key-value store.

## `runSummary` (type: `string`):

Counts of captured, failed, blocked and skipped URLs with a per-URL status list.

# 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",
        "https://en.wikipedia.org/wiki/Screenshot"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bisketapis/website-screenshot-api").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",
        "https://en.wikipedia.org/wiki/Screenshot",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bisketapis/website-screenshot-api").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",
    "https://en.wikipedia.org/wiki/Screenshot"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bisketapis/website-screenshot-api --silent --output-dataset

```

## MCP server setup

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

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/BXHSL4OyjT0KqerUS/builds/FFafzJhkZaDZFtiuc/openapi.json
