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

Capture clean screenshots of any URL in bulk: full-page or viewport, desktop/laptop/tablet/mobile, PNG/JPEG/WebP/PDF, element capture, dark mode. Cookie banners, chat widgets and ads removed automatically. Pay only for successful screenshots. MCP-ready for AI agents.

- **URL**: https://apify.com/jeggy/website-screenshot-api.md
- **Developed by:** [Jeggy](https://apify.com/jeggy) (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 $1.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 — Full Page, Mobile, PDF (no cookie banners)

**Website screenshot API: turn any list of URLs into clean, full-page or mobile screenshots in seconds.** Desktop, laptop, tablet or mobile. PNG, JPEG, WebP or PDF. Cookie banners, chat widgets and ads are removed automatically. **$1.80 per 1,000 successful viewport screenshots** (full-page is $3.80 per 1,000). **You only pay for screenshots that succeed.**

It's a pay-per-use replacement for ScreenshotOne, Urlbox, ApiFlash and screenshotapi.net, with no monthly plan and no credits that expire. It's built for marketers, SEO and QA teams, no-code automations (n8n, Make, Zapier) and **AI agents that need to see a web page** (Claude, ChatGPT and Cursor via Apify MCP).

### Why this one

- **Clean shots by default.** It hides 50+ consent platforms (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, Sourcepoint, Google Funding Choices, Iubenda, Termly…), clicks "Accept" in consent pop-ups where needed and catches unknown banners with a smart fallback. It also hides chat bubbles and blocks ad networks.
- **Full page done properly.** It scrolls first so lazy-loaded images appear, then captures pages up to 16,000 px tall (cropped above that).
- **Every device.** Desktop 1920×1080, laptop 1366×768, iPad at 2x, iPhone at 3x, or any custom viewport and pixel ratio (for example 1200×630 for OG images).
- **Element screenshots.** Capture just `#pricing`, `main` or a chart with a CSS selector.
- **PDF export** with backgrounds, in A4, Letter, Legal or A3.
- **Agent-ready output.** You get a direct `screenshotUrl` and can optionally add a `dataUri` (base64), so vision models can use the image without another fetch.
- **Fair billing.** Errors, 404s, blocked pages and invalid URLs come back as free `error` items.
- **Safe.** It refuses private and internal addresses (SSRF protection) and never logs in to anything.

### Use cases

- Visual monitoring and archiving of competitor pages, pricing and landing pages (schedule daily)
- SEO and marketing reports, client proofs, ad and landing-page QA
- Link previews and OG and social images
- Compliance evidence ("what did the page say on this date?")
- AI agents: "Look at this page and tell me what's wrong with the layout"

### Input example

```json
{
  "urls": ["https://www.bbc.co.uk/news", "gov.uk", "https://www.lemonde.fr"],
  "fullPage": true,
  "device": "desktop",
  "format": "jpeg",
  "quality": 70,
  "hideCookieBanners": true,
  "blockAds": true
}
```

Other common setups:

- **Mobile + WebP + base64 for an AI agent:** `{"urls": ["gov.uk"], "device": "mobile", "format": "webp", "includeBase64": true}`
- **PDF:** `{"urls": ["https://www.gov.uk/bank-holidays"], "format": "pdf"}`
- **One element:** `{"urls": ["https://www.python.org"], "selector": ".main-header"}`

### Output example

```json
{
  "url": "https://www.bbc.co.uk/news",
  "index": 0,
  "format": "jpeg",
  "device": "desktop",
  "fullPage": true,
  "takenAt": "2026-11-21T00:38:19.401559Z",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/screenshot-00000-77d90d7e70.jpg",
  "error": null,
  "finalUrl": "https://www.bbc.co.uk/news",
  "statusCode": 200,
  "title": "Home - BBC News",
  "width": 1920,
  "height": 6608,
  "loadTimeMs": 3778,
  "kvStoreKey": "screenshot-00000-77d90d7e70.jpg",
  "bytes": 260592
}
```

Failed URLs are free and look like this:

```json
{
  "url": "https://httpbin.org/status/404",
  "format": "jpeg",
  "device": "desktop",
  "screenshotUrl": null,
  "error": "HTTP 404"
}
```

The image or PDF is stored in the run's key-value store, and `screenshotUrl` links straight to it. The dataset's **Screenshots** view shows thumbnails.

### Pricing (pay per event)

| Event | Price |
|---|---|
| `screenshot`, one successful image or PDF | **$0.0018 (that's $1.80 per 1,000)** |
| `full-page`, extra charge only when `fullPage` is on (not for PDFs or element captures) | **+$0.002** |

A viewport screenshot costs $1.80 per 1,000 and a full-page screenshot costs $3.80 per 1,000, with no monthly minimum. In our test on the same 40 sites, the most-used Store screenshot Actor (billed by compute) came to about $3.10 per 1,000 screenshots. Failed captures cost nothing (blocked sites, timeouts, HTTP errors and blank bot-wall pages), and Apify platform usage is included. For comparison, SaaS screenshot APIs charge about $7–$9.50 per 1,000 on entry plans, with monthly minimums. Set "Maximum cost per run" and the Actor stops cleanly at your limit.

### How it compares

Figures below are from Apify Store listings and a same-site test we ran in November 2026. They can change.

| | This Actor | `apify/screenshot-url` (most used) | `cheapapi/website-screenshot-api` |
|---|---|---|---|
| Price | **$1.80 / 1,000** viewport screenshots; **$3.80 / 1,000** full-page. Platform usage included. Failed shots are free. | Free Actor; you pay Apify compute. In our test on the same 40 sites this came to about **$3.10 / 1,000**. | From **$0.89 / 1,000** on the Free tier to **$0.61 / 1,000** on Gold, **plus** platform usage. |
| Users (30 days, Nov 2026) | New | 2,035 users; 3.88★ from 20 reviews | 323 users; 5.00★; Store page showed 100% run success |

`cheapapi` can be cheaper on the event price; this Actor includes platform usage in the event price and only charges for successful shots.

### Use from AI agents (MCP)

Connect `https://mcp.apify.com` in Claude Desktop, Cursor, VS Code or any MCP client and add this Actor. Ask your agent: *"Take a mobile screenshot of example.com and check whether the signup button is visible."* Turn on `includeBase64` if your agent can't fetch URLs.

### FAQ

**Why did some sites fail?** Some big sites (news paywalls, large retailers) block automated browsers with HTTP 401 or 403, or with a blank challenge page. These come back as free error items with a clear reason.

**Can it screenshot pages behind a login?** No. It only captures public pages and doesn't handle credentials.

**A site still shows a banner or pop-up.** Add its CSS selector to "Extra elements to hide". Tell us in the Issues tab and we'll add it to the built-in list.

**The page looks half-loaded.** Increase "Extra delay" (for example to 3000 ms), set "Wait until" to *Network idle*, or set "Wait for element".

**The header is missing on a full-page shot.** Some sites hide their sticky header after scrolling. Turn off "Scroll to load lazy images".

**Why did a URL fail with HTTP 403?** The site blocked automated browsers. You're not charged. Turn on "Capture pages that return HTTP 4xx/5xx" if you want the error page anyway.

**How long are screenshots kept?** As long as the run's storage is retained on your Apify plan. Download them or use a named key-value store to keep them for good.

**Is it legal?** It captures what any visitor sees on a public page. You're responsible for how you use the images (copyright and terms of the sites you capture).

### Changelog

- **1.0**: first release. Devices, full page, element capture, PDF and WebP, cookie, ad and chat clean-up, base64 output, SSRF guard, free failures.

### Related tools

Other tools in this collection:

- [Document to Markdown for AI & RAG](https://apify.com/jeggy/document-to-markdown) — PDF, Word, PowerPoint and Excel to LLM-ready Markdown, with OCR. Pay per page.
- [ATS Jobs API & Hiring Signals](https://apify.com/jeggy/ats-jobs-hiring-signals) — Greenhouse, Lever, Ashby and other career boards, plus hiring signals. $0.40 per 1,000 jobs.
- [App Store & Google Play Reviews Scraper](https://apify.com/jeggy/app-reviews-scraper) — Reviews from both stores in one table. $0.08 per 1,000 reviews.
- [Shopify & WooCommerce Products Scraper](https://apify.com/jeggy/shopify-woocommerce-products) — Prices, variants and stock, with a price-drop monitor. $0.40 per 1,000 products.
- [Bulk Domain Lookup](https://apify.com/jeggy/domain-intel) — WHOIS/RDAP, DNS, SPF, DMARC and SSL in one row. $0.80 per 1,000 domains.
- [Tech Stack Detector](https://apify.com/jeggy/tech-stack-detector) — BuiltWith / Wappalyzer-style detection, 7,700+ fingerprints. $1 per 1,000 sites.
- [Sitemap URL Extractor](https://apify.com/jeggy/sitemap-url-extractor) — Every page URL from a site's sitemaps. $0.15 per 1,000 URLs.

# Actor input Schema

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

Pages to capture, one per line. 'example.com' is treated as https://example.com.

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

Output image format. PNG is lossless, JPEG/WebP are smaller, PDF prints the page as a document.

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

Viewport preset: desktop 1920×1080, laptop 1366×768, tablet 820×1180, mobile 390×844 (iPhone-like, 3× DPR) or custom.

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

Capture the whole scrollable page (up to 16,000 px tall) instead of only the first screen.

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

e.g. '#pricing' or 'main'. Leave empty for the page.

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

Hides 50+ consent platforms (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, Google FC…) and clicks 'Accept' where needed.

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

Block ads, analytics/trackers and consent-manager scripts inside the browser: cleaner and faster captures.

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

Intercom, HubSpot, Drift, Crisp, Zendesk, Tidio…

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

Additional CSS selectors to hide before capture, e.g. chat widgets or promo bars specific to your sites.

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

Load event to wait for before capturing. For load/networkidle the wait is capped by "Max wait for full load" so slow trackers do not stall the capture.

## `maxWaitForLoadSecs` (type: `integer`):

After the DOM is ready, wait at most this long for the "Wait until" event, then capture whatever has rendered.

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

Extra wait after the page loads, for animations or late-loading content.

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

Wait until this element appears before capturing (optional).

## `scrollToLoadLazy` (type: `boolean`):

Scroll through the page before a full-page capture so lazy-loaded images render. Turn off if a site's sticky header disappears.

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

Maximum time for the page to start rendering (DOM ready). Slower pages fail for free.

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

Overrides the device width, e.g. 1200 for OG images.

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

Used only when device is custom.

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

1 = normal, 2 = retina.

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

Emulate prefers-color-scheme: dark for sites that support dark themes.

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

Compression quality for JPEG and WebP (1–100). Ignored for PNG and PDF.

## `pdfPaperFormat` (type: `string`):

Paper size when format is PDF.

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

Browser locale and Accept-Language, e.g. en-GB, de-DE. Affects language and cookie-banner variants.

## `includeBase64` (type: `boolean`):

Handy for AI agents/vision models that can't fetch URLs. Images over 4 MB are skipped.

## `captureErrorPages` (type: `boolean`):

Off = such pages are reported as free errors.

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

How many times a URL is retried after a browser crash or network error. Timeouts, HTTP errors and blank pages are not retried. Failures are never charged.

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

How many pages are captured in parallel. Higher needs more memory.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "format": "jpeg",
  "device": "desktop",
  "fullPage": false,
  "hideCookieBanners": true,
  "blockAds": true,
  "hideChatWidgets": true,
  "waitUntil": "load",
  "maxWaitForLoadSecs": 4,
  "delayMs": 500,
  "scrollToLoadLazy": true,
  "timeoutSecs": 30,
  "darkMode": false,
  "quality": 80,
  "pdfPaperFormat": "A4",
  "locale": "en-GB",
  "includeBase64": false,
  "captureErrorPages": false,
  "maxRetries": 1,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

One item per input URL: finalUrl, statusCode, title, width, height, bytes, screenshotUrl (direct link to the file) or error.

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

Image/PDF files saved in the default key-value store (keys start with "screenshot-").

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

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

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

```

## MCP server setup

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