# Website Screenshot Crawler (`urameshi7k/website-screenshot-crawler`) Actor

Screenshot every page of a website: give a domain and it finds all pages through the sitemap, captures them on desktop, tablet or mobile (full page, cookie banners hidden, ads blocked) and builds an HTML gallery. Also takes a plain list of URLs.

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

## Pricing

from $3.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.
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 Crawler

Screenshot every page of a website in one run. Give it a domain and it finds the pages for you through the site's sitemaps, captures each one as a full-page screenshot on desktop, on mobile or on both, and saves an HTML gallery you can open and share. Prefer a list? Paste page URLs for bulk website screenshots, or mix both. Run it from the browser, on a schedule, or as a website screenshot API.

### What it does

- **Finds the pages for you:** reads `robots.txt` and the sitemaps, including nested sitemap indexes, gzip, WordPress and Shopify. No URL list needed.
- **Captures full pages or just the first screen**, on desktop (1440×900), mobile (iPhone 14), both, or desktop, tablet (iPad Pro 11) and mobile in the same run. Tablet comes only with the other two.
- **Produces clean captures:**
  - hides cookie consent banners and newsletter pop-ups from the major platforms;
  - blocks the major ad networks and analytics trackers;
  - pauses animations and autoplay videos on sites that support reduced motion, for steady captures;
  - scrolls through the page so lazy images load;
  - waits for the images and fonts still downloading, and for late content, before capturing.
- **Saves an HTML gallery:** every run stores `gallery.html` with thumbnails of up to 300 screenshots, each linked to the full-size image. The dataset lists every screenshot.
- **Lets you pick the pages:** by URL patterns (for example only `/blog/`), by specific sitemaps (for example product sitemaps), or by pages modified after a date or within the last `7 days`.
- **Captures each new page once:** turn on *Only new pages* and schedule the run. The first run saves the current pages; later runs capture only the pages added to the sitemaps since, and a page missed on one device later gets just that device. A run that is aborted, times out or is restarted by the platform saves no progress, so its pages are captured again. Download the images you want to keep: run storage is deleted after your plan's data retention period.
- **Charges only for screenshots taken:** pages that cannot be opened or never answer are skipped and not charged, and so are pages that answer with an error (404, 500…), even slowly, unless you turn off *Skip error pages*.
- **Stays safe:** private and internal network addresses are refused.

### How to screenshot all pages of a website

1. Enter the website in **Websites**, for example `https://www.example.com`. To capture one section only, enter its address, such as `https://www.example.com/blog/`.
2. Set **Max pages** and choose the **Devices**: desktop, mobile, desktop and mobile, or all three.
3. Click **Start**. The crawler reads the site's sitemaps and captures every page it lists, up to Max pages.
4. Open `gallery.html` in the run's storage to browse the screenshots (up to 300 thumbnails), or download the list of image links as JSON, CSV or Excel.

### Bulk screenshots from a list of URLs

Paste the pages in **Specific pages**, one per line, and leave Websites empty. Each URL is captured once per device, with the same cleanup, gallery and error handling as a full-site run. Make sure **Max pages** is at least the number of URLs in your list: URLs past it are not captured, and the run log and `OUTPUT` say how many.

### Use cases

- **Website audits and client reports:** a visual inventory of a site's pages, browsable in one gallery.
- **Redesigns and migrations:** capture the whole site before the change, then again after.
- **Competitor monitoring:** capture new landing pages, products or articles the day they appear.
- **Responsive QA:** see every page on desktop and mobile side by side.
- **Website screenshot history:** dated captures of pages as they looked at a point in time, for design research and compliance. Download the ones you want to keep.

### Input examples

Whole website on desktop, up to 50 pages:

```json
{
  "websites": ["https://www.example.com"],
  "maxPages": 50
}
```

Blog posts updated in the last 30 days, on desktop and mobile:

```json
{
  "websites": ["https://www.example.com/blog/"],
  "modifiedAfter": "30 days",
  "devices": "desktop-and-mobile"
}
```

Specific pages, first screen only, as PNG:

```json
{
  "urls": ["https://www.example.com/pricing", "https://www.example.com/contact"],
  "fullPage": false,
  "format": "png"
}
```

Daily capture of new pages (schedule this run):

```json
{
  "websites": ["https://competitor.example"],
  "onlyNewPages": true,
  "monitoringName": "competitor-new-pages"
}
```

The first monitoring run only saves the list of current pages. Later runs capture just the pages that appeared since then. If the first run could not read some sitemaps, a website's robots.txt or any sitemap of a website, its status says so, and the next run that reads them adds their pages to that list instead of capturing them. If more new pages appear than Max pages allows, the rest are captured by the next runs. A page that failed or missed a device is retried by the next runs, after the new pages no run has taken yet, so pages that keep failing never keep newer ones out. Pages in *Specific pages* are captured, and charged, on every run, the first one included, and fill Max pages before new pages: keep Max pages above their number. Runs that share the list (the same websites or *Monitoring name*) must not overlap: two at once capture, and charge, the same new pages, so schedule them further apart than a run takes.

