# Website Screenshot API: Bulk, Full Page, Mobile, PDF, AI Agents (`neocraft/website-screenshot-pro`) Actor

Why pay $0.008 per screenshot? Cookie banners removed, dead URLs pre-checked before any browser starts, first 20 failures free, platform usage included. Bulk full-page, mobile, element or URL to PDF (PNG/JPEG/WebP/PDF). One API call gives your AI agent eyes.

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

## Pricing

from $8.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 — bulk, full page, mobile, URL to PDF, cookie banners removed

**Why pay $0.008 when free screenshot tools exist?** Because the price is the whole bill: cookie banners are removed
(hidden or rejected, never accepted unless you ask), dead URLs are detected **before** a browser starts so they waste
no compute, failed URLs are free (first 20 per run), platform usage is included, and every URL gets a clear result —
reliably, for 1 or 2,000 URLs.

- **Exact framing:** full page (capped by `maxHeight`), visible screen only (`captureMode: viewport`), one element or a
  fixed rectangle (`clip`), 9 device presets or a custom viewport, mobile up to @3x.
- **PNG, JPEG, WebP or PDF** (A4/Letter, margins, print CSS) at the same price.
- **Give your AI agent eyes:** one synchronous API call returns a public image URL that a vision model can open (see
  below).

Capture **reliable screenshots and PDFs of any list of web pages**: desktop, laptop, tablet or mobile, full page or
visible screen only, one element or a rectangle, PNG / JPEG / WebP / PDF. Lazy-loaded images are loaded, sticky headers
are shown once at the top, cookie banners are **hidden or rejected** (accept only if you ask). Every URL gets a clear
result, **successful or not**, and you only pay for screenshots that were actually saved.

Built for people, scripts and **AI agents** (Apify MCP / API): stable JSON output, documented error codes, no surprises.

**In short:** a website screenshot API and URL-to-PDF converter on Apify. Paste a list of URLs (bulk, up to 2,000
captures per run), pick devices, get one PNG/JPEG/WebP/PDF file and one JSON row per URL. **$0.008 per saved
screenshot, platform usage included; failed URLs free (first 20 per run).**

### Use cases

- **Website monitoring and archiving:** schedule a weekly full-page capture of your pages (or competitors' public
  pages) and keep a visual history; combine with Apify Schedules and integrations (Make, Zapier, n8n, Slack).
- **Responsive design QA:** the same URL on desktop, laptop, tablet and mobile in one run, with lazy images loaded and
  sticky headers shown once.
- **URL to PDF:** printable A4/Letter PDFs of articles, invoice pages, documentation or legal pages, with screen or
  print CSS.
- **Thumbnails and link previews:** above-the-fold JPEG/WebP thumbnails of a list of sites, or a 1200x630 social
  preview rectangle.
- **Clean marketing and sales visuals:** cookie banners hidden (or rejected), ads and chat bubbles removed, dark mode,
  retina.
- **AI agents and automations:** an agent sends URLs, receives `screenshotUrl` links and stable error codes it can act on.
- **Competitor pricing pages, every Monday:** a saved task with your competitors' pricing pages, scheduled weekly,
  gives a dated, cookie-banner-free full-page archive of their offers (see the recipe below).

### Ready-made tasks

Start from a pre-configured task (open it, replace the URLs, press Start):

| Task | What it does |
|---|---|
| **Full-page desktop + mobile screenshots** | Each URL captured full page on `desktop` (1920 px) and `mobile` (390 px @3x), PNG. |
| **URL to PDF (A4)** | Each URL saved as an A4 PDF with backgrounds, 10 mm margins, up to 20 pages. |
| **Cookie-banner-free screenshots** | Cookie banners hidden without giving consent, ads, chat widgets and fixed bars removed. |

You can also save your own settings with **Save as a new task** in Apify Console and run them on a schedule.

### Why this one

- **All-inclusive price per screenshot.** No platform-usage surcharge on top: $0.008 per saved screenshot, whatever the
  device or capture mode.
- **Failures are listed and free** (up to 20 per run, see Pricing). Each failed URL has an error code and a plain
  explanation: DNS error, timeout, HTTP 404, "site refuses automated captures"…
