# Website Screenshot API: Full-Page, WebP, No Cookie Banners (`xsi/website-screenshot-api`) Actor

Bulk full-page screenshots of any URL as PNG, JPEG, WebP, AVIF or PDF. Cookie banners, ads and chat bubbles hidden (EasyList filter lists), lazy images loaded, devices, cookies, headers, custom JS. Failed pages free. One-call image API, MCP-ready. $1.50 per 1,000 screenshots.

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

## Pricing

from $0.90 / 1,000 screenshot saveds

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/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, bulk, cookie banners hidden

Website Screenshot API captures full-page PNG, JPEG, WebP, AVIF or PDF screenshots of up to 1,000 URLs per run for $1.50 per 1,000 (failed pages free), hides cookie banners, ads and chat widgets with the public EasyList filter lists, and returns a direct image link and JSON metadata for each page, or the image itself in one HTTP call.

> **What it does:** Takes PNG, JPEG, WebP, AVIF or PDF screenshots of any list of URLs: true full-page captures with lazy images loaded, cookie banners, ads and chat widgets hidden (EasyList, EasyPrivacy, EasyList Cookie List + built-in rules), device presets, element capture, dark mode, your own cookies/headers/CSS/JavaScript, and a direct image URL per page.
>
> **Who it's for:** Developers, QA and monitoring teams, SEO reports, archiving, and AI agents with vision that need to see a page.
>
> **Price:** $1.50 / 1,000 screenshots, no start fee, errors and failed items are not charged. Works through the Apify API, as an MCP tool (`https://mcp.apify.com?tools=xsi/website-screenshot-api`), and in Zapier, Make, n8n and LangChain via Apify's integrations.

**Give a list of URLs, get one image (PNG, JPEG, WebP, AVIF) or PDF per page with a direct link.** True full-page captures (the page is scrolled first so lazy-loaded images appear), cookie and consent banners hidden, ads and trackers blocked, desktop / laptop / tablet / mobile, single-element capture, dark mode, retina, time zone, custom cookies, headers, CSS and JavaScript. Built for monitoring, reports, QA, archives, and **AI agents** (vision models, MCP clients) that need to *see* a page.

Part of **xsi**: small, honest, pay-per-result tools.

- ✅ **Real full page.** It scrolls in steps to trigger lazy loading, then captures the whole document. Pages that scroll inside a container (many single-page apps) are detected and captured in full too.
- ✅ **No cookie walls or ads in your screenshots.** The public filter lists used by ad blockers are applied: **EasyList Cookie List** for consent banners, **EasyList** and **EasyPrivacy** for ad slots and tracker requests. On top of that, 66 built-in selectors hide the banners of common consent platforms by name: OneTrust, Cookiebot, Didomi, Sourcepoint, Usercentrics, Quantcast, TrustArc, Iubenda, Axeptio, CookieYes, Complianz and more. Late-appearing custom banners are hidden too when they mention cookies and offer an Accept / Reject / Settings button. **Nothing is ever clicked or accepted for you.**
- ✅ **Fast.** One browser, a fresh isolated context per URL, ads and trackers blocked, a hard time limit per page and one smart retry. Heavy pages that never finish loading are still captured instead of hanging.
- ✅ **Failed pages are free.** Invalid URLs, duplicates, DNS and connection errors, timeouts, HTTP 4xx/5xx, bot walls and CAPTCHAs, consent gates and missing selectors are reported with a clear `errorType` and **never charged**.
- ✅ **Stable on big batches.** Up to 1,000 URLs per run. Concurrency is capped automatically to about one page per 700 MB of memory, and very tall pages are cut at a height you choose (`truncated: true`).
- ✅ **One HTTP call if you want it.** With `returnImageInOutput` and one URL, `run-sync` answers with the image bytes themselves (see below).
- ✅ **Honest.** No proxy rotation and no country selection. Cookies and headers are only for pages you are allowed to open with your own account. CAPTCHAs and bot protections (Cloudflare, DataDome, PerimeterX, Akamai…) are **reported, never bypassed**. Private and internal addresses are refused.

