# Website Screenshot & PDF Generator (`latam_data/website-screenshot-pdf-generator`) Actor

Take full-page screenshots (PNG, JPEG, WebP) or PDFs of any list of URLs. Desktop or mobile, retina, hides cookie banners and pop-ups, loads lazy images. Fast, cheap, a public link for every file.

- **URL**: https://apify.com/latam_data/website-screenshot-pdf-generator.md
- **Developed by:** [Cristian Camilo Gomez Diaz](https://apify.com/latam_data) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 page captureds

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

### What does Website Screenshot & PDF Generator do?

**Website Screenshot & PDF Generator** takes screenshots or PDFs of any list of web pages. Give it URLs and get back, for each page, a **file link (PNG, JPEG, WebP or PDF)**, the page title, HTTP status, final URL after redirects, file size and load time.

- 📸 **Full-page or visible-area** screenshots
- 📱 **Desktop, laptop, tablet or mobile** viewports, or your own size, with retina (2x, 3x) option
- 🍪 **Hides cookie banners, chat widgets and pop-ups** automatically (OneTrust, Cookiebot, Didomi, Usercentrics, Intercom, HubSpot and more)
- 🖼️ **Loads lazy images** by scrolling the page first
- 📄 **PDF** in A4, Letter, Legal or A3, portrait or landscape, with backgrounds
- ⚡ Captures several pages in parallel, so hundreds of URLs finish in minutes

### Why take website screenshots?

- 🗂️ **Archiving and compliance**: keep visual proof of how a page looked on a given day.
- 🕵️ **Competitor monitoring**: schedule daily captures of competitors' pricing or landing pages.
- 🧪 **QA and visual testing**: check how your site looks on mobile and desktop after every release.
- 🤖 **AI and vision models**: feed page images to GPT, Claude or Gemini for analysis.
- 📰 **Reports, thumbnails and link previews**: generate images or PDFs of pages for decks, directories and newsletters.

### How to use it

1. Click **Try for free**.
2. Paste your pages in **URLs**, one per line (`https://` is optional).
3. Choose the **Output format** (PNG, JPEG, WebP or PDF) and the **Device**.
4. Click **Start**. Every row in the results has a `screenshotUrl` link to the file. You can also download all files from the run's **Storage → Key-value store** tab.

### Input example

```json
{
    "urls": ["https://apify.com", "https://en.wikipedia.org/wiki/Web_scraping"],
    "format": "png",
    "fullPage": true,
    "device": "mobile",
    "scale": 2,
    "hideCookieBanners": true
}
```

### Output example

```json
{
    "url": "https://apify.com",
    "finalUrl": "https://apify.com/",
    "title": "Apify: Full-stack web scraping and data extraction platform",
    "statusCode": 200,
    "format": "png",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/0001-apify-com",
    "kvStoreKey": "0001-apify-com",
    "device": "mobile",
    "width": 390,
    "height": 8120,
    "fileSizeKb": 1450.2,
    "loadTimeMs": 4210,
    "error": null,
    "capturedAt": "2026-11-18T15:00:00.000Z"
}
```

Pages that fail to load are still listed, with the reason in `error`, and are **not charged**.

### How much does it cost?

This Actor uses **pay per result**: you pay only for successful captures, plus a tiny start fee. See the **Pricing** tab for the current price. Platform usage is included, so there are no surprise compute costs. Apify's free plan includes monthly credits, enough for thousands of screenshots.

### Tips

- **Smaller files**: use **WebP** or **JPEG** with quality 70-80.
- **Pages that keep loading**: keep **Wait until** on *Page load* and add an **Extra delay**. Use *Network idle* only for pages that load data late.
- **Hide anything else**: add CSS selectors in **Extra CSS selectors to hide**, for example `.ad, #promo-bar`.
- **Blocked or geo-specific sites**: enable the **Proxy** option (Apify Proxy or your own, for example [Webshare](https://www.webshare.io/?referral_code=v5e0reweus4m)). For heavily protected sites, a scraping API such as [ScraperAPI](https://www.scraperapi.com/?fp_ref=camilo-66b5f5) or [ScrapeOps](https://scrapeops.io?fpr=camilo-1a3b24) helps.
- **Monitor pages on a schedule**: create a schedule in Apify and get the images in Slack, Google Drive or email.

### Integrations and API

Send the files to Google Drive, Dropbox, Slack, Airtable or a webhook with [Make](https://www.make.com/en/register?pc=latamdata), Zapier or n8n, or call the Actor from your code with the [Apify API](https://docs.apify.com/api/v2). New to Apify? [Create a free account here](https://apify.com?fpr=rfn03e).

Need a ready-made screenshot or web data API instead? See the APIs on [Zyla API Hub](https://zylalabs.com/a/f9jcfkz8).

### Is it legal?

Taking a screenshot of a public web page is generally allowed, but the content on the page may be protected by copyright or by the site's terms. Use captures for legitimate purposes such as archiving, testing and analysis, and do not capture pages behind a login or pages with personal data you are not allowed to process.

### Feedback

Need another option (element-only screenshots, custom cookies, video)? Open an issue in the **Issues** tab.

# Actor input Schema

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

Web pages to capture, one per line. A missing https:// is added for you.

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

Image format of the screenshot, or PDF for a printable document.

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

Capture the whole scrollable page instead of only the visible window. Ignored for PDF, which always contains the whole page.

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

Viewport preset. Choose Custom to set your own width and height below.

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

Viewport width when Device is Custom.

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

Viewport height when Device is Custom.

## `scale` (type: `integer`):

Device scale factor. 2 gives sharp retina images (4x the pixels).

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

From 1 to 100. Lower means smaller files.

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

Hide common cookie consent banners, chat widgets and newsletter pop-ups before capturing.

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

When the page counts as loaded.

## `delay` (type: `integer`):

Wait this long after loading, for animations or late content.

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

Scroll through the page before capturing, so lazy-loaded images appear.

## `hideSelectors` (type: `string`):

Comma-separated CSS selectors to hide before capturing, for example .ad, #promo.

## `pdfPaper` (type: `string`):

Paper size when Output format is PDF.

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

Landscape orientation for PDF.

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

How many pages to capture at the same time.

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

Optional. Use a proxy for sites that block data-center IPs or to capture a page from a given country.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "width": 1280,
  "height": 800,
  "scale": 1,
  "quality": 80,
  "hideCookieBanners": true,
  "waitUntil": "load",
  "delay": 500,
  "scrollToBottom": true,
  "pdfPaper": "A4",
  "pdfLandscape": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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_scraping"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("latam_data/website-screenshot-pdf-generator").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_scraping",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("latam_data/website-screenshot-pdf-generator").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_scraping"
  ]
}' |
apify call latam_data/website-screenshot-pdf-generator --silent --output-dataset

```

## MCP server setup

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

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/6Q2aFvUH7WWhkj4GM/builds/jVVnVhFExNBPkkcIF/openapi.json