### Output

Each screenshot is stored as an image in the run's key-value store, and the dataset gets one item per screenshot:

```json
{
  "url": "https://www.example.com/pricing",
  "title": "Pricing · Example",
  "device": "desktop",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/…/records/screenshot-www-example-com-pricing-1a2b3c4d-desktop.jpg",
  "imageWidth": 1440,
  "imageHeight": 6380,
  "fullPage": true,
  "truncated": false,
  "format": "jpeg",
  "bytes": 655321,
  "statusCode": 200,
  "captureTimeMs": 6120,
  "source": "sitemap",
  "lastmod": "2026-11-12T09:30:00Z"
}
```

The key-value store also holds:

- **`gallery.html`:** thumbnails of up to 300 screenshots, each one linking to the full-size image. Its header says when the run took more.
- **`OUTPUT`:** a run summary with the pages found per website, the failed pages with reasons, what Max pages left out, and whether the run stopped early.

### Website screenshot API and integrations

Start a run and get the results in one HTTP call (it waits up to 5 minutes, so keep these runs small):

```bash
curl -X POST "https://api.apify.com/v2/acts/urameshi7k~website-screenshot-crawler/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.example.com"], "devices": "desktop-and-mobile"}'
```

The response is the list of screenshots, each with its `screenshotUrl`. For whole websites, start the run without waiting and read the dataset when it finishes. The **API** tab shows ready-made code for the Python and JavaScript clients.

You can also:

- **schedule** runs, for example a daily capture of new pages;
- send results to **Make, Zapier, n8n, Google Drive or Slack**, or call your own **webhook** when a run finishes;
- give **AI agents** this tool through the Apify MCP server: add `https://mcp.apify.com?tools=urameshi7k/website-screenshot-crawler` to your MCP client.

### Pricing

You pay per successful screenshot, from $3 to $4 per 1,000 depending on your Apify plan (see the Pricing tab). Each device counts as one screenshot, so 20 pages on desktop and mobile make 40 screenshots. Pages that fail to load or never answer are free, and so are error pages unless you turn off *Skip error pages*.

Two settings control the cost:

- **Max pages:** limits how many pages a run captures.
- **Maximum cost per run:** set it in the run options, and the run stops cleanly before going past that amount. With *Only new pages*, the screenshots it did not take are taken by the next runs.

### Tips

- **File size:** JPEG at quality 80 is about 5–10× smaller than PNG and looks the same for most pages.
- **High resolution:** sharper images with twice the pixel density on desktop and tablet (4 times larger) and three times on mobile (9 times larger).
- **Very long pages** are cut at *Max page height* (15,000 px by default), so the images stay usable. A JPEG holds at most 65,500 px, so with *High resolution* on mobile a JPEG stops at 21,833 px; PNG goes further.
- **Slow or heavy sites:** raise the *Page timeout*. A page still loading when the timeout hits is captured as rendered and counts as a screenshot. If the server sent nothing at all, or answered with an error (with *Skip error pages* on, the default), the page is skipped and free.
- **Dark mode:** asks sites that support it for their dark theme.
- **Speed:** a run captures about 6 pages at a time with the default 4 GB of memory. More memory captures more pages in parallel (up to 10).

### FAQ

**How do I take a full-page screenshot of every page of a website?**
Enter the website and set Max pages. The crawler finds the pages through the site's sitemaps and captures each one top to bottom, as long as Full page is on.

**Can I screenshot a list of URLs in bulk?**
Yes. Paste them in Specific pages, one per line. Each one is captured on every device you choose.

**Can I use it as a screenshot API?**
Yes. Every run can be started through the Apify API, with the screenshots returned as JSON. See *Website screenshot API and integrations* above.

**Can it capture pages behind a login?**
No. It captures public pages only.

**Does it accept cookies on my behalf?**
No. Consent banners and pop-ups are hidden in the screenshot. Nothing is clicked or accepted.

**What if a website has no sitemap?**
Its start page is captured, and you can add more pages in *Specific pages*. *Only new pages* needs a sitemap: on a website without one it cannot find new pages, and the run's status says so.

**Is it legal to use?**
It captures publicly available pages. How you use the screenshots is your responsibility, including the website's terms and copyright.

### Related Actors

