# Website Screenshot API: Full Page, Mobile, PDF (`fjordlabs/website-screenshot`) Actor

Screenshot any list of URLs as PNG, JPEG or PDF: full page or viewport, desktop/tablet/mobile presets, dark mode, element screenshots, cookie banners hidden. Files are stored with a direct link. Failed URLs are free.

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

## Pricing

from $1.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, Dark Mode & PDF

Take **screenshots of any list of URLs** in one run: **PNG**, **JPEG** or **PDF**, the **visible window or the full page**, on **desktop, laptop, tablet or mobile**, in **dark mode**, or just **one element** (a pricing table, a chart, a header). Cookie banners are hidden automatically, and you can block ads and trackers. Every file is saved with a **direct link**, and you get one clean dataset row per URL with the size, title, HTTP status and timing.

Built for marketers and SEO agencies (SERP and landing-page snapshots, client reports), developers (visual checks after a release, link previews, thumbnails), researchers and archivists (dated evidence of what a page showed), e-commerce teams (competitor price pages) and **AI agents** that need to "see" a web page. No login, no API key, no browser to install.

![Example output of Website Screenshot API: a table with url, title, statusCode, size, bytes and more](https://api.apify.com/v2/key-value-stores/bp61pnREuVYPEvqbu/records/output-website-screenshot)

### What you get

- 📸 **PNG, JPEG or PDF.** JPEG quality and PDF paper size (A4, Letter, …) are adjustable.
- 📜 **Full-page screenshots** with lazy-loaded images scrolled into view first. Very long pages are cut at a height you choose, and the row tells you the real page height.
- 📱 **Device presets:** desktop 1920×1080, laptop 1366×768, tablet 820×1180 (retina, touch) and mobile 412×915 (retina, phone browser), or any **custom viewport** with 1×–3× pixel density.
- 🌙 **Dark mode** (`prefers-color-scheme: dark`) for sites that have a dark theme.
- 🎯 **Element screenshots** with a CSS selector, and **wait for an element** (e.g. a chart) before capturing.
- 🍪 **Cookie banners hidden** (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint, TrustArc, CookieYes, Complianz and many more, plus their dark overlays). Nothing is clicked or accepted.
- 🚫 **Ad and tracker blocking** (optional) for cleaner, faster captures.
- ⏱️ **Wait options:** `load`, `domcontentloaded` or `networkidle`, plus an extra delay for animations.
- 🔗 **Direct file links** in every row (`screenshotUrl`), so you can drop them into a spreadsheet, a report or an agent's context.

### Why this one?

- **Failed URLs are free.** 404s, timeouts, pages that never show your element, typos and blocked pages come back as rows with an `errorType` and `error`, and aren't charged.
- **Clean rows, not just files.** Title, final URL after redirects, HTTP status, width × height, bytes, PDF page count, load time.
- **Polite and safe.** It follows each site's robots.txt, opens at most one page per second per site, retries 429/5xx with backoff, and refuses local/private network addresses.
- **Cheap and predictable.** One flat price per screenshot, whatever the options (see Pricing).

### Input example

```json
{
  "urls": ["https://apify.com", "https://www.python.org/"],
  "format": "png",
  "fullPage": true,
  "viewport": "mobile",
  "darkMode": false,
  "hideCookieBanners": true,
  "blockAds": true,
  "waitUntil": "load",
  "delayMs": 1000
}
```

Element screenshot: add `"selector": ".pricing-table"`. Wait for a chart: `"waitForSelector": "#chart canvas"`. PDF: `"format": "pdf", "pdfFormat": "A4"`.

### Output example (one row)

```json
{
  "url": "https://www.python.org/",
  "finalUrl": "https://www.python.org/",
  "statusCode": 200,
  "title": "Welcome to Python.org",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/screenshot-0002-www-python-org.png",
  "key": "screenshot-0002-www-python-org.png",
  "format": "png",
  "contentType": "image/png",
  "width": 1920,
  "height": 2755,
  "bytes": 493131,
  "pdfPages": null,
  "fullPage": true,
  "pageHeight": 2755,
  "truncated": false,
  "viewport": {"preset": "desktop", "width": 1920, "height": 1080, "deviceScaleFactor": 1, "mobile": false},
  "darkMode": false,
  "loadTimeMs": 1450,
  "totalTimeMs": 2400,
  "capturedAt": "2026-11-08T02:14:58+00:00"
}
```

Failed URLs look like `{"url": "https://example.com/nope", "statusCode": 404, "errorType": "http-status", "error": "Page returned HTTP 404."}`. Error types: `http-status`, `timeout`, `network`, `wait-timeout`, `selector-not-found`, `blocked-by-robots`, `robots-unreachable`, `bot-challenge`, `private-address`, `invalid-url`, `too-large`, `internal`.

The files are in the run's **key-value store** (Storage tab → Key-value store), named `screenshot-<position>-<site-and-path>.<png|jpg|pdf>`. A `SUMMARY` record counts captured and failed URLs.

### Pricing

| Event | Price |
|---|---|
| Actor start | $0.00005 |
| Screenshot (PNG, JPEG, PDF, full page or element) | $0.002 (**$2 per 1,000**) |

Failed URLs are free. Platform usage is included. Store discount tiers lower the price further.

Examples: 100 landing pages on mobile and desktop = 200 screenshots = **$0.40**. A daily full-page snapshot of 20 competitor pages ≈ **$1.20 per month**.

### Limits

- **Default memory is 1 GB** (a real Chromium browser needs it). Up to 5 pages in parallel; give the run 2–4 GB for 4–5. Full-page captures run one at a time below 2 GB, so long pages never run out of memory.
- **Full-page height** is capped by `maxFullPageHeight` (default 10,000 px, max 16,000) and by Chromium's limit of about 16,000 device pixels (so 8,000 px tall on 2× mobile). The row shows `pageHeight` and `truncated: true` when the page was cut.
- **Sites with strong bot protection** (Cloudflare challenges, some news sites) may answer 403 to cloud servers or to our identified browser, or show a "Just a moment..." check page; those URLs come back as free errors. A proxy can help for country-specific pages.
- **robots.txt is respected.** Pages that a site's robots.txt closes to crawlers (our user agent token is `FjordlabsScreenshot`) are not opened and come back as free `blocked-by-robots` rows.
- **No logins.** Only public pages; pages behind a login show the login screen.
- **Cookie banners** are hidden by a list of known consent tools plus a generic check; a rare custom banner can still show. Hiding never clicks "accept".
- **Links** to the files work for anyone who has the link (the store ID is random). Files are kept as long as your Apify plan keeps run storage; download them if you need them longer.

### Changelog

- **2026-11-21:** Public on the Apify Store.
- **2026-11-15:** A domain that doesn't exist now gets a clear "site not found" message instead of a robots.txt one.
- **2026-11-10:** Invalid input now ends as a successful run with one free error row that says what to fix, instead of a failed run.
- **2026-11-08:** Built, reviewed and tested on Apify before launch.

### How to use Website Screenshot API: Full Page, Mobile, PDF

1. Paste the page **URLs** (one per line).
2. Pick a **format** (PNG, JPEG or PDF), a **device** (desktop, laptop, tablet, mobile or custom) and turn on **fullPage** if you want the whole page.
3. Optional: **darkMode**, an element **selector**, **waitForSelector** for late content, **blockAds**. Cookie banners are hidden by default.
4. Click **Start**; each row has a **screenshotUrl** link to the file in the run's key-value store.

### Use it from code (API)

Run it from Python with the official client (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("fjordlabs/website-screenshot").call(run_input={'urls': ['https://example.com'], 'format': 'png', 'fullPage': True, 'viewport': 'desktop'})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Or with one HTTP call that returns the results directly:

```bash
curl -X POST "https://api.apify.com/v2/acts/fjordlabs~website-screenshot/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"urls": ["https://example.com"], "format": "png", "fullPage": true, "viewport": "desktop"}'
```

It also works with Make, Zapier, n8n, Google Sheets and webhooks through Apify's integrations.

### Use with AI agents (MCP)

Agents can call this Actor as a tool through Apify's MCP server (mcp.apify.com). Add `fjordlabs/website-screenshot` to the server's Actors. Results are clean JSON with a small default size, so they fit well in an agent's context.

### FAQ

**Where are the screenshots?**
In the run's key-value store. Every dataset row has a direct screenshotUrl link and the record key, so you can download them via the API or open them in a browser.

**Does it hide cookie banners?**
Yes, by default. It hides the pop-ups of common consent tools and their dark overlays with CSS. It never clicks accept, so no consent is given on your behalf.

**How long can a full-page screenshot be?**
Up to maxFullPageHeight (default 10,000 px, max 16,000), and at most about 16,000 device pixels because of a Chromium limit. Longer pages are cut and marked truncated, with the real pageHeight.

**Why did a site return 403?**
Some sites block cloud servers or automated browsers. Those URLs are free error rows; a proxy in the input can help for country-specific pages.

**Does it respect robots.txt?**
Yes. It identifies itself as FjordlabsScreenshot, follows each site's robots.txt and opens at most one page per second per site. Disallowed pages are free error rows.

**Am I charged for errors?**
No. Rows that fail are never charged; you only pay for results.

### More from fjordlabs

- [Google Trends Scraper](https://apify.com/fjordlabs/google-trends)
- [Google Trends Trending Now](https://apify.com/fjordlabs/google-trending-now)
- [Google News Scraper](https://apify.com/fjordlabs/google-news)
- [Google Play Reviews & App Data Scraper](https://apify.com/fjordlabs/google-play-reviews)
- [App Store Reviews & App Data Scraper (iOS)](https://apify.com/fjordlabs/app-store-reviews)
- [Bulk PageSpeed & Core Web Vitals Audit](https://apify.com/fjordlabs/pagespeed-audit)
- [Google Autocomplete Keyword Expander](https://apify.com/fjordlabs/google-autocomplete)
- [App Store & Google Play Search Rank + Top Charts (ASO)](https://apify.com/fjordlabs/app-store-search-charts)
- [SEO & AI-Search Readiness Audit](https://apify.com/fjordlabs/seo-ai-readiness-audit)
- [Website Tech Stack Detector](https://apify.com/fjordlabs/tech-stack-detector)
- [Steam Reviews & Game Data Scraper](https://apify.com/fjordlabs/steam-reviews)
- [Chrome Web Store Extension Details Scraper](https://apify.com/fjordlabs/chrome-web-store)
- [Google Ads Transparency Center Scraper](https://apify.com/fjordlabs/google-ads-transparency)
- [Hacker News Scraper](https://apify.com/fjordlabs/hacker-news)
- [Shopify Store Products Scraper](https://apify.com/fjordlabs/shopify-products)
- [Sitemap URL Extractor](https://apify.com/fjordlabs/sitemap-extractor)
- [EU Public Tenders Scraper (TED)](https://apify.com/fjordlabs/eu-tenders-ted)
- [Domain Intel: WHOIS/RDAP, DNS, SSL, SPF/DMARC](https://apify.com/fjordlabs/domain-intel)
- [App Store & Google Play App Details + Developer Portfolio](https://apify.com/fjordlabs/app-details-portfolio)
- [Wayback Machine Site History](https://apify.com/fjordlabs/wayback-history)

# Actor input Schema

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

Pages to capture, one per line. Domains without https:// are fine. Each URL gives one file and one dataset row.

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

PNG (sharp, lossless), JPEG (much smaller files) or PDF (printable, selectable text).

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

Capture the whole scrollable page instead of only the visible window. Lazy-loaded images are scrolled into view first. Very long pages are cut at the max height below.

## `viewport` (type: `string`):

Desktop 1920×1080, laptop 1366×768, tablet 820×1180 (2× pixels, touch) or mobile 412×915 (2× pixels, phone browser). Choose custom to set width and height yourself.

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

Used only with viewport = custom.

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

Used only with viewport = custom.

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

1 = normal, 2 = retina, 3 = extra sharp. Leave empty for the preset's default. Higher values make larger files.

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

Ask the site for its dark theme (prefers-color-scheme: dark). Sites without a dark theme look the same.

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

Hide common cookie/consent pop-ups (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast and more) and their dark overlays. Nothing is clicked or accepted.

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

Block requests to common ad and analytics networks. Pages often load faster; empty ad slots may remain.

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

When the page counts as loaded: 'load' (default), 'domcontentloaded' (faster) or 'networkidle' (no network traffic for 0.5 s; best for single-page apps, slower).

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

CSS selector that must be visible before the screenshot, e.g. '#chart canvas'. If it never appears, the URL fails (free).

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

Wait this long after loading, for animations and late content.

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

CSS selector of one element to capture instead of the page, e.g. 'header' or '.pricing-table'. The first visible match is used. Ignored for PDF.

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

1–100. Used only for JPEG.

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

Used only for PDF.

## `maxFullPageHeight` (type: `integer`):

Full-page screenshots are cut at this height (CSS pixels; also capped at 16,000 device pixels, a browser limit). Rows show the real page height and 'truncated'.

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

Max time to load a page (and to wait for the element). Pages that are still loading after this are captured as they are, if anything is shown.

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

Pages captured at the same time. 2 fits the default 1 GB memory (full-page mode runs one at a time below 2 GB); use up to 5 with 2–4 GB. One site is never opened more than once per second.

## `maxUrls` (type: `integer`):

Upper limit on URLs captured in one run (after removing duplicates).

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

Not needed for most sites. Use it only if a site blocks datacenter traffic or you need a page as seen from a certain country.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://www.python.org/"
  ],
  "format": "png",
  "fullPage": false,
  "viewport": "desktop",
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "darkMode": false,
  "hideCookieBanners": true,
  "blockAds": false,
  "waitUntil": "load",
  "delayMs": 1000,
  "jpegQuality": 80,
  "pdfFormat": "A4",
  "maxFullPageHeight": 10000,
  "timeoutSecs": 30,
  "maxConcurrency": 2,
  "maxUrls": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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",
        "https://www.python.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fjordlabs/website-screenshot").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://example.com",
        "https://www.python.org/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("fjordlabs/website-screenshot").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://example.com",
    "https://www.python.org/"
  ]
}' |
apify call fjordlabs/website-screenshot --silent --output-dataset

```

## MCP server setup

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

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/swXG08SNghvyHnqZL/builds/Kic182y8LylvLHzwh/openapi.json
