# Website Screenshot API: Bulk Full-Page PNG & JPEG (`data_factory_nerd/website-screenshot-api`) Actor

Take screenshots of any list of URLs: full page or viewport, PNG or JPEG, custom width/height, retina scale, mobile size, wait for lazy-loaded images, hide cookie banners or elements, or capture one element. Each image gets a public URL. Failed pages are not charged. $4 per 1,000 screenshots.

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

## Pricing

from $3.60 / 1,000 screenshot takens

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

### What is Website Screenshot API?

**Website Screenshot API** takes **screenshots of any list of URLs** in bulk: one page or 100,000. Paste URLs, choose **full page** or **viewport**, **PNG or JPEG**, the **screen size** (desktop, laptop, tablet, mobile) and **retina** pixel ratio, and get back one row per page with a **public image URL** you can open, download or embed right away.

It runs a real Chromium browser, scrolls the page so **lazy-loaded images** appear, **hides cookie banners** (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics and more) and can capture a **single element** with a CSS selector. **Pages that fail to load are not charged.**

Use it as a **URL to image API**, a **bulk screenshot tool**, a **full page screenshot API**, or an alternative to screenshot SaaS services (ScreenshotOne, Urlbox, ApiFlash, ScreenshotAPI) with simple pay-per-screenshot pricing.

### What data can you get?

| Field | Example |
|---|---|
| `screenshotUrl` | https://api.apify.com/v2/key-value-stores/…/records/apify-com-1a2b3c4d.png |
| `url` / `finalUrl` / `statusCode` | https://apify.com / https://apify.com/ / 200 |
| `title` | Apify: Full-stack web scraping and data extraction platform |
| `format` / `fullPage` / `selector` | png / true / null |
| `viewportWidth` / `viewportHeight` / `deviceScaleFactor` | 1280 / 800 / 1 |
| `imageWidth` / `imageHeight` / `bytes` | 1280 / 9214 / 2481033 |
| `truncated` | false (true if the page was taller than **Max full-page height**) |
| `loadTimeMs` / `takenAt` | 6120 / 2026-11-19T11:20:05Z |
| `notes` | "Page returned HTTP 404; the screenshot shows that page." |

The images are stored in the run's **key-value store** (Storage tab), and every row links to its image, so the **Output** table shows thumbnails.

### Use cases

- 🖼️ **Website thumbnails and previews** for directories, link previews, portfolios and dashboards
- 📈 **Visual monitoring and archiving**: snapshot competitor pricing pages, landing pages or your own site every day (schedule it)
- 🔍 **SEO and QA**: check how pages render on desktop and mobile, spot broken layouts after a deploy
- ⚖️ **Compliance and evidence**: keep dated screenshots of ads, terms pages or listings
- 🤖 **AI and LLM pipelines**: feed page images to vision models

### How to take website screenshots in bulk

1. Paste URLs into **URLs** (one per line; plain domains work too).
2. Choose **Full page** or viewport, **PNG/JPEG**, and the **viewport width** (1920 desktop, 1280 laptop, 390 phone + **Mobile browser**).
3. Click **Start**. Open the **Output** tab to see thumbnails, or download the table as JSON, CSV or Excel. Every row has a public `screenshotUrl`.

#### Input example

```json
{
  "urls": ["https://apify.com", "https://www.wikipedia.org", "stripe.com/pricing"],
  "format": "png",
  "fullPage": true,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "hideCookieBanners": true
}
```

Mobile, retina, one element:

```json
{
  "urls": ["https://news.ycombinator.com"],
  "format": "jpeg",
  "jpegQuality": 80,
  "fullPage": false,
  "viewportWidth": 390,
  "viewportHeight": 844,
  "deviceScaleFactor": 2,
  "mobile": true
}
```

#### Output example

```json
{
  "url": "https://www.wikipedia.org",
  "finalUrl": "https://www.wikipedia.org/",
  "statusCode": 200,
  "title": "Wikipedia",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/AbC123xyz/records/www-wikipedia-org-5f3e2a1b.png",
  "format": "png",
  "fullPage": true,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "deviceScaleFactor": 1,
  "imageWidth": 1280,
  "imageHeight": 1622,
  "bytes": 412337,
  "truncated": false,
  "loadTimeMs": 3810,
  "notes": null,
  "takenAt": "2026-11-19T11:20:05.512Z"
}
```

### How much does it cost?

**Pay per screenshot: $4 per 1,000 screenshots** ($0.004 each; $3.60 per 1,000 on paid Apify plans). The browser time is included, so there are no extra compute charges to work out, even for heavy full-page captures.

- 100 screenshots = $0.40
- 1,000 screenshots = $4
- 10,000 screenshots = $40
- Apify's free plan includes $5 of monthly usage, enough for about 1,250 screenshots.