- **Dead URLs are found before any browser starts.** Every URL is first checked in parallel with a light HTTP
  request (10 s to connect, 20 s for the first response byte). Unreachable URLs (unknown domain, refused or
  timed-out connection, invalid HTTPS certificate, private address) are reported at once and never opened in a
  browser; if no URL is reachable, the browser is never started. Slow but alive sites pass.
- **Short timeouts, no endless runs.** 30 s per page by default (max 90 s), no hidden retry loops, the run stops by
  itself after 5 browser failures in a row (or after 5 timeouts when they outnumber successful screenshots), and a
  host that failed 3 times is skipped for the rest of the run.
- **Full page that really is full:** auto-scroll to trigger lazy images, then back to the top; fixed headers appear once
  at the top instead of in the middle of the image; bottom bars and chat bubbles removed.
- **Cookie banners:** `hide` (default, nothing clicked, no consent given), `reject` (clicks the banner's own
  "Reject all"), `accept`, or `none`. Works with OneTrust, Didomi, Cookiebot, Usercentrics, Axeptio, Quantcast,
  CookieYes, Complianz, iubenda, Sourcepoint, TrustArc, consentmanager and more, plus a generic detector.
- **Emoji and every script render correctly** (colour emoji, Chinese, Japanese, Korean, Arabic, Hebrew, Thai,
  Devanagari fonts included).
- **Safe by design:** private/internal network addresses are refused, every request of the browser goes through a
  network guard, per-page request and size limits.

### Give your AI agent eyes

An agent (Claude, GPT, an n8n/Make flow…) often needs to *see* a page: check a layout, read a chart, compare a design.
One synchronous call captures the page and returns the dataset row; `screenshotUrl` is a direct, public link to the
image that a vision model can open.

```bash
curl -s -X POST "https://api.apify.com/v2/acts/neocraft~website-screenshot-pro/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com"],"captureMode":"viewport","format":"jpeg","quality":70,"devices":["laptop"]}' \
  | jq -r '.[0].screenshotUrl'
```

- Above-the-fold JPEG (`viewport`, quality 70) keeps images small for vision models; use `fullPage` + `maxHeight`
  when the agent must read the whole page.
- **MCP:** add `https://mcp.apify.com/?actors=neocraft/website-screenshot-pro` to Claude, Cursor or any MCP client to
  expose the Actor as a tool.
- Failures come back as rows with a stable `errorCode` (`DNS_ERROR`, `TIMEOUT`, `BLOCKED_BY_SITE`…), so the agent
  can decide what to do instead of hanging.

### Recipe: competitor pricing pages, every Monday

1. Create a task with your competitors' pricing pages:
   ```json
   { "urls": ["https://competitor-a.com/pricing", "https://competitor-b.com/pricing"],
     "devices": ["desktop"], "captureMode": "fullPage", "cookieBanners": "hide", "format": "png" }
   ```
2. Console > **Schedules** > *Create new* > every Monday 08:00 > add the task.
3. Console > the task > **Integrations**: send the results to Slack, Google Drive, Make, Zapier or n8n (or a webhook
   on *Run succeeded* that reads the dataset), so each week's images land where your team looks.

20 pages a week ≈ 87 captures a month ≈ **$0.70/month**. Run storage is kept only for your Apify plan's data
retention period: forward the files (step 3) if you want a long archive. This Actor captures; it does not compare
images between runs.

### Quick start

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

This produces 4 screenshots (2 URLs × 2 devices) and 4 dataset items.

#### More examples

Above-the-fold JPEG thumbnails of a list, rejecting cookie banners:

```json
{ "urls": ["https://www.bbc.com", "https://www.lemonde.fr"], "captureMode": "viewport",
  "format": "jpeg", "quality": 70, "cookieBanners": "reject", "devices": ["laptop"] }
```

Social preview image (1200×630) of a page:

```json
{ "urls": ["https://example.com"], "captureMode": "clip", "clip": {"x": 0, "y": 0, "width": 1200, "height": 630} }
```

One element only:

```json
{ "urls": ["https://example.com"], "captureMode": "element", "elementSelector": "h1" }
```

A4 PDF with the site's print stylesheet:

```json
{ "urls": ["https://example.com"], "format": "pdf", "pdfPageFormat": "A4", "pdfMediaType": "print", "pdfMarginMm": 15 }
```

Dark mode, retina, Japanese locale and time zone:

```json
{ "urls": ["https://example.com"], "devices": ["desktop-hd"], "colorScheme": "dark", "locale": "ja-JP",
  "timezoneId": "Asia/Tokyo" }
```

Call it from code (synchronous run, returns the dataset items):

```bash
curl -X POST "https://api.apify.com/v2/acts/<username>~website-screenshot-pro/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"urls":["https://example.com"]}'
```

### Input

| Field | Default | What it does |
|---|---|---|
| `urls` | — | Pages to capture (max 2000 captures per run = URLs × devices). `https://` added if missing, duplicates ignored. |
| `devices` | `["desktop"]` | `desktop` 1920×1080, `desktop-hd` @2x, `laptop` 1440×900, `laptop-small` 1366×768, `tablet` 820×1180 @2x, `tablet-landscape`, `mobile` 390×844 @3x, `mobile-small` 375×667, `mobile-android` 412×915, `custom` (`viewportWidth`, `viewportHeight`, `deviceScaleFactor`, `isMobile`). |
| `format` | `png` | `png`, `jpeg`, `webp` (with `quality`), `pdf`. |
| `captureMode` | `fullPage` | `fullPage`, `viewport`, `element` (+ `elementSelector`), `clip` (+ `clip`). |
| `maxHeight` | 16000 | Full-page height cap in CSS px; taller pages are cut with `truncated: true`. |
| `transparentBackground` | false | PNG/WebP without the default white background. |
| `waitUntil` | `load` | `load`, `domcontentloaded`, `networkidle`. |
| `delayMs` | 0 | Extra wait (max 30 s). |
| `waitForSelector` | — | Wait for an element before capturing (captured anyway with a warning if missing). |
| `timeoutSecs` | 30 | Load + preparation budget per page (5–90 s); the capture itself gets 20 s more. |
| `scrollToLoadLazyContent` | true | Scroll to load lazy images, then back to top (max 8 s). |
| `stickyElements` | `auto` | `auto` (fixed header once at top, bottom bars removed) or `hide`. |
| `cookieBanners` | `hide` | `hide`, `reject`, `accept`, `none`. |
| `blockAds` | true | Block common ad, analytics and session-replay hosts. |
| `hideSelectors` | — | CSS selectors to hide. |
| `customCss` / `customJs` | — | Injected before capture (20 KB max each; JS 10 s max, same network sandbox). |
| `colorScheme`, `reducedMotion`, `disableAnimations`, `locale`, `timezoneId` | light, true, true, en-US, UTC | Rendering options. |
| `pdfPageFormat`, `pdfLandscape`, `pdfMarginMm`, `pdfPrintBackground`, `pdfMediaType`, `pdfMaxPages` | A4, false, 10, true, screen, 20 | PDF options (max 100 pages). |
| `cookies`, `extraHeaders` | — | **Only for sites you own or are authorized to access** (see below). |
| `captureHttpErrorPages` | false | Capture (and pay for) 4xx/5xx pages instead of reporting `HTTP_ERROR`. |
| `retries` | 0 | 0 or 1 retry after a timeout or connection error (never charged twice). |
| `maxConsecutiveFailures` | 5 | Stop the run after N browser failures in a row (1–50). Pre-check failures do not count. |
| `maxConcurrency` | 2 | Pages captured in parallel (1–3). |

#### Logged-in pages of your own site (`cookies`, `extraHeaders`)

Use these **only for sites you own or are authorized to access**. They are secret fields (encrypted by Apify), sent
**only over HTTPS** and **only to the exact host of each URL** (never to third-party resources, and dropped when a
redirect leaves that host). They are never logged and never written to the results. `Host`, `Cookie` (use the
`cookies` field), `User-Agent`, `Sec-*` and proxy headers cannot be set.

### Output

**Files** are saved in the run's default key-value store (`screenshot-0001-desktop-example.com-1a2b3c4d5e.png`), and each
dataset item links to its file (`screenshotUrl`). A `RUN_SUMMARY` record gives the totals and charges.

One dataset item per URL and device:

```json
{
  "url": "https://example.com/", "inputIndex": 0, "status": "ok", "errorCode": null, "errorMessage": null,
  "device": "desktop", "viewport": {"width": 1920, "height": 1080, "deviceScaleFactor": 1, "isMobile": false},
  "format": "png", "captureMode": "fullPage",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/screenshot-0000-desktop-example.com-888670ee85.png",
  "screenshotKey": "screenshot-0000-desktop-example.com-888670ee85.png", "contentType": "image/png",
  "bytes": 81605, "width": 1920, "height": 1080, "truncated": false,
  "finalUrl": "https://example.com/", "httpStatus": 200, "title": "Example Domain",
  "cookieBanner": {"mode": "hide", "detected": false, "vendor": null, "action": "not-found"},
  "warnings": [], "timings": {"loadMs": 718, "totalMs": 4518}, "attempts": 1, "charged": "screenshot",
  "capturedAt": "2026-11-13T10:16:02Z"
}
```

`status` is `ok`, `error` or `skipped` (not attempted because the run stopped early). Error codes:

| Code | Meaning | Charged? |
|---|---|---|
| `INVALID_URL`, `BLOCKED_ADDRESS` | Not a valid public http(s) address (refused before any request) | Never |
| `DNS_ERROR`, `CONNECTION_ERROR`, `TLS_ERROR`, `TIMEOUT`, `NAVIGATION_ERROR`, `BROWSER_ERROR` | The page could not be loaded | Free failure\* |
| `HTTP_ERROR` | The server answered 4xx/5xx (e.g. 404, 403) | Free failure\* |
| `BLOCKED_BY_SITE` | The site refuses automated captures (anti-bot / CAPTCHA). We do not bypass it. | Free failure\* |
| `NOT_A_WEB_PAGE`, `ELEMENT_NOT_FOUND`, `FILE_TOO_LARGE`, `STORAGE_ERROR` | Download link, selector not found, file > 30 MB, save failed | Free failure\* |
| `SKIPPED_HOST_FAILING` | `skipped`: 3 earlier captures of the same host failed in this run | Never |
| `TOO_MANY_CONSECUTIVE_FAILURES`, `TOO_MANY_TIMEOUTS`, `MAX_CHARGE_REACHED` | `skipped`: the run stopped early | Never |

\* The first 20 failed attempts of each run are free; see Pricing.

#### How failures, timeouts and skips work

1. **Pre-check (no browser).** Before Chromium starts, every distinct URL gets one light HTTP request (headers
   only, up to 10 in parallel, no cookies or custom headers sent). Limits: **10 s** to resolve and connect, **20 s**
   for the first response byte. A URL fails here only if it is clearly unreachable: `DNS_ERROR`, `CONNECTION_ERROR`
   (refused, reset or no connection in 10 s), `TLS_ERROR`, `TIMEOUT` (no first byte in 20 s) or `BLOCKED_ADDRESS`.
   These items have `stage: "precheck"`. HTTP errors (404, 403, 500…) do **not** fail here: the page goes to the
   browser and follows `captureHttpErrorPages`. A site that answers slowly (e.g. after 12 s) passes.
2. **Browser.** Chromium is started only when the first reachable URL needs it; if nothing is reachable it is never
   started (an all-dead list costs a few seconds of compute). Each page then has `timeoutSecs` (30 s default) to load.
   Items have `stage: "browser"`.
3. **Early stops (browser failures only).** After `maxConsecutiveFailures` (default 5) browser failures in a row the
   run stops; remaining URLs are `skipped` with `TOO_MANY_CONSECUTIVE_FAILURES`. After 3 browser failures on the same
   host, that host's remaining URLs are `skipped` with `SKIPPED_HOST_FAILING`. Skipped URLs are listed, never
   charged and never count as failed attempts.
4. **Billing of failures.** Pre-check and browser failures are both failed attempts: the first 20 of a run are free,
   then $0.0005 each. Pre-check failures never trigger the early stops.

### Pricing (pay per event, all-inclusive)

| Event | Price | When |
|---|---|---|
| `screenshot` | **$0.008** ($8 per 1,000) | A file (image or PDF) was saved. Any device, mode or format. Platform usage included. |
| `failed-attempt` | $0.0005 | Only from the **21st** failed attempt of a run. The first 20 are free. |
| Refused URLs, duplicates, skipped URLs, retries | $0 | Never charged. |