- [Sitemap Extractor & URL Finder](https://apify.com/urameshi7k/sitemap-extractor): get the full list of a website's URLs from its sitemaps, with last-modified dates, as JSON, CSV or Excel.

# Actor input Schema

## `websites` (type: `array`):

Domains or sitemaps to capture page by page, for example example.com or https://example.com/blog/. Pages are found through robots.txt and the sitemaps. A website without a sitemap gets its start page captured; Only new pages needs a sitemap.

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

Exact page URLs to capture, in addition to (or instead of) whole websites.

## `maxPages` (type: `integer`):

Maximum number of pages to capture in this run. Each device counts as one screenshot, so 20 pages on desktop and mobile = 40 screenshots. Pages past it are not captured; the run log and OUTPUT say so.

## `devices` (type: `string`):

Which screens to capture each page on. Desktop is 1440×900, tablet is an iPad Pro 11 and mobile is an iPhone 14.

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

Capture the whole page height (up to the max height below). Turn off to capture only the first screen.

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

JPEG files are much smaller; PNG is lossless.

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

From 10 to 100. Ignored for PNG.

## `retina` (type: `boolean`):

Render like a retina screen: twice the pixel density on desktop and tablet (images 4 times larger), three times on mobile (9 times larger).

## `maxPageHeight` (type: `integer`):

Very long pages are cut at this height so the image stays usable. With High resolution on mobile, a JPEG stops at 21,833 px, the most it holds.

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

Hide consent banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and others) and newsletter pop-ups (Klaviyo, Privy, Attentive, OptinMonster, Mailchimp and others) before capturing. Nothing is clicked or accepted on your behalf.

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

Block requests to major ad networks and analytics trackers. Pages load faster and screenshots look cleaner.

## `reduceMotion` (type: `boolean`):

Ask pages to skip animations and not autoplay videos (prefers-reduced-motion). Captures are faster and steadier. Turn off to capture moving content as it plays.

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

Ask pages for their dark color scheme (prefers-color-scheme: dark).

## `includeUrlPatterns` (type: `array`):

Capture only pages whose URL matches one of these regular expressions, for example /blog/ or /products/.

## `excludeUrlPatterns` (type: `array`):

Skip pages whose URL matches one of these regular expressions, for example /tag/ or ?page=

## `sitemapUrlPatterns` (type: `array`):

Read pages only from sitemaps whose URL matches, for example post-sitemap or products. Sitemap indexes are always followed.

## `modifiedAfter` (type: `string`):

Capture only pages whose sitemap lastmod is after this moment: a date (2025-01-31) or a period such as "7 days".

## `onlyNewPages` (type: `boolean`):

Capture only pages that the previous run did not see in the website's sitemaps. Schedule it to capture each new page once, and do not let two runs with the same list overlap. New pages past Max pages are captured by the next runs; screenshots missed because of an error or the spending limit are retried after the pages no run has taken yet. Specific pages are captured on every run and fill Max pages first.

## `monitoringName` (type: `string`):

Optional name for the saved list of known pages. Runs with the same name share it.

## `baselineOnFirstRun` (type: `boolean`):

On the first monitoring run, remember the current pages without capturing them.

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

When the page counts as loaded before the screenshot.

## `delaySecs` (type: `integer`):

Minimum time between the page load and the screenshot, for animations and late content. Scrolling and image loading count toward it.

## `scrollPage` (type: `boolean`):

Scroll through full pages before capturing, so lazy-loaded images appear.

## `skipErrorPages` (type: `boolean`):

Do not capture (or charge for) pages that answer with HTTP 400 or higher.

## `createGallery` (type: `boolean`):

Save gallery.html in the key-value store with thumbnails of up to 300 screenshots. The dataset lists all of them.

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

How many pages to capture at the same time. Leave empty to fit the run memory automatically (one page per 600 MB, up to 10). Values above what fits in memory are lowered.

## `navigationTimeoutSecs` (type: `integer`):

Pages still loading after this many seconds are captured as rendered. Pages whose server sent nothing at all, or answered with an error (with Skip error pages on, the default), are skipped and not charged.

## Actor input object example

```json
{
  "websites": [
    "https://apify.com"
  ],
  "maxPages": 5,
  "devices": "desktop",
  "fullPage": true,
  "format": "jpeg",
  "quality": 80,
  "retina": false,
  "maxPageHeight": 15000,
  "hideCookieBanners": true,
  "blockAds": true,
  "reduceMotion": true,
  "darkMode": false,
  "onlyNewPages": false,
  "baselineOnFirstRun": true,
  "waitUntil": "load",
  "delaySecs": 1,
  "scrollPage": true,
  "skipErrorPages": true,
  "createGallery": true,
  "navigationTimeoutSecs": 45
}
```

# Actor output Schema

## `screenshots` (type: `string`):

One item per screenshot: page URL, title, device, image size, HTTP status and a link to the image.

## `gallery` (type: `string`):

A single HTML page with thumbnails of up to 300 screenshots, linking to the full-size images.

## `summary` (type: `string`):

Pages found per website, failed pages with reasons, what Max pages left out and whether the run stopped early.

# 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 = {
    "websites": [
        "https://apify.com"
    ],
    "maxPages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("urameshi7k/website-screenshot-crawler").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 = {
    "websites": ["https://apify.com"],
    "maxPages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("urameshi7k/website-screenshot-crawler").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 '{
  "websites": [
    "https://apify.com"
  ],
  "maxPages": 5
}' |
apify call urameshi7k/website-screenshot-crawler --silent --output-dataset

```

## MCP server setup

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

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/DlbQTzWuJ9LxDV6wl/builds/dei5a6jUyD1OQDe4J/openapi.json
