# Website Screenshot: Full Page, Mobile & PDF Capture (`serenido/website-screenshot`) Actor

Take screenshots of any website: full page or first screen, desktop, tablet or mobile, as PNG, JPEG or PDF. Paste thousands of links and get a public image link for each, plus page title and status. Cookie pop-ups hidden, 3 tries per page, failed pages free.

- **URL**: https://apify.com/serenido/website-screenshot.md
- **Developed by:** [Serenido](https://apify.com/serenido) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 screenshot saveds

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

> ⭐ If this tool saves you time, please leave a quick review on this page. It helps other people find it. Found a problem? Open an issue in the Issues tab and we'll fix it fast.

### What does Website Screenshot do?

Website Screenshot takes a **screenshot of any website**: paste links and get a picture of every page, the first screen or the full page, on desktop, laptop, tablet or mobile, as **PNG, JPEG, WebP or PDF**. Each row gives you a public image link, the page title and the HTTP status. Thousands of links in one run, no login, no code.

### Why this one?

- **Many links in one run.** Paste 10 or 10,000 links: one run, one browser, 5 pages at a time. You do not need to start a run per page.
- **You only pay for real screenshots.** Sites that block automated visits, pages that fail after 3 tries and links that are not websites come back as free rows with a clear message. In our test of 50 popular websites, every page that was not behind a robot check was captured.
- **Clean pictures.** Cookie and consent pop-ups are hidden (nothing is clicked or accepted for you) and ads and trackers are blocked, so pages load faster and look like a real visit.
- **More than a plain screenshot.** Capture one part of a page with a CSS selector, wait for an element, run your own JavaScript first, dark mode, sharp "retina" images.

### What data do you get?

| Field | Meaning |
|---|---|
| `status` | `ok`, `blocked` (the site blocks robots), `failed` or `invalid_url` |
| `screenshotUrl` | public link to the image or PDF |
| `url`, `finalUrl` | the link you gave and where it ended after redirects |
| `title`, `httpStatus` | page title and status code |
| `width`, `height`, `bytes`, `format`, `device` | size and type of the file |
| `fullPage`, `cutAtMaxHeight` | full page or first screen; very long pages are cut at 16,000 pixels |
| `loadSeconds`, `capturedAt`, `message` | timing, time of capture, notes |

### How much does it cost?

- **$3 per 1,000 screenshots** ($0.003 each, less on paid Apify plans)
- **Run start**: $0.0025 per run at the default memory
- Blocked, failed and invalid links are free.

### How to use it

1. Paste your website links in **Website links**, one per line (`https://` is added if missing).
2. Choose the **device**, **full page** or first screen, and the **format**.
3. Click **Start**. Each finished page appears as a row with its image link.
4. Download the table as Excel, CSV or JSON, or open the image links directly.

### Input example

```json
{
  "urls": ["https://apify.com", "https://en.wikipedia.org/wiki/Web_page"],
  "device": "desktop",
  "fullPage": true,
  "format": "png"
}
```

### Output example

```json
{
  "status": "ok",
  "url": "https://www.python.org",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/0000-www-python-org.png",
  "title": "Welcome to Python.org",
  "httpStatus": 200,
  "width": 1366,
  "height": 2571,
  "format": "png",
  "device": "desktop",
  "fullPage": true
}
```

### Status values

| status | meaning | charged |
|---|---|---|
| `ok` | screenshot saved | yes |
| `blocked` | the site showed a robot check or "access denied" page | no |
| `failed` | the page did not load after 3 tries | no |
| `invalid_url` | not a website link | no |

### Good to know

- **Options**: device (desktop 1366x900, laptop 1440x900, full HD 1920x1080, tablet 820x1180, mobile 390x844), full page, PNG / JPEG / WebP / PDF, quality, only one part of the page (CSS selector), wait for an element, wait after load, page-ready mode, hide cookie pop-ups, block ads, dark mode, sharpness 1 to 3, your own JavaScript, user agent, proxy, pages at the same time, time limit per page.
- Full pages longer than 16,000 pixels are cut there and `cutAtMaxHeight` is `true`.
- The image links stay available as long as Apify keeps the run's storage (your data retention setting).

### Use cases

- Visual archive of websites, landing pages and competitors' pages
- Proof of what a page showed on a given day (ads, prices, listings)
- Thumbnails for directories, link previews and reports
- Checking how a site looks on mobile and desktop
- Giving AI agents a picture of a page to read

### Use with AI agents (MCP)

AI agents (Claude, ChatGPT and others) can use it through Apify's MCP server: `https://mcp.apify.com?tools=serenido/website-screenshot`

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("serenido/website-screenshot").call(run_input={"urls": ["https://apify.com"], "fullPage": True})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row["status"], row["screenshotUrl"])
```

### FAQ

**Why is a site "blocked"?** Some sites (for example ones behind a "checking your browser" page) refuse automated visits. We never try to get around those checks; the row tells you and costs nothing. You can try the optional proxy setting.

**Can it log in to a site?** No. It sees public pages, the same as a visitor who is not signed in.

**Can I capture just one part of a page?** Yes: put a CSS selector such as `header` or `#pricing` in "Only this part of the page".

### Is it legal?

It takes pictures of public web pages, the same as opening them in a browser. Respect each site's terms and copyright when you use the images.

### More tools from us

- [Instagram Reels Transcript](https://apify.com/serenido/instagram-reels-transcript): reel speech to text, no login
- [1688 Image Search](https://apify.com/serenido/1688-image-search): find factories and suppliers by product photo
- [AliExpress Product Details](https://apify.com/serenido/aliexpress-product-details): prices, variants and shipping

# Actor input Schema

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

One link per line. https:// is added when missing.

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

Screen size and type to imitate. Mobile and tablet use a phone or iPad browser.

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

Capture the whole page from top to bottom (up to 16,000 px), not just the first screen.

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

PNG keeps every detail, JPEG and WebP give much smaller files, PDF gives a printable page.

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

Only for JPEG.

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

Optional. Capture one element only, for example 'header' or '#pricing'. Leave empty for the whole screen or page.

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

Optional. Wait until this element is visible before the screenshot, for pages that load content late.

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

Extra wait so animations and late content finish.

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

When the page counts as ready before the screenshot is taken.

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

Hides common cookie and consent banners (nothing is clicked or accepted).

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

Pages load faster and screenshots look cleaner.

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

Ask the site for its dark theme, if it has one.

## `scaleFactor` (type: `integer`):

Optional. 2 or 3 gives sharp 'retina' images (bigger files). Empty = the device's own setting.

## `javascript` (type: `string`):

Optional. Code to run on the page first, for example to remove an element or click a tab.

## `userAgent` (type: `string`):

Optional. Send a custom browser name to the site.

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

How many pages are captured in parallel. More is faster but needs more memory.

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

A page that takes longer than this is retried, up to 3 tries.

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

Optional. Leave off for most sites; use a proxy for sites that block servers.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_page"
  ],
  "device": "desktop",
  "fullPage": false,
  "format": "png",
  "quality": 80,
  "delayMs": 1000,
  "waitUntil": "load",
  "hideCookieBanners": true,
  "blockAds": true,
  "darkMode": false,
  "maxConcurrency": 5,
  "timeoutSecs": 45,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `files` (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://en.wikipedia.org/wiki/Web_page"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("serenido/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://apify.com",
        "https://en.wikipedia.org/wiki/Web_page",
    ] }

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

```

## MCP server setup

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