Examples: 100 URLs on desktop with 5 dead links = 95 × $0.008 = **$0.76**. 100 URLs × 2 devices, all fine = **$1.60**.
Set "Maximum cost per run" in Apify: the Actor stops before exceeding it (remaining URLs are listed as skipped).

### Compared with typical alternatives

Every option below is legitimate; pick the one that fits your volume and how much you want to maintain.

| | This Actor | Your own Puppeteer / Playwright script | Subscription screenshot APIs | Screenshot Actors billed by platform usage |
|---|---|---|---|---|
| Cost model | $0.008 per saved file, all-inclusive | Free software + your servers and time | Monthly plan with a quota | Compute time x memory, varies per page |
| Failed URLs | Listed with a code, first 20 per run free | Up to you | Usually count against the quota | Run time is billed |
| Cookie banners | Hide / reject / accept, 20+ known platforms + generic detector | Up to you | Often available | Varies |
| Lazy images, sticky headers | Handled for full-page captures | Up to you | Often available | Varies |
| Logged-in pages | Your own site only, secret cookies/headers | Yes | Yes | Varies |
| Anti-bot bypass, proxies | **No** (honest user agent) | Up to you | Some offer it | Some offer it |

If you need captures of sites that block automated browsers, this Actor is not the right tool: it reports them as
`BLOCKED_BY_SITE` (free) instead of bypassing protections.

### Honest limits

- Captures run from **Apify datacenter IP addresses** with an honest user agent that names this tool. **There is no
  stealth mode, no proxy rotation and no CAPTCHA solving.** Sites with strong anti-bot protection (some large retailers,
  news sites, social networks) will fail with `BLOCKED_BY_SITE` or `HTTP_ERROR 403` — free, clearly reported.
- `reject` uses the banner's own button. Some publishers then show a "pay or accept" wall: use `hide` for those.
- Full pages are capped at 16,000 px (and ~60 megapixels for retina), PDFs at 100 pages, files at 30 MB, 300 requests
  and 60 MB per page. Videos are not loaded (poster images are).
- Infinite feeds are scrolled for at most 8 seconds.
- Runs use 2 GB of memory (minimum and default; you do not pay for it). Typical speed: 3 s for a simple page,
  15–35 s for a heavy page captured full-page on desktop and mobile.
- Files are readable by anyone who has the link (standard Apify key-value store behaviour); delete the run's storage
  if needed.

### FAQ

**Why did a site fail with BLOCKED_BY_SITE?** It shows a bot check or CAPTCHA to automated browsers. We do not try to
get around such protections. You are not charged for it (within the 20 free failures per run).

**Does `reject` give consent?** No. `hide` gives no consent at all; `reject` clicks the site's own refusal button;
only `accept` gives consent, and only when you choose it.

**Can I capture internal or localhost pages?** No. Private, local and cloud-metadata addresses are always refused.

**Is my session cookie stored?** No. It is decrypted only inside the run, sent only to your URL's host over HTTPS, and
never logged or written to the output.

**How much do 1,000 screenshots cost?** $8 (1,000 x $0.008), whatever the device, format or capture mode, with no
platform-usage fee on top. 500 URLs on desktop and mobile = 1,000 captures = $8.

**Can I convert a URL to PDF?** Yes: set `format` to `pdf` (A4, Letter, Legal, A3, A5, Tabloid; margins, landscape,
screen or print CSS, max 100 pages). Same price as a screenshot.

