# Website Screenshot (`neuro-scraper/website-screenshot`) Actor

Website Screenshot SD - Website Screenshot is a web capture tool that saves full-page or viewport screenshots of any public web page as PNG or JPEG: desktop or mobile, retina scale, lazy-load scrolling, hidden cookie banners, with title and status.

- **URL**: https://apify.com/neuro-scraper/website-screenshot.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Developer 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.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 - full-page screenshots of any web page

Website Screenshot captures any public web page as a PNG or JPEG image: the whole page or just the
visible part, at desktop or phone size, sharp at retina scale. Each row links to the stored image and
records the page title, HTTP status, image size and load time.

#### Input

| Field | Default | Notes |
|---|---|---|
| Page URLs | - | one per line |
| Full page | on | off = only the visible viewport |
| Format / JPEG quality | PNG / 80 | JPEG is smaller |
| Viewport width x height | 1280 x 800 | 390 x 844 for a phone |
| Device scale factor | 1 | 2-3 for retina-sharp images |
| Mobile mode | off | touch phone behaviour |
| Wait until / extra delay | page load / 1,000 ms | or "network idle" |
| Scroll to the bottom first | off | loads lazy images before a full-page capture |
| Hide elements | - | CSS selectors, e.g. `#cookie-banner` |
| Timeout per page | 45 s | |
| Max screenshots | 100 | |

#### Output per URL

`url`, `finalUrl`, `statusCode`, `title`, `screenshotUrl` (the stored image), `screenshotKey`, `format`,
`fullPage`, `imageWidth`, `imageHeight`, `pageWidth`, `pageHeight`, `viewport`, `sizeBytes`, `loadTimeMs`,
`blockedBy` (anti-bot vendor when the page is a challenge page), `capturedAt`.

#### Measured (2026-10-03, see TEST_REPORT.md)

- Two full pages in 12 seconds (1280x2549 and 1280x1800 PNG).
- A phone capture at 2x: 780x1687 JPEG, 103 KB.
- A long article with lazy loading: 1280x10604 PNG in 7 seconds.
- Private, local and cloud-metadata addresses are refused before the browser opens them.

#### Example

```json
{"startUrls": [{"url": "https://www.apify.com"}], "fullPage": true, "scrollToBottom": true,
 "hideSelectors": ["#cookie-banner"], "deviceScaleFactor": 2}
```

# Actor input Schema

## `startUrls` (type: `array`):

Pages to capture, one per line.

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

Capture the whole page height (off = only the visible viewport).

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

PNG is lossless; JPEG is smaller.

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

1-100, used for JPEG only.

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

1280 for desktop, 390 for a phone.

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

Visible height; with Full page on, the image is as tall as the page.

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

2 or 3 gives retina-sharp images (and bigger files).

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

Act as a touch phone (use with a phone-size viewport).

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

When the page counts as loaded.

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

Wait this long after loading (animations, late content).

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

Scrolls through the page so lazy-loaded images appear in a full-page screenshot.

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

e.g. #cookie-banner, .chat-widget - hidden before the capture.

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

Navigation and capture timeout.

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

Stop after this many screenshots.

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

Apify datacenter proxy by default; RESIDENTIAL for sites that block datacenter IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    },
    {
      "url": "https://quotes.toscrape.com/"
    }
  ],
  "fullPage": true,
  "format": "png",
  "jpegQuality": 80,
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "deviceScaleFactor": 1,
  "mobile": false,
  "waitUntil": "load",
  "delayMs": 1000,
  "scrollToBottom": false,
  "timeoutSecs": 45,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://books.toscrape.com/"
        },
        {
            "url": "https://quotes.toscrape.com/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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 = {
    "startUrls": [
        { "url": "https://books.toscrape.com/" },
        { "url": "https://quotes.toscrape.com/" },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/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 '{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    },
    {
      "url": "https://quotes.toscrape.com/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call neuro-scraper/website-screenshot --silent --output-dataset

```

## MCP server setup

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