### Pricing: $1.50 per 1,000 screenshots

One pay-per-event charge, **`screenshot`**, per image actually saved. No start fee, no subscription.

| Apify plan | Per screenshot | Per 1,000 |
|---|---|---|
| Free | $0.0015 | $1.50 |
| Bronze | $0.0013 | $1.30 |
| Silver | $0.0011 | $1.10 |
| Gold / Platinum / Diamond | $0.0009 | $0.90 |

No platform usage on top, so the price is known before you run. Your **Maximum cost per run** is always respected: the Actor stops cleanly before a screenshot it couldn't charge. URLs left over are listed as `max_cost_reached` and not charged.

### Quick start

```json
{ "urls": ["https://apify.com", "en.wikipedia.org/wiki/Web_scraping"] }
```

WebP (smaller files for vision models), mobile:

```json
{ "urls": ["https://apify.com"], "format": "webp", "device": "mobile" }
```

Mobile, JPEG, only the pricing table:

```json
{ "urls": ["https://example.com/pricing"], "device": "mobile", "format": "jpeg", "selector": "#pricing" }
```

### One HTTP call that returns the image

Send one URL with `"returnImageInOutput": true` to the synchronous endpoint. The response body is the image (here PNG):

```bash
curl -X POST "https://api.apify.com/v2/acts/xsi~website-screenshot-api/run-sync" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com"], "fullPage": false, "returnImageInOutput": true}' \
  -o apify.png
```

The run still starts a container, so expect a few seconds more than the page load. The JSON summary goes to the `SUMMARY` record. If the page fails, the body is the JSON summary instead and nothing is charged. The run-sync endpoint waits up to 300 s; for batches, start a normal run and read the dataset.

### Measured speed (Apify, 2048 MB, 29 Nov 2026)

| Page | Capture | Time per page (`loadTimeMs`) |
|---|---|---|
| en.wikipedia.org article | full page PNG, 1440×8995 | 3.6 s |
| apify.com | full page PNG, 1440×10072 | 4.5 s |
| bbc.com/news | full page WebP, 1440×4879 | 3.5 s |
| lemonde.fr | first screen PNG, consent banner hidden | 4.1 s |
| theguardian.com (heavy, lazy images) | full page PNG, cut at 16,000 px | 28.2 s |
| apify.com via `run-sync` + `returnImageInOutput` | first screen PNG, whole HTTP call | 8.4 s |

A run adds a few seconds of container start. Times depend on the site.

### Output (one row per URL)

```json
{
  "url": "https://en.wikipedia.org/wiki/Web_scraping",
  "finalUrl": "https://en.wikipedia.org/wiki/Web_scraping",
  "status": 200,
  "title": "Web scraping - Wikipedia",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/…/records/screenshot-0001-en-wikipedia-org-wiki-Web-scraping-0dbff88b78.png?signature=…",
  "screenshotKey": "screenshot-0001-en-wikipedia-org-wiki-Web-scraping-0dbff88b78.png",
  "format": "png",
  "imageWidth": 1440,
  "imageHeight": 8969,
  "pageHeight": 8969,
  "truncated": false,
  "bytes": 2381001,
  "device": "desktop",
  "viewportWidth": 1440,
  "fullPage": true,
  "consentElementsHidden": 0,
  "filterElementsHidden": 3,
  "requestsBlocked": 6,
  "loadTimeMs": 2700,
  "charged": true,
  "takenAt": "2026-11-26T19:47:51.052Z"
}
```

A page that was not captured:

```json
{ "url": "https://www.example-shop.com/", "status": 403, "errorType": "blocked", "error": "HTTP 403 from bot protection (cloudflare). Not bypassed (we never solve CAPTCHAs). Not charged.", "charged": false }
```

`filterElementsHidden` counts the page elements (ad slots, banners) hidden by filter-list rules and `requestsBlocked` the ad, tracker and consent-script requests blocked. `warning` explains anything non-fatal (selector not found in time, customJs error...).