**Pages that time out or fail to load, and invalid URLs, are not charged.** They are listed in the run's `SUMMARY` record with the reason. Use **Max screenshots** to cap the cost of a run.

### API example

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_factory_nerd/website-screenshot-api").call(run_input={
    "urls": ["https://apify.com", "https://www.wikipedia.org"],
    "fullPage": True,
    "format": "png",
})
for shot in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(shot["url"], shot["screenshotUrl"], shot["imageWidth"], shot["imageHeight"])
```

You can also call it over plain HTTP (`run-sync-get-dataset-items`), from Make, Zapier, n8n, or schedule it in Apify for daily visual monitoring.

### FAQ

#### Are the image links public?

Yes. Each `screenshotUrl` points to the image in the run's key-value store and opens without a login, so you can embed it or hand it to another tool. Storage of finished runs follows your Apify data-retention settings; download images you want to keep long-term.

#### How do I capture the whole page, including lazy-loaded images?

Keep **Full page** and **Scroll to load lazy images** on. The browser scrolls down the page first, then captures it. Very long pages are cut at **Max full-page height** (default 15,000 px) and the row says `truncated: true`.

#### Can it take mobile screenshots?

Yes. Turn on **Mobile browser**, set the width to e.g. 390 and the height to 844, and use **Pixel ratio 2 or 3** for retina-sharp images.

#### Can I screenshot pages behind a login?

No. It captures public pages only. Pages that block automated browsers (CAPTCHA, bot walls) may show that wall instead of the content.

#### Why does a screenshot show a cookie banner or popup?

The common consent tools are hidden automatically. For anything else, add its CSS selector to **Hide elements**, e.g. `#intercom-container`.

#### Found a bug?

Open an issue on the **Issues** tab with the URL and what you expected. We usually fix things within a day.

### Related Actors by data_factory_nerd

| Actor | What it does |
|---|---|
| [Website Logo & Brand Extractor](https://apify.com/data_factory_nerd/website-brand-logo-extractor) | Logo, favicon, brand colors and social links of any website |
| [Website Tech Stack Detector](https://apify.com/data_factory_nerd/tech-stack-detector) | CMS, analytics, ad pixels, CDN and hosting of any website |
| [Bulk URL Status & Redirect Checker](https://apify.com/data_factory_nerd/bulk-url-status-redirect-checker) | Status codes and redirect chains for thousands of URLs |
| [Broken Link Checker](https://apify.com/data_factory_nerd/broken-link-checker) | Find broken links and images across a website |

# Actor input Schema

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

One page per line: full URLs (https://stripe.com/pricing) or domains (apify.com). Duplicates are removed.

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

PNG is lossless; JPEG files are much smaller.

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

Only used for JPEG.

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

Capture the whole scrollable page. Turn off to capture only the visible viewport.

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

Browser window width. 1280 = laptop, 1920 = desktop, 390 = phone.

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

Browser window height (the image height when Full page is off).

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

1 = normal, 2 = retina/HiDPI (image is 2x larger).

## `mobile` (type: `boolean`):

Use a mobile user agent and touch support (combine with width 390).

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

When the page counts as loaded.

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

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

## `scrollToBottom` (type: `boolean`):

Scroll through the page before a full-page capture so lazy-loaded images appear.

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

Hide common cookie/consent banners (OneTrust, Cookiebot, Didomi, Quantcast, TrustArc, Usercentrics and similar) before capturing.

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

Extra CSS selectors to hide before capturing, e.g. chat widgets: #intercom-container

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

Optional. Screenshot only the first element matching this selector instead of the page.

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

Very long pages are cut at this height (CSS pixels) to keep files reasonable.

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

Give up on a page after this many seconds (it is then not charged).

## `maxItems` (type: `integer`):

Stop after this many screenshots (controls cost). 0 = no limit.

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

How many pages are captured at the same time. Each page needs about 640 MB of run memory, so with the default 2 GB at most 3 run in parallel.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org",
    "https://news.ycombinator.com"
  ],
  "format": "png",
  "jpegQuality": 80,
  "fullPage": true,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "deviceScaleFactor": 1,
  "mobile": false,
  "waitUntil": "load",
  "delayMs": 500,
  "scrollToBottom": true,
  "hideCookieBanners": true,
  "maxHeight": 15000,
  "timeoutSecs": 45,
  "maxItems": 0,
  "maxConcurrency": 4
}
```

# 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://www.wikipedia.org",
        "https://news.ycombinator.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_factory_nerd/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://www.wikipedia.org",
        "https://news.ycombinator.com",
    ] }

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

```

## MCP server setup

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