**Where do I find the files?** Each dataset row has a `screenshotUrl` (direct link to the PNG/JPEG/WebP/PDF in the
run's key-value store). Export the dataset as CSV, JSON or Excel to get all links at once.

**Can I schedule it or plug it into Make, Zapier or n8n?** Yes: save a task, add an Apify Schedule (e.g. every Monday)
and use Apify integrations or webhooks to send the results where you need them.

**Can AI agents use it?** Yes, through the Apify MCP server or API. Every field has a description, results have stable
error codes, and `inputIndex` maps results back to your input list.

# Actor input Schema

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

Web pages to capture (http or https). `https://` is added when missing. Max 2000 captures per run (URLs x devices). Duplicates are ignored. Private, local and reserved network addresses are refused and never charged.

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

One capture per URL per device. Presets: desktop (1920x1080), desktop-hd (1920x1080 @2x), laptop (1440x900), laptop-small (1366x768), tablet (820x1180 @2x, touch), tablet-landscape (1180x820 @2x), mobile (390x844 @3x, touch), mobile-small (375x667 @2x), mobile-android (412x915 @2.625x), custom (uses viewportWidth / viewportHeight / deviceScaleFactor / isMobile).

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

png (lossless, supports transparency), jpeg (smaller, uses quality), webp (smallest, uses quality, max 16383 px per side) or pdf (printable document, see the PDF section).

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

Compression quality 1-100 for jpeg and webp. Ignored for png and pdf.

## `captureMode` (type: `string`):

fullPage = the whole scrolling page (capped by maxHeight, with a notice); viewport = only what fits in the screen (above the fold); element = one element chosen by elementSelector; clip = a rectangle given in clip. Ignored for pdf.

## `maxHeight` (type: `integer`):

Full-page captures stop at this height in CSS pixels (200-16000). Taller pages are cut and the result says `truncated: true` with the full height. Very large retina captures may be cut lower to stay under 60 megapixels.

## `elementSelector` (type: `string`):

CSS selector of the element to capture when captureMode is element, e.g. `#pricing` or `main article`. The first match is used; if none is visible the capture fails with ELEMENT_NOT_FOUND (not charged as a screenshot).

## `clip` (type: `object`):

Rectangle in CSS pixels from the top-left of the page when captureMode is clip, e.g. {"x": 0, "y": 0, "width": 1200, "height": 630} for a social preview image.

## `transparentBackground` (type: `boolean`):

Remove the default white background (png and webp only). Pages that paint their own background stay opaque; add customCss such as `html,body{background:transparent!important}` if needed.

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

load (default, all resources loaded), domcontentloaded (faster, HTML parsed) or networkidle (waits up to 10 s more for network silence; pages with live chat or analytics may never be idle, the capture then happens anyway with a warning).

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

Additional wait after the page is ready, for animations or late content. 0-30000 ms, always within timeoutSecs.

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

Optional CSS selector to wait for (visible) before capturing, e.g. `.product-grid`. If it does not appear in time the page is captured anyway with a warning.

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

Maximum time to load and prepare each page in the browser (5-90 s, default 30). The capture itself gets a fixed extra 20 s. Before that, a quick pre-check without browser fails URLs that cannot be reached: 10 s to connect, 20 s for the first response byte (slow but alive sites pass).

## `scrollToLoadLazyContent` (type: `boolean`):

Before full-page, element, clip and PDF captures, scroll down the page (max 8 s, stops at maxHeight or when the page stops growing) so lazy-loaded images appear, then scroll back to the top.

## `stickyElements` (type: `string`):

auto = in full-page captures, fixed headers are shown once at the top and fixed bottom bars / chat bubbles are removed (no header stamped in the middle of the image); hide = hide every fixed and sticky element.

## `cookieBanners` (type: `string`):

hide (default) = hide the banner with CSS, nothing is clicked and no consent is given; reject = click the banner's own 'Reject all' button (falls back to hide if there is none); accept = click its 'Accept all' button; none = leave the page untouched. Known platforms: OneTrust, Didomi, Cookiebot, Axeptio, Usercentrics, Quantcast, CookieYes, Complianz, iubenda, Sourcepoint, TrustArc and more, plus a generic detector.

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

Block common ad, analytics and session-replay hosts: faster, cleaner captures.

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

CSS selectors of elements to hide before capturing (e.g. chat widgets, promo bars). Max 50.

## `customCss` (type: `string`):

CSS injected into every page before capture (max 20 KB).

## `customJs` (type: `string`):

JavaScript run in the page before capture (max 20 KB, `await` allowed, 10 s max). It runs inside the same sandbox: network access to private addresses stays blocked, request and time limits still apply. Errors are reported as warnings.

## `colorScheme` (type: `string`):

light, dark (sites that support prefers-color-scheme switch to dark mode) or no-preference.

## `reducedMotion` (type: `boolean`):

Ask the site to reduce animations (prefers-reduced-motion), for steadier captures.

## `disableAnimations` (type: `boolean`):

Finish finite CSS animations and stop infinite ones at capture time (images only).

## `locale` (type: `string`):

Language the browser announces, e.g. en-US, fr-FR, de-DE, ja-JP. Sites that adapt to the visitor's language will follow it.

## `timezoneId` (type: `string`):

Optional IANA time zone for dates shown by the page, e.g. Europe/Paris or America/New_York. Default UTC.

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

Width in CSS pixels (200-3840) for the `custom` device.

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

Height in CSS pixels (200-4320) for the `custom` device.

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

1 = normal, 2 = retina, 3 = high-end phone, for the `custom` device.

## `isMobile` (type: `boolean`):

Mobile emulation (touch, mobile user agent, mobile layout) for the `custom` device.

## `pdfPageFormat` (type: `string`):

Paper size of the PDF.

## `pdfLandscape` (type: `boolean`):

Landscape orientation for the PDF.

## `pdfMarginMm` (type: `integer`):

Margin on all four sides in millimetres (0-50).

## `pdfPrintBackground` (type: `boolean`):

Include background colours and images in the PDF.

## `pdfMediaType` (type: `string`):

screen = the PDF looks like the website on screen; print = use the site's print stylesheet.

## `pdfMaxPages` (type: `integer`):

Only the first N pages are kept (1-100, default 20); the result says truncated when the limit is reached.

## `cookies` (type: `string`):

Session cookies for capturing pages of YOUR OWN site (or one you are authorized to access) behind a login: `name=value; name2=value2` (as copied from your browser's Cookie header) or a JSON array of {name, value}. Sent only over HTTPS to the exact host of each URL. Never logged or stored in the results.

## `extraHeaders` (type: `string`):

Extra request headers for YOUR OWN site (or one you are authorized to access), e.g. `Authorization: Bearer ...`, one `Name: value` per line or a JSON object. Sent only over HTTPS to the exact host of each URL (not to third-party resources). Host, Cookie, User-Agent, Sec-\* and proxy headers are not allowed. Never logged or stored in the results.

## `captureHttpErrorPages` (type: `boolean`):

By default a page answering 4xx/5xx (e.g. 404) is reported as HTTP_ERROR and not charged as a screenshot. Turn on to capture (and pay for) error pages too.

## `retries` (type: `integer`):

0 (default) or 1: retry once after a timeout or connection error. A retried URL still counts as one attempt and is never charged twice.

## `maxConsecutiveFailures` (type: `integer`):

Stop the run after this many BROWSER failures in a row (1-50, default 5) so a broken list cannot burn time or money. URLs found unreachable by the pre-check (before any browser starts) do not count. Separately, after 3 browser failures on the same host, that host's remaining URLs are skipped (SKIPPED_HOST_FAILING). Skipped URLs are listed and never charged.

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

Pages captured at the same time (1-3, default 2). Use 1 for very heavy pages or large retina full-page captures.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "devices": [
    "desktop"
  ],
  "format": "png",
  "quality": 80,
  "captureMode": "fullPage",
  "maxHeight": 16000,
  "transparentBackground": false,
  "waitUntil": "load",
  "delayMs": 0,
  "timeoutSecs": 30,
  "scrollToLoadLazyContent": true,
  "stickyElements": "auto",
  "cookieBanners": "hide",
  "blockAds": true,
  "colorScheme": "light",
  "reducedMotion": true,
  "disableAnimations": true,
  "locale": "en-US",
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "deviceScaleFactor": 1,
  "isMobile": false,
  "pdfPageFormat": "A4",
  "pdfLandscape": false,
  "pdfMarginMm": 10,
  "pdfPrintBackground": true,
  "pdfMediaType": "screen",
  "pdfMaxPages": 20,
  "captureHttpErrorPages": false,
  "retries": 0,
  "maxConsecutiveFailures": 5,
  "maxConcurrency": 2
}
```

# Actor output Schema

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

No description

## `errors` (type: `string`):

No description

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

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("neocraft/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("neocraft/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 neocraft/website-screenshot-pro --silent --output-dataset

```

## MCP server setup

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