`errorType` values: `invalid_url`, `private_address`, `dns_error`, `connection_error`, `ssl_error`, `timeout`, `http_error`, `blocked`, `consent_gate`, `selector_not_found`, `not_a_web_page` (e.g. a PDF download), `navigation_error`, `browser_error` (Chromium crashed twice on that page; the browser is relaunched automatically), `max_cost_reached`. None of them is charged.

The **OUTPUT** record of the key-value store holds the run summary (or the image itself with `returnImageInOutput`, the summary then being in **SUMMARY**): screenshots charged, free errors, URLs not run because of your budget, duplicates removed, median seconds per page and total size.

### AI agent use cases (MCP, LLM frameworks, automation)

- **Give a vision model eyes:** an agent passes the returned `screenshotUrl` to GPT, Claude or Gemini vision to check a layout, read a pricing page or compare competitors.
- **Visual monitoring and QA:** schedule it in n8n or Make and keep a dated screenshot of key pages (home, pricing, checkout).
- **Reports and evidence:** archive what a page showed on a given day (full page, or PDF for documents).
- **Bulk capture:** send hundreds of URLs in one run; failed pages come back as free error rows instead of crashing the run.

How to connect it:

- **Any MCP client** (Claude Desktop, Cursor, ChatGPT connectors, your own agent): add the Apify MCP server `https://mcp.apify.com/?tools=xsi/website-screenshot-api` and the Actor becomes a tool.
- **LLM frameworks:** call it from LangChain or LlamaIndex with Apify's integrations, or from any code through the Apify API (one POST, JSON back).
- **No-code automation:** n8n, Make and Zapier have Apify nodes: run it on a schedule or a trigger and send the rows to Sheets, a CRM or Slack.

### Use with AI agents (MCP)

The Actor is available through the Apify MCP server (`https://mcp.apify.com/?tools=xsi/website-screenshot-api`). An agent sends `{"urls": [...]}` and gets back flat JSON rows whose `screenshotUrl` is a direct, signed image link that it can pass to a vision model. The defaults are tuned for agents: full page, banners hidden, PNG, a 45 s hard limit per page, and failures returned as data instead of crashing the run.

### Options

