# Website Screenshot & URL to PDF: Full Page, Mobile & Retina (`data-done-right/website-screenshot-pdf`) Actor

Screenshot any public web page or save it as PDF: full page, mobile, tablet, retina, dark mode. URLs in, PNG, JPEG, WebP or PDF files out with download links. Headless Chromium, no API key. Respects robots.txt; no logins, no bot-protection bypass, no proxies.

- **URL**: https://apify.com/data-done-right/website-screenshot-pdf.md
- **Developed by:** [Data Done Right](https://apify.com/data-done-right) (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

from $2.00 / 1,000 screenshot captureds

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 & URL to PDF: Full Page, Mobile & Retina

**What this Actor does NOT do:** it does not log in (no cookies, no sessions), does not get past bot protection or CAPTCHAs (a 401, 403, 429 or "just a moment" page is reported as blocked and is free), does not use proxies, ignores pages that robots.txt disallows (skipped and free), does not capture single elements or selectors, does not click cookie banners, and does not see internal or private addresses (they are blocked on purpose). PDFs use the page's print layout, so they can differ from the screen view.

Take a screenshot of any public web page, or save it as a PDF, in bulk. Give it URLs and get back PNG, JPEG, WebP or PDF files with download links, using headless Chromium and no API key.

What you get:

- One file per URL: full page or first screen, desktop, mobile (390 x 844) or tablet (820 x 1180), pixel density 1 to 3 (retina), light or dark colour scheme.
- A dataset row per URL with the download link, final URL after redirects, page title, HTTP status, image size, page height, PDF page count and load time.
- You pay only for files that were delivered.

### How to take a full page screenshot of a website

1. Paste the page addresses into **Page URLs** (one per line; `example.com` becomes `https://example.com`).
2. Leave **Output format** on PNG and **Full page** on. Press Start.
3. Open the dataset: the `url` column is the download link of each image.

Input example:

```json
{
  "urls": ["https://example.com", "https://www.python.org"],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "viewportWidth": 1440,
  "viewportHeight": 900
}
```

Output example (from a local run of the first URL; the link below is the local-storage form, on Apify it is a signed link):

```json
{
  "index": 1,
  "sourceUrl": "https://example.com",
  "status": "ok",
  "url": "https://api.apify.com/v2/key-value-stores/<storeId>/records/0001-example_com.png",
  "key": "0001-example_com.png",
  "format": "png",
  "finalUrl": "https://example.com/",
  "pageTitle": "Example Domain",
  "httpStatus": 200,
  "device": "desktop",
  "scale": 1.0,
  "width": 1280,
  "height": 800,
  "pageHeight": 800,
  "bytes": 36642,
  "loadMs": 637,
  "error": null,
  "note": null
}
```

### How to take a mobile or retina screenshot

Set **Device** to `mobile` (or `tablet`) and **Pixel density** to 2. The page is loaded with a touch phone screen and a phone user agent, so mobile layouts are served. A mobile PNG at density 2 is 780 pixels wide. Use `"colorScheme": "dark"` for pages that offer a dark theme.

### How to convert a URL to PDF

Set **Output format** to `pdf`. Choose paper size (A3, A4, A5, Letter, Legal, Tabloid), landscape and whether backgrounds are printed. Each row gives the PDF link and page count. Device, viewport and pixel density do not apply to PDFs.

### Inputs

| Input | Default | Notes |
|---|---|---|
| urls | (required) | Page URLs, duplicates captured once |
| format | png | png, jpeg, webp, pdf |
| fullPage | true | whole page instead of first screen |
| device | desktop | desktop, mobile, tablet |
| viewportWidth / viewportHeight | 1280 / 800 | desktop only, CSS pixels |
| deviceScaleFactor | 1 | 1 to 3 |
| colorScheme | light | light or dark |
| delaySecs | 0 | extra wait after load, 0 to 10 |
| scrollToLoad | true | scroll once (max 3 s) to load lazy images |
| quality | 85 | JPEG and WebP |
| maxPageHeight | 16000 | taller pages are cut, with a note |
| pdfFormat, pdfLandscape, pdfPrintBackground | A4, false, true | PDF only |
| maxUrls | 100 | cap that also caps cost |
| concurrency | 3 | pages in parallel, 1 to 6 |
| timeoutSecs | 30 | hard limit per URL |
| outputStoreName | none | keep files in a named store |

### How much does it cost

- Screenshot (PNG, JPEG or WebP): $0.0009 each, $0.90 per 1,000.
- PDF: $0.002 each, $2.00 per 1,000.
- Failed pages, blocked pages, robots.txt-disallowed pages, HTTP errors and URLs over the cap are free.

Examples: 1,000 screenshots = $0.90; 10,000 = $9; 100,000 = $90. 1,000 PDFs = $2.00. Platform usage is covered by the per-file price on the pay-per-event plan. Tall full-page captures at pixel density 3 cost more compute than the price assumes, so keep those runs small.

### Use cases

- Design and QA reviews of desktop and mobile layouts.
- Dated visual evidence of how a page looked (change logs, compliance, ad checks).
- Link previews and thumbnails for directories and dashboards.
- Archiving articles, terms pages and documentation as PDF.
- A step in a pipeline: a list of URLs in, file links out, for agents and n8n or Make flows.

### Use with the Apify API

```python
from apify_client import ApifyClient
run = ApifyClient("<TOKEN>").actor("<username>/website-screenshot-pdf").call(run_input={"urls": ["https://example.com"], "format": "webp"})
for row in ApifyClient("<TOKEN>").dataset(run["defaultDatasetId"]).iterate_items():
    print(row["status"], row["url"])
```

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<TOKEN>' });
const run = await client.actor('<username>/website-screenshot-pdf').call({ urls: ['https://example.com'], format: 'pdf' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### FAQ

**Does it work on every site?** No. Sites that build their content only after login, behind a CAPTCHA or bot check, or that refuse automated browsers return a blocked row. This Actor does not try to get around that.

**What about pages that never finish loading?** Navigation waits for the load event. If it takes too long, the part that loaded is captured and the row's note says so. The hard limit per URL is the timeout (default 30 s).

**Why is my tall page cut?** Full-page images are limited by Max page height (default 16,000 CSS px) and by a pixel budget (about 50 million pixels), so retina captures of very tall pages are cut with a note. Use PDF for very long pages.

**Is robots.txt respected?** Yes. The page's robots.txt is read before loading it; disallowed pages are skipped and free. If robots.txt cannot be read (server error), the page is skipped to be safe. If a page redirects somewhere robots.txt disallows, the result is discarded and free.

**Can it reach internal or private addresses?** No. All browser traffic goes through a local filter that refuses private, loopback, link-local and cloud-metadata addresses, including redirects and embedded content.

**Are cookie banners removed?** No. Banners appear as the site shows them to a first-time visitor.

### Related tools

- Video Frame Extractor: Keyframes, Scenes & Thumbnails for AI
- Website Technology Checker: CMS, WordPress & Tracking Pixels
- Image Compressor & Resizer: Compress Images in Bulk

# Actor input Schema

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

Web pages to capture, one per line. Example: https://example.com/pricing. A link without https:// gets https:// added. Duplicates are captured once. Pages that need a login, that robots.txt disallows or that sit behind bot protection are not captured and are not charged.

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

File type of each result. PNG is lossless, JPEG and WebP are smaller (see Quality), PDF prints the page with its print layout. Example: png.

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

Capture the whole scrollable page instead of only the first screen. Applies to PNG, JPEG and WebP; PDFs always contain the whole page. Very tall pages are cut at Max page height with a note. Example: true.

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

desktop uses the viewport size below. mobile (390 x 844) and tablet (820 x 1180) use their own screen size, touch and a phone or tablet user agent, so mobile layouts are served. Ignored for PDF. Example: mobile.

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

Browser window width in CSS pixels for the desktop device, 320 to 3840. Example: 1280.

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

Browser window height in CSS pixels for the desktop device, 240 to 2400. It is the image height when Full page is off. Example: 800.

## `deviceScaleFactor` (type: `number`):

1 = normal, 2 = retina (twice the pixels per side, four times the pixels), 3 = high-density phone. Larger values make bigger files and take longer. Ignored for PDF. Example: 2.

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

Asks pages that support it for their light or dark theme (prefers-color-scheme). Example: dark.

## `delaySecs` (type: `number`):

Wait this long after the page load event before capturing, for animations or late content. 0 to 10. The whole URL must still finish within the timeout. Example: 1.5.

## `scrollToLoad` (type: `boolean`):

For full-page images, scroll down the page once (at most 3 seconds) so lazy-loaded images appear, then return to the top. Example: true.

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

Compression quality 30 to 100 for JPEG and WebP. Example: 85.

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

Full-page images are cut at this height in CSS pixels (1000 to 30000) to protect memory; the row note says when it happened. At pixel density 2 or 3 the limit can be lower. Example: 16000.

## `pdfFormat` (type: `string`):

Paper size for PDF output. Example: A4.

## `pdfLandscape` (type: `boolean`):

Print PDFs in landscape orientation. Example: false.

## `pdfPrintBackground` (type: `boolean`):

Include CSS backgrounds in the PDF. Example: true.

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

Hard cap on pages processed in one run (1 to 5000). URLs beyond the cap are listed as skipped and are free. Example: 100.

## `concurrency` (type: `integer`):

How many pages are rendered in parallel in one browser, 1 to 6. Each page can use several hundred MB of memory; with the default 4096 MB, 3 is safe. Example: 3.

## `timeoutSecs` (type: `number`):

Hard limit for loading and capturing one URL, 10 to 60. If the page loaded but did not finish, the part that loaded is captured with a note. Example: 30.

## `outputStoreName` (type: `string`):

Save the files in a named key-value store that outlives the run instead of the default store of the run. File names then get a random prefix. Example: my-screenshots.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "viewportWidth": 1280,
  "viewportHeight": 800,
  "deviceScaleFactor": 1,
  "colorScheme": "light",
  "delaySecs": 0,
  "scrollToLoad": true,
  "quality": 85,
  "maxPageHeight": 16000,
  "pdfFormat": "A4",
  "pdfLandscape": false,
  "pdfPrintBackground": true,
  "maxUrls": 100,
  "concurrency": 3,
  "timeoutSecs": 30
}
```

# Actor output Schema

## `results` (type: `string`):

One row per URL with its download link, size, page title and status, as JSON, CSV, Excel and more.

## `records` (type: `string`):

Key-value store records: the screenshot and PDF files, the run summary and notes on any failed URLs.

# 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("data-done-right/website-screenshot-pdf").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("data-done-right/website-screenshot-pdf").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 data-done-right/website-screenshot-pdf --silent --output-dataset

```

## MCP server setup

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

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/Ukkjy94kAsMqN2h8H/builds/eC9cCOjgZja1DfjQg/openapi.json
