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

Take full-page or viewport screenshots of any website as PNG, JPEG or PDF, on desktop, tablet or mobile. Ads, trackers and cookie banners removed. Bulk URLs, element capture, dark mode, page title and status. Pay only for successful captures.

- **URL**: https://apify.com/upendra_11/website-screenshot-api.md
- **Developed by:** [Upendra Kumar](https://apify.com/upendra_11) (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 $1.50 / 1,000 screenshot (visible screen or element)s

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 & PDF Capture

Take **clean screenshots of any website** in bulk: full page or just the visible screen, as PNG, JPEG or PDF, on desktop, laptop, tablet (iPad) or mobile (iPhone). **Ads, trackers and cookie banners are removed automatically**, so your images show the page, not pop-ups.

Every result also includes page info: title, description, HTTP status, final URL after redirects, canonical URL, Open Graph image and load time.

**Fair billing:** you pay only for real captures. Failed pages, HTTP error pages and sites that show a bot check ("verify you are human", "access denied", empty error pages) are free. You still get the picture of what the site displayed.

### What you can use it for

- **Monitoring:** snapshot competitor, pricing or landing pages every day and see what changed.
- **Archiving and compliance:** keep dated PDFs or images of web pages, terms and conditions or campaigns.
- **SEO and marketing reports:** capture client sites and landing pages on desktop and mobile.
- **Link previews and thumbnails** for directories, newsletters and apps.
- **QA and design reviews:** check pages on mobile and tablet, in light and dark mode.
- **AI agents:** give your agent "eyes": one call returns an image link plus the page title and description.

### Features

- **Full page or visible screen.** Long pages are scrolled first, and the Actor waits for late-loading images, then captures. Endless pages are cut at a height you choose (10,000 px by default).
- **Devices:** desktop 1920×1080, laptop 1366×768, tablet (iPad), mobile (iPhone 13 with a mobile browser), or any custom size.
- **Formats:** PNG, JPEG (with quality setting) or PDF (A4, Letter, Legal, A3, Tabloid).
- **Clean pictures:**
  - blocks ad and tracking networks, autoplay videos and animations
  - hides cookie and consent pop-ups (OneTrust, Cookiebot, Didomi, Quantcast, TrustArc, Usercentrics and more)
  - hides any other element you list (a chat widget, a newsletter pop-up)
- **Element screenshots:** capture just `header`, `#chart` or `.pricing-table`.
- **Wait options:** for a specific element, for full page load or network idle, or a fixed delay.
- **Retina** (2× or 3× pixel density) and **dark mode**.
- **Bulk:** up to 10,000 URLs per run. Each page has a hard time limit, so one broken site can't hold up the rest.

### How to use it

1. Paste your URLs, one per line. `example.com` works too.
2. Pick a device, full page on or off, and a format.
3. Click **Start**. Images appear in the **Screenshots** view. Each row links to its file, and all files are in the run's key-value store.

#### Input example

```json
{
  "urls": ["https://apify.com", "https://news.ycombinator.com"],
  "device": "mobile",
  "fullPage": true,
  "format": "png",
  "blockAds": true,
  "hideCookieBanners": true
}
```

#### Output example (one page, from a real run)

```json
{
  "url": "https://en.wikipedia.org/wiki/Web_scraping",
  "finalUrl": "https://en.wikipedia.org/wiki/Web_scraping",
  "statusCode": 200,
  "ok": true,
  "blockedPage": false,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/X0CnlVtyl5NlWuD7c/records/0002-en-wikipedia-org-wiki-Web-scraping.png",
  "screenshotKey": "0002-en-wikipedia-org-wiki-Web-scraping.png",
  "format": "png",
  "device": "desktop",
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "fullPage": true,
  "fileSizeBytes": 402198,
  "title": "Web scraping - Wikipedia",
  "ogTitle": "Web scraping - Wikipedia",
  "canonicalUrl": "https://en.wikipedia.org/wiki/Web_scraping",
  "language": "en",
  "pageHeight": 8745,
  "loadTimeMs": 515,
  "capturedAt": "2026-11-09T17:15:55Z"
}
```

### Pricing

| Event | Price |
|---|---|
| Screenshot of the visible screen or one element | **$1.50 per 1,000** |
| Full-page screenshot or PDF | **$3.00 per 1,000** |
| Run start | $0.001 per GB of memory (default 4 GB = $0.004) |

These are always free, and you still get the picture:

- failed pages
- HTTP 4xx/5xx pages
- bot checks and empty error pages (marked `blockedPage: true`)

Set a **maximum cost per run** and the Actor stops cleanly when it's reached.

### Use it from your code or AI agent

Call it through the [Apify API](https://docs.apify.com/api/v2), the Python or JavaScript client, Make, Zapier, n8n, or the Apify MCP server for AI agents.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("upendra_11/website-screenshot-api").call(run_input={"urls": ["https://apify.com"], "device": "mobile"})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], item["ok"], item["screenshotUrl"])
```

### Good to know

- **Speed:** with default settings (4 GB memory, 2 pages at a time), light pages take a few seconds each; heavy news and shopping sites about 10–20 seconds. A test of 15 big sites (BBC, Apple, IKEA, Stripe, The Verge and more) finished in about 2 minutes. For more speed, raise *Pages at once* together with the run's memory (about 2 GB per page).
- **Sites that block automated browsers:** some sites (for example Amazon, Reddit or The New York Times) show a bot check or "access denied" to automated browsers. The Actor never tries to get around that. It saves what the site showed, marks it `blockedPage: true`, and doesn't charge.
- **Some sites show less to automated browsers**, for example without personalised listings. The picture shows exactly what the site served.
- **Logged-in pages:** only public pages can be captured.
- **Very long pages** are cut at *Max page height* (10,000 px by default; marked in `cutAtHeight`). Very large retina captures are kept under 40 megapixels.
- **Private addresses** such as `localhost` or `192.168.x.x` are refused.

### FAQ

**How do I download all screenshots at once?**
Open the run's **Storage → Key-value store**. Every file is listed there, named like `0001-example-com.png`. Download them one by one, or through the API.

**Can I schedule it?**
Yes. Create a [schedule](https://docs.apify.com/platform/schedules) to capture the same pages every day or week, for example to track changes.

**Something doesn't look right?**
Open an issue on the Actor's Issues tab and include the URL and settings you used.

# Actor input Schema

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

Web pages to capture, one per line. "example.com" works too (https:// is added).

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

Desktop 1920×1080, laptop 1366×768, tablet (iPad) or mobile (iPhone 13, with a mobile browser). Custom uses the width and height below.

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

Capture the whole page from top to bottom ($3 per 1,000) instead of only the visible screen ($1.50 per 1,000). PDFs are priced like full pages.

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

PNG (sharp), JPEG (smaller files) or PDF (printable document with selectable text).

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

1–100, for JPEG only.

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

Skip requests to known ad and tracking networks: cleaner pictures and faster pages.

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

Hide common cookie and consent pop-ups (OneTrust, Cookiebot, Didomi, Quantcast and many more).

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

Ask the site for its dark theme (works on sites that support it).

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

Wait this long after the page loads before capturing, so animations and late content settle.

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

"Load" works for most sites. "Network idle" waits until the page stops downloading (slower, more complete).

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

Optional. Wait until this element appears before capturing, e.g. #main or .product-list.

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

Optional. Screenshot just one element, e.g. header, #chart or .pricing-table.

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

Optional. Elements to hide before capturing, e.g. .chat-widget or #newsletter-popup.

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

For full-page captures, scroll through the page first so lazy-loaded images appear.

## `maxHeight` (type: `integer`):

Full-page captures are cut at this height, so endless pages stay fast and manageable. Very large retina captures are also kept under 40 megapixels.

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

Used when Device is "Custom size".

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

Used when Device is "Custom size".

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

1 = normal, 2 = retina (twice as sharp), 3 = extra sharp. Tablet and mobile always use at least 2.

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

For PDF only.

## `pageTimeoutSecs` (type: `integer`):

If a page is still loading after this, whatever has loaded is captured.

## `ignoreHttpsErrors` (type: `boolean`):

Capture sites with expired or self-signed HTTPS certificates.

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

How many pages are captured in parallel. Raise it together with the run's memory (about 2 GB per page).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://en.wikipedia.org/wiki/Web_scraping",
    "https://news.ycombinator.com"
  ],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "quality": 85,
  "blockAds": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "delayMs": 1000,
  "waitUntil": "load",
  "waitForSelector": "",
  "selector": "",
  "hideSelectors": [],
  "scrollToLoad": true,
  "maxHeight": 10000,
  "width": 1920,
  "height": 1080,
  "scale": 1,
  "pdfPaper": "A4",
  "pageTimeoutSecs": 45,
  "ignoreHttpsErrors": true,
  "maxConcurrency": 2
}
```

# 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",
        "https://news.ycombinator.com"
    ]
};

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

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

```

## MCP server setup

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