# Website Screenshot: Bulk, Full Page, Mobile & PDF (`khanjankavani/website-screenshot-bulk`) Actor

Fast bulk website screenshots. Paste many URLs, get full-page PNG, JPEG or PDF with lazy images loaded and cookie banners hidden. Desktop, tablet or mobile. Failed pages are never charged.

- **URL**: https://apify.com/khanjankavani/website-screenshot-bulk.md
- **Developed by:** [Khanjan Kavani](https://apify.com/khanjankavani) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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.

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: Bulk, Full Page, Mobile & PDF

Paste a list of URLs and get a clean screenshot of every page: **full page from top to bottom, with lazy-loaded images actually loaded and cookie banners hidden**. Desktop, tablet or mobile. PNG, JPEG or PDF. Many pages run in parallel, so big lists finish fast.

**Try it free first:** the prefilled example takes one screenshot so you can see the quality before running your own list.

### Why use this one

- **Real full-page captures.** The page is scrolled to the bottom first, so images and sections that load on scroll are in the picture, not grey boxes.
- **No cookie popups.** Common consent banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, CookieYes, Osano, Termly and more) are hidden with CSS. Nothing is clicked or accepted. Add your own selectors to hide chat widgets or newsletter popups.
- **Bulk and fast.** Up to 20 pages in parallel; memory is managed automatically.
- **Pay only for screenshots you get.** Pages that fail (site down, timeout, wrong URL) are **not charged**, and the reason is shown in plain English.
- **Mobile that looks like a phone.** Mobile and tablet use a real phone/tablet browser profile and sharp high-DPI pixels (iPhone size 390×844 at 2x; choose 1x–3x).
- **Respects your "max cost per run".** It stops cleanly at your limit and tells you how many pages were skipped.

### How to use

1. Paste your URLs (one per line).
2. Choose device, full page on/off and format.
3. Run. Open the **Screenshots** tab of the output to see thumbnails, or download the files from the key-value store.

### Output

One dataset row per URL:

```json
{
  "url": "https://apify.com/",
  "finalUrl": "https://apify.com/",
  "status": 200,
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/0001-apify-com.png",
  "key": "0001-apify-com.png",
  "format": "png",
  "device": "desktop",
  "viewportWidth": 1366,
  "pageHeight": 9120,
  "captured": 9120,
  "bytes": 2483113,
  "ms": 6210,
  "error": null
}
```

Files are named in your URL order (`0001-…`, `0002-…`), so they sort the same way as your list.

### Settings

| Setting | Default | Notes |
|---|---|---|
| URLs | - | One per line; `example.com` without https works |
| Device | Desktop 1366×768 | Desktop HD, laptop, tablet, mobile |
| Full page | on | Off = visible screen only |
| Format | PNG | JPEG (smaller), PDF (one long page) |
| Hide cookie banners | on | CSS only, never clicks "accept" |
| Also hide these elements | - | Your CSS selectors |
| Extra wait | 1000 ms | For animations / late content |
| Wait until | Page loaded | HTML ready (fast) or Network quiet (complete) |
| Page timeout | 45 s | Failed pages are free |
| Max full-page height | 15,000 px | Longer pages are cut (browser limit: about 16,000 device pixels, so ~8,000px at 2x) |
| Pixel ratio | 1x desktop, 2x mobile | 1–3 |
| Dark mode | off | Asks the site for its dark theme |
| Pages in parallel | 5 | 1–20 |

### Use it from your code or a schedule

Run it on a schedule to track how competitor pages, your own landing pages or prices change over time, or call it from the API:

```bash
curl -X POST "https://api.apify.com/v2/acts/khanjankavani~website-screenshot-bulk/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com"],"device":"mobile","format":"jpeg"}'
```

### Pricing

Pay per screenshot taken (see the Pricing tab) plus a small start fee per run. Failed pages cost nothing.

### Good to know

- Pages behind a login or strong bot protection may not render; those fail and are not charged.
- Some sites show different content to different countries; use the proxy setting to choose a datacenter location.
- Only take screenshots of pages you are allowed to capture and use.

Questions or a missing feature? Open an issue on the Issues tab. We answer within 2 working days.

# Actor input Schema

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

One URL per line (or paste a list). "example.com" without https:// works too. Duplicates are removed.

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

Screen size and type. Tablet and mobile use a phone/tablet browser and sharp high-DPI pixels.

## `pixelRatio` (type: `integer`):

Optional: 1 = normal, 2 = sharp (retina), 3 = extra sharp. Default: 1 for desktop, 2 for tablet/mobile. Higher ratios limit full-page height (16,000 device pixels): 2x ≈ 8,000px page, 3x ≈ 5,300px.

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

Capture the whole page from top to bottom. The page is scrolled first so lazy-loaded images appear. Off = only the visible screen.

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

Output file type.

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

Hides common cookie / consent popups (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, CookieYes and more). Nothing is clicked or accepted.

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

Optional CSS selectors to hide, e.g. .chat-widget or #newsletter-popup.

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

Time for animations and late content to settle after the page loads.

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

When the page counts as loaded.

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

Give up on a page after this long. Failed pages are not charged.

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

Very long pages are cut at this height (keeps files usable).

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

Only for JPEG.

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

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

## `width` (type: `integer`):

Optional: override the device width.

## `height` (type: `integer`):

Optional: override the device height (visible area).

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

More is faster; the browser scales down automatically if memory runs low.

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

Retry a failed page this many times.

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

Optional: only take the first N URLs.

## `proxy` (type: `object`):

Optional. Use a datacenter proxy if a site blocks the default IPs or for a different country. Residential proxy is not supported.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "hideCookieBanners": true,
  "delayMs": 1000,
  "waitUntil": "load",
  "timeoutSecs": 45,
  "maxHeight": 15000,
  "quality": 80,
  "darkMode": false,
  "maxConcurrency": 5,
  "maxRetries": 1,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `screenshots` (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://apify.com"
    ],
    "fullPage": true,
    "hideCookieBanners": true,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("khanjankavani/website-screenshot-bulk").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"],
    "fullPage": True,
    "hideCookieBanners": True,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("khanjankavani/website-screenshot-bulk").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"
  ],
  "fullPage": true,
  "hideCookieBanners": true,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call khanjankavani/website-screenshot-bulk --silent --output-dataset

```

## MCP server setup

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

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/aU9WmSmjWjBB3TFDc/builds/wMBgreCsCoAfE8mr4/openapi.json