| Field | Default | What it does |
|---|---|---|
| `urls` | — | Up to 1,000 pages. `example.com` works (https:// is added). Duplicates are removed for free. |
| `fullPage` | `true` | Whole page instead of the first screen. |
| `device` | `desktop` | `desktop` 1440×900, `laptop` 1280×800, `tablet` (iPad) 820×1180, `mobile` (iPhone) 390×844, with the matching user agent. |
| `format` / `quality` | `png` / 80 | `jpeg` and `webp` are much smaller than PNG, `avif` the smallest. WebP/AVIF are encoded from the lossless capture with libvips (sharp). `pdf` saves a real paginated PDF with selectable text, working links and backgrounds. Same price for every format. |
| `pdfFormat` / `pdfLandscape` | `A4` / `false` | Paper size (`A4`, `Letter`, `Legal`, `A3`) and orientation, PDF only. |
| `hideCookieBanners` | `true` | Hides cookie/consent banners with the public EasyList Cookie List (CSS rules + blocking consent scripts), 66 built-in consent-platform selectors and a heuristic for late overlays. Nothing is clicked or accepted. |
| `hideChatWidgets` | `true` | Hides live-chat bubbles (Intercom, HubSpot, Drift, Zendesk, Crisp, Tidio, LiveChat, Freshchat and 15+ more) that cover the corner of the page. |
| `blockAds` | `true` | Blocks ad and tracker requests and hides ad slots (EasyList + EasyPrivacy + a built-in host list). The page itself is never blocked. Set `false` to see the page exactly as served. |
| `selector` | — | Capture only one element (CSS selector). |
| `waitForSelector` | — | Wait up to 15 s for an element before capturing. |
| `delayMs` | 0 | Extra wait for animations or charts. |
| `waitUntil` | `load` | `domcontentloaded`, `load` or `networkidle`. If it never fires, the page is captured anyway. |
| `viewportWidth` / `viewportHeight` / `deviceScaleFactor` | device | Custom size, or 2× / 3× for retina. |
| `darkMode` | `false` | Asks the site for its dark theme. |
| `hideSelectors` | — | Extra elements to hide (CSS selectors), e.g. a promo bar. |
| `maxHeight` | 12,000 px | Full-page captures are cut there (Chrome's hard limit is 16,384 px). |
| `locale` | `en-US` | Browser language. |
| `timezone` | — | IANA time zone, e.g. `Europe/Paris`. It does not change the IP address or country. |
| `cookies` | — | Cookies set before loading, e.g. `[{"name": "session", "value": "…", "domain": ".example.com"}]`. |
| `headers` | — | Extra HTTP headers, e.g. `{"Authorization": "Bearer …"}`. Sent **only** to the captured site's host and its subdomains, never to third parties. `Host`, `Cookie` and hop-by-hop headers are refused. |
| `userAgent` | device | Custom user agent. |
| `customCss` | — | CSS injected before capture. |
| `customJs` | — | JavaScript run in the page before capture (`await` allowed, max 10 s), e.g. click a tab. Errors go to `warning`; the page is still captured. |
| `returnImageInOutput` | `false` | One URL only: the run's OUTPUT record is the image, so `run-sync` returns it in one call. |
| `pageTimeoutSecs` | 45 | Hard limit per page. Timeouts are free. |
| `maxConcurrency` | 4 | Pages in parallel, automatically lowered to fit memory. |

### Why this one? (problems we fixed from public reviews of other screenshot Actors)

| Complaint seen in public reviews (Apify Store) | What this Actor does | Regression test |
|---|---|---|
| "won't take full-page screenshots even with scroll to bottom, only above the fold" | Step scrolling, lazy images forced to load, inner-scroll containers detected | `R1`, `R2`, `R3` |
| "incredibly slow and expensive: more than 5 minutes and almost 4 cents per screenshot" | Hard per-page limit, ads blocked, fixed price of $0.0015 | `R5` |
| "the result didn't work and it still used up my credits" | Only saved images are charged. Errors, walls and gates are free. | `R6`, `R7`, `R4c`, `R12` |
| "exceeding memory issues, queueing not working" | Memory-bound concurrency, height cap, one context per page closed right after | `R8`, unit `safeConcurrency` |
| Cookie banners covering the page | Consent-platform list plus a heuristic that requires a consent button, so sticky headers stay | `R4`, `R4b` |
| Chat bubbles covering the bottom of the page (most leaders only hide cookie banners) | Known chat widgets hidden by default, can be turned off | `R15` (pixel-checked) |
| Separate "URL to PDF" tool needed | `format: "pdf"` in the same Actor, errors still free | `R16`, `R17` |
| Hand-made banner/ad lists miss many sites | Public EasyList Cookie List, EasyList and EasyPrivacy applied on top of the built-in lists, refreshed at every build | `R18` + unit tests |
| PNG/JPEG only | WebP and AVIF output, real files with dimensions | `R19` |
| No login cookies, headers or scripts | `cookies`, `headers` (first-party only), `userAgent`, `customCss`, `customJs`, `timezone` | `R20`, `R21`, `R23` |
| "I want one request that returns the image" | `returnImageInOutput` + `run-sync` | `R22` |

The full test suite (`npm test`) runs real Chromium against local pages that reproduce each problem.

### Questions people ask

#### How do I take full-page screenshots of many URLs at once?

Paste the URL list. Each page is scrolled to load lazy images, then captured; you get one row with a direct image link per URL.

#### How do I screenshot a website without the cookie banner?

Cookie and consent banners (EasyList Cookie List, 66 built-in consent-platform selectors and a heuristic for late overlays) are hidden by default, as are chat bubbles.

#### Can I save a web page as PDF via API?

Yes, set the output to PDF and choose paper format and orientation.

#### How much does a screenshot API cost?

$1.50 per 1,000 screenshots (down to $0.90 on higher Apify plans), no start fee. Failed and blocked pages are free.

#### Can ChatGPT, Claude or my own AI agent use this tool?

Yes. Add Apify's MCP server (`https://mcp.apify.com?tools=xsi/website-screenshot-api`) to Claude, ChatGPT, Cursor or any MCP client and authenticate with your Apify token. Agents can also call it with the Apify API, or pay without an account by buying a capped prepaid token at agi.apify.com (x402, card).

#### Is there a free trial?

Apify's free plan includes monthly platform credit, which covers many runs at these prices. You only pay for results; failures are free.

### Comparison with alternatives

| Tool | Price | Start fee | Users (30 days) |
|---|---|---|---|
| **xsi/website-screenshot-api** (this Actor) | $1.50 / 1,000 screenshots | no | new |
| apify/screenshot-url | Free Actor, you pay compute (one review reports ~$0.04 per screenshot) | — | 2,040 |
| cheapapi/website-screenshot-api | $0.89 / 1,000 | $0.00001 | 331 |
| moonweil/url-screenshot-api | $4 / 1,000 | $0.001 | 164 |
| i-scraper/website-screenshot | $6 / 1,000 | no | 64 |

*Competitor prices and 30-day user counts: public Apify Store API, checked 26 Nov 2026. Prices change, so check each page before buying.*

**Keywords:** website screenshot api, full page screenshot, bulk screenshots, url to image, html to pdf api, screenshot without cookie banner, screenshot mcp

### FAQ

**Is it legal?** It captures what a visitor sees. Only use `cookies` or `headers` for accounts and pages you are allowed to access, respect each site's terms and copyright when you reuse images. Screenshots can contain personal data shown on a page; under GDPR you need a legitimate reason to keep it.

**Why is my page `blocked`?** The site served a bot protection or CAPTCHA page. We report it and don't charge. We don't try to get around it: no CAPTCHA solving, no stealth mode, no proxy rotation.

**Where do the ad and cookie rules come from?** From the public lists maintained by the EasyList authors (https://easylist.to/): EasyList and EasyPrivacy (dual licensed GPLv3 / CC BY-SA 3.0) and EasyList Cookie List (CC BY 3.0), used unmodified through the open-source @ghostery/adblocker engine (MPL-2.0). They are refreshed at each build. Like any ad blocker they can occasionally hide a harmless element: set `blockAds` or `hideCookieBanners` to `false` to compare.

**Why `consent_gate`?** Some publishers redirect new visitors to a separate consent page (for example DPG Media or Yahoo sites). Getting past it would mean accepting cookies on your behalf, which we don't do.

**How long are images kept?** In the run's key-value store, for the retention period of your Apify plan. Download them or copy them to your own storage if you need them longer.

**Can I get a PDF instead of an image?** Yes. Set `format` to `pdf`: you get a paginated PDF with selectable text and working links, at the same price as a screenshot. Element capture (`selector`) works with images only.

Questions or a site that doesn't render right? Open an issue on the **Issues** tab. We answer quickly.

### Changelog

- **1.0.8 (29 Nov 2026)**: EasyList / EasyPrivacy / EasyList Cookie List applied for ads, trackers and consent banners; `webp` and `avif` formats; `cookies`, `headers` (first-party only), `userAgent`, `customCss`, `customJs`, `timezone`; `returnImageInOutput` for one-call image responses; new row fields `filterElementsHidden`, `requestsBlocked`, `warning`. Prices unchanged.
- **1.0.3 (26 Nov 2026)**: live-chat bubbles hidden by default (`hideChatWidgets`, 42 widget selectors), new `pdf` output format (`pdfFormat`, `pdfLandscape`, `pdfPages` in the row). Prices unchanged.
- **1.0.2 (26 Nov 2026)**: first public version.

# Actor input Schema

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

Pages to capture (up to 1,000 per run). "example.com" works too (https:// is added). Duplicates are removed and never charged.

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

Capture the whole page, not just the first screen. The page is scrolled first so lazy-loaded images appear. Pages taller than "Max height" are cut at that height (flag truncated=true).

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

Viewport and user agent preset. Mobile and tablet get the mobile version of the site.

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

PNG is lossless. JPEG and WebP are 3-10x smaller (good for archives and AI vision models). AVIF is the smallest. PDF gives a real paginated PDF (selectable text, working links, backgrounds kept). Same price for every format.

## `pdfFormat` (type: `string`):

Used only when Format is PDF.

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

Used only when Format is PDF.

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

Hides cookie/consent banners with the public EasyList Cookie List (CSS rules + blocking consent scripts), 66 built-in consent-platform selectors and a heuristic for late overlays. Nothing is clicked or accepted.

## `hideChatWidgets` (type: `boolean`):

Hides chat and support widgets that cover the page corner (Intercom, HubSpot, Drift, Zendesk, Crisp, Tidio, LiveChat, Freshchat and 15+ more). Nothing is clicked.

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

Blocks ad and tracker requests and hides ad slots with the public EasyList and EasyPrivacy filter lists (the lists used by ad blockers), plus a built-in host list. Pages load faster and ad overlays disappear. The page itself is never blocked.

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

Optional. Screenshot a single element, e.g. "#pricing" or "main". If the element is missing the URL is returned with an error and not charged.

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

Optional. Wait (max 15 s) until this CSS selector appears before capturing, e.g. ".chart-loaded".

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

Extra wait after the page has loaded, for animations or charts.

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

Page event to wait for. If it never comes (heavy pages), the page is captured anyway after DOMContentLoaded instead of failing.

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

Overrides the device width. 320-3840.

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

Overrides the device height (the visible screen; full page still captures everything). 320-2160.

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

1 = normal, 2 = retina (4x more pixels, bigger files).

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

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

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

Extra CSS selectors to hide, e.g. chat widgets "#intercom-container".

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

10-100, for JPEG, WebP and AVIF.

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

Full-page captures are cut at this height (Chrome's hard limit is 16,384 px).

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

e.g. en-US, fr-FR, de-DE. Sites that adapt to the browser language show that version.

## `timezone` (type: `string`):

Optional IANA time zone for the browser, e.g. "Europe/Paris" or "America/New_York". Does not change the IP address or country.

## `pageTimeoutSecs` (type: `integer`):

Hard limit per page, retry included once. A page that times out is free.

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

Pages captured at the same time. Automatically lowered to 1 per 700 MB of memory so runs never crash on memory.

## `returnImageInOutput` (type: `boolean`):

Only with exactly one URL. The run's OUTPUT record becomes the image (or PDF) itself, so POST /v2/acts/xsi~website-screenshot-api/run-sync returns the image bytes in a single HTTP call. The JSON summary moves to the SUMMARY record. If the capture fails, OUTPUT stays the JSON summary and nothing is charged.

## `cookies` (type: `array`):

Optional cookies set before loading the page, e.g. \[{"name": "session", "value": "abc", "domain": ".example.com"}] for pages you are allowed to access with your own account. Without domain/url, the cookie is set for the captured URL. Max 100.

## `headers` (type: `object`):

Optional headers, e.g. {"Authorization": "Bearer ..."}. Sent only to the captured site's host and its subdomains, never to third-party hosts. Host, Cookie and hop-by-hop headers are refused (use Cookies).

## `userAgent` (type: `string`):

Optional. Overrides the device user agent.

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

Optional CSS injected before capture, e.g. ".promo-bar { display: none !important; }".

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

Optional JavaScript run in the page before capture (await allowed, max 10 s), e.g. "document.querySelector('#tab-2').click();". Errors are reported in the warning field and the page is still captured.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "fullPage": true,
  "device": "desktop",
  "format": "png",
  "pdfFormat": "A4",
  "pdfLandscape": false,
  "hideCookieBanners": true,
  "hideChatWidgets": true,
  "blockAds": true,
  "delayMs": 0,
  "waitUntil": "load",
  "darkMode": false,
  "quality": 80,
  "maxHeight": 12000,
  "locale": "en-US",
  "pageTimeoutSecs": 45,
  "maxConcurrency": 4,
  "returnImageInOutput": false
}
```

# Actor output Schema

## `screenshots` (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://apify.com",
        "https://en.wikipedia.org/wiki/Web_scraping"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xsi/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://apify.com",
        "https://en.wikipedia.org/wiki/Web_scraping",
    ] }

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

```

## MCP server setup

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