# Website Screenshot API - Full Page, Mobile & PDF (`steadyscrape/website-screenshot-api`) Actor

Take website screenshots of any URL list in bulk: full page or above the fold, desktop, mobile or custom size, PNG, JPEG or WebP, plus PDF. Wait for an element or a delay, hide cookie banners, dark mode. Each file is a public link with final URL and status. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/website-screenshot-api.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (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

$4.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 API — full page, mobile and PDF

**Website Screenshot API** takes screenshots of any list of URLs in bulk: paste page links or domains and get one image per
page and viewport — a **full page screenshot** or just what is above the fold, on **desktop, mobile or a custom size**, as
**PNG, JPEG or WebP**, plus an optional **PDF** of each page. It can wait for an element or a delay before the capture,
hide cookie banners and other popups, and render the dark version of a site. Every file comes back as a link that opens
for anyone, next to the page's final URL after redirects, its HTTP status, title, image size and capture time. Run it
from the Apify Console, on a schedule, or as a URL-to-image API from your own code or AI agent.

A page that never loads, answers an error, or shows a bot check is not charged: you get a free row saying why.

### What you can do with the Website Screenshot API

- **Report on client websites**: agencies capture every page of a client's site on desktop and mobile for audits, redesign
  proposals and monthly reports.
- **Monitor websites visually**: schedule a run to capture landing pages, pricing pages or competitors' home pages every
  day and keep a visual history of what changed.
- **Archive web pages**: keep a full-page screenshot and a PDF of a page as it looked on a given day, for compliance,
  evidence, or content records.
- **Give AI agents eyes**: an agent can call the API with a URL and get an image of the page to read or describe.
- **Build thumbnails and previews**: above-the-fold captures of many URLs for a directory, a link preview or a gallery.
- **Check mobile layouts**: see how each page renders on a phone, with the site's own mobile layout.

### How to take website screenshots

1. Paste page links or domains into **Pages to capture**, one per line (up to 1,000 per run). A domain such as
   `example.com` is captured as `https://example.com/`.
2. Pick the **viewports**: desktop (1920x1080), mobile (a 390x844 phone at 2x), or a custom width, height and scale.
3. Choose **full page** or above the fold, the **image format**, and whether to **also save a PDF**.
4. Optionally wait for an element, add a delay, hide cookie banners or other elements, or use the dark color scheme.
5. Run it. Each capture becomes a row of the dataset with a link to its file.

#### Input example

```json
{
    "urls": ["https://example.com/", "apify.com/pricing"],
    "viewports": ["desktop", "mobile"],
    "fullPage": true,
    "format": "png",
    "savePdf": false,
    "hideCookieBanners": true,
    "delaySeconds": 1
}
```

| Field | What it does | Default |
|---|---|---|
| `urls` | Page links or domains, one per line; up to 1,000. A page named twice is captured once. | — |
| `viewports` | `desktop` (1920x1080), `mobile` (390x844 at 2x, mobile layout), `custom` (sizes below). One capture each. | `["desktop"]` |
| `fullPage` | The whole page from top to bottom (scrolled through first so lazy images load), or only the viewport. | `true` |
| `format` | `png`, `jpeg` or `webp`. | `png` |
| `quality` | 1–100, for JPEG and WebP. | `80` |
| `savePdf` | Also print each page to a PDF from its desktop version (one more row and charge per page). With no viewport, only PDFs. | `false` |
| `pdfPaperSize` | `A4` or `Letter`. | `A4` |
| `waitForSelector` | A CSS selector to wait for (shown on the page) before the capture. | — |
| `delaySeconds` | Extra wait after the page has loaded, 0–60. | `0` |
| `hideCookieBanners` | Hide the consent banners of OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, TrustArc, CookieYes, Complianz, Iubenda, Sourcepoint and more, with CSS. Nothing is clicked or accepted. | `false` |
| `hideSelectors` | CSS selectors of anything else to hide: chat widgets, popups, ads. | `[]` |
| `colorScheme` | `light` or `dark` (CSS `prefers-color-scheme`). | `light` |
| `customWidth`, `customHeight`, `customScaleFactor` | The custom viewport: 200–3840 by 200–4320 CSS pixels, scale 1–3 (2 = Retina). At most 30 megapixels. | — |
| `pageTimeoutSeconds` | How long a page may take to arrive, and a waited-for element to show (10–120). | `45` |

### Screenshot output

One row per page and viewport, plus one per page for its PDF:

```json
{
    "status": "ok",
    "reason": null,
    "input": "https://example.com/",
    "url": "https://example.com/",
    "pageNumber": 1,
    "viewport": "desktop",
    "format": "png",
    "fileUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/screenshot-0001-desktop.png?signature=<signature>",
    "fileKey": "screenshot-0001-desktop.png",
    "fileSizeBytes": 88921,
    "imageWidth": 1920,
    "imageHeight": 1080,
    "pdfPages": null,
    "pdfPaperSize": null,
    "fullPage": true,
    "viewportWidth": 1920,
    "viewportHeight": 1080,
    "deviceScaleFactor": 1,
    "pageHeight": 1080,
    "clipped": false,
    "finalUrl": "https://example.com/",
    "httpStatus": 200,
    "title": "Example Domain",
    "captureMs": 1284,
    "capturedAt": "2026-11-07T12:00:00.000Z"
}
```

| Field | Meaning |
|---|---|
| `status` | `ok` (a file was stored, the one charged status), `invalid`, `unreachable`, `blocked`, `timeout` or `error`. |
| `reason` | Why a row is not `ok`, in plain words. |
| `input`, `url`, `pageNumber` | The line as you wrote it, the page loaded, and its place in your list. |
| `viewport`, `viewportWidth`, `viewportHeight`, `deviceScaleFactor` | The window the page was rendered in (CSS pixels and scale). Null for a PDF. |
| `format` | `png`, `jpeg`, `webp` or `pdf`. |
| `fileUrl` | The file: a signed link that opens for anyone, no Apify login needed. |
| `fileKey`, `fileSizeBytes` | The file's record in the run's key-value store, and its size. |
| `imageWidth`, `imageHeight` | The image's pixel size, read from the file. |
| `pdfPages`, `pdfPaperSize` | A PDF's page count and paper size. |
| `fullPage`, `pageHeight`, `clipped` | Whether the whole page was asked for, the page's full height in CSS pixels, and whether the image stops before the bottom. |
| `finalUrl`, `httpStatus`, `title` | The page after redirects, its HTTP status and its title. |
| `captureMs`, `capturedAt` | Milliseconds from opening the page to the finished file, and when (UTC). |

All files of a run are also listed in the run's key-value store (the **Files** link in the Output tab).

### Use the Website Screenshot API from your code

One call runs the Actor and returns the rows with their file links:

```bash
curl -X POST "https://api.apify.com/v2/acts/steadyscrape~website-screenshot-api/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/"], "viewports": ["desktop"], "fullPage": true, "format": "jpeg"}'
```

The same works from Python or JavaScript with the Apify client, from Make, Zapier or n8n, and from AI agents through
Apify's MCP server.

### Pricing

**US$0.004 per screenshot**: one page captured in one viewport, or printed as one PDF, and stored. A page on desktop
and mobile is two screenshots; with a PDF, three. Invalid lines and pages that are unreachable, blocked, timed out or
failed are free. The run stops before a capture your spending limit cannot pay for.

### Pages that are not captured (free rows)

- `unreachable`: the domain does not resolve, the connection fails, the link starts a file download, the page answers
  an HTTP error such as 404 or 500, or it keeps navigating to another page while it is being captured.
- `blocked`: the site refuses the visit (HTTP 403 or 429) or answers a bot check (a Cloudflare challenge, a CAPTCHA, a
  "verify you are human" page). Bot checks are never solved or bypassed.
- `timeout`: the page did not arrive within the page timeout, the element you waited for never showed, or Chrome took
  more than 90 s to write the file.
- `error`: Chrome failed on the page. On a very heavy page that usually means it ran out of memory: run with more
  memory (Run options) to capture it.
- `invalid`: the line is not a website link or domain (an IP address, `localhost` and other schemes are refused).

### Limits

- **Full-page height**: an image holds at most 30 megapixels and 32,000 pixels in height (WebP: 16,383, the format's own
  limit). A taller page stops there and its row says `clipped: true`, with the page's real height in `pageHeight`. On
  desktop that is 15,625 CSS pixels down; on mobile, 16,000 (8,191 in WebP).
- **Memory**: the default 2,048 MB fits heavy pages. Below that, Chrome can run out of memory on news and media sites.
- **Speed**: a light page takes 2–5 seconds; a heavy news or marketing page captured full page 20–40 seconds. Pages are
  captured one at a time, each in a fresh browser context (no cookies or cache carried between pages).
- **What is rendered**: the page as Chrome renders it for an anonymous visitor from Apify's servers in the United States,
  with no login. Pages behind a login, and content that differs by country, show what that visitor sees.
- **Fonts**: Latin, Cyrillic, Greek, Chinese, Japanese, Korean, Arabic, Hebrew, Indic and Thai scripts and emoji are
  installed, so pages in those languages do not render as empty boxes.

### Is it legal to take website screenshots?

Taking a screenshot of a public web page is generally allowed, as it shows what any visitor sees. You are responsible for
how you use the images: respect copyright, trademarks and each site's terms, and do not capture pages you have no right
to access. This Actor only loads the pages you give it, as an anonymous visitor, and never bypasses bot checks or logins.
Website Screenshot API is an independent tool, not affiliated with or endorsed by any of the websites it captures.

### FAQ

**Can I capture a page behind a login?** No. The Actor visits each page as an anonymous visitor.

**Why is my screenshot cut off at the bottom?** The page is taller than an image may be (see Limits); the row says
`clipped: true`. Use JPEG or PNG rather than WebP for the tallest pages, or capture above the fold only.

**Why is part of the page blank?** Some sites load content only when it is scrolled into view; the Actor scrolls each
full page through before the capture, but a site may need longer: add a `delaySeconds` or a `waitForSelector`.

**How do I get a Retina screenshot?** Use the custom viewport with `customScaleFactor` 2.

# Actor input Schema

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

One per line: a page link (<code>https://www.example.com/pricing</code>) or a domain (<code>example.com</code>, captured as <code>https://example.com/</code>). Redirects are followed; a page named twice is captured once. Up to 1,000 per run. A page that cannot be loaded, answers an error or shows a bot check gives a free row with the reason.

## `viewports` (type: `array`):

Each page is captured once per viewport chosen, one row and one charge each. Desktop is a 1920x1080 screen; mobile is a 390x844 phone at 2x density (a 780-pixel-wide image) that gets each site's mobile layout; custom uses the width, height and scale below.

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

Capture the whole page from top to bottom (the page is scrolled through first, so lazy images load). Off: only what fits in the viewport, above the fold. An image holds at most 30 megapixels and 32,000 pixels in height (16,383 for WebP): a taller page stops there (15,625 CSS pixels down on desktop) and its row says <code>clipped</code>.

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

PNG is lossless and the sharpest; JPEG and WebP are much smaller files.

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

1 to 100, for JPEG and WebP images. PNG ignores it.

## `savePdf` (type: `boolean`):

Print each page to a PDF as Chrome's "Save as PDF" does (backgrounds included, 1 cm margins), from its desktop version. One more row and one more charge per page. With no viewport chosen, the run makes only PDFs.

## `pdfPaperSize` (type: `string`):

Paper size of the PDF pages.

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

Take the capture only once an element matching this CSS selector is shown (for example <code>#chart</code> or <code>.product-grid img</code>). If it does not show within the page timeout, the row is a free <code>timeout</code>.

## `delaySeconds` (type: `number`):

Wait this long after the page has loaded, before the capture, for animations or slow widgets. 0 to 60.

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

Hide the consent banners of the common consent platforms (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, TrustArc, CookieYes, Complianz, Iubenda, Sourcepoint and more) with CSS. Nothing is clicked or accepted.

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

CSS selectors of anything else to hide before the capture: chat widgets, popups, ads (for example <code>#intercom-container</code>, <code>.newsletter-popup</code>).

## `colorScheme` (type: `string`):

Light, or dark for sites that offer a dark mode (CSS <code>prefers-color-scheme</code>).

## `customWidth` (type: `integer`):

Width of the custom viewport in CSS pixels, 200 to 3840. Used only when the viewports include "Custom size".

## `customHeight` (type: `integer`):

Height of the custom viewport in CSS pixels, 200 to 4320: the image height when Full page is off.

## `customScaleFactor` (type: `number`):

Image pixels per CSS pixel for the custom viewport, 1 to 3 (2 = a Retina screenshot twice the width). 1 when left empty.

## `pageTimeoutSeconds` (type: `integer`):

How long a page may take to arrive, and how long a waited-for element may take to show. Past it the row is a free <code>timeout</code>. 10 to 120.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/"
  ],
  "viewports": [
    "desktop"
  ],
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "savePdf": false,
  "pdfPaperSize": "A4",
  "delaySeconds": 0,
  "hideCookieBanners": false,
  "hideSelectors": [],
  "colorScheme": "light",
  "pageTimeoutSeconds": 45
}
```

# Actor output Schema

## `captures` (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://example.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/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://example.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/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://example.com/"
  ]
}' |
apify call steadyscrape/website-screenshot-api --silent --output-dataset

```

## MCP server setup

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