# Website Screenshot — Full Page, Mobile & Bulk (`tienlq/website-screenshot`) Actor

Take screenshots of any list of URLs: full page or viewport, desktop, tablet or mobile, PNG or JPEG. Cookie banners hidden automatically. $1 per 1,000 screenshots, failed pages are free, no platform usage to pay on top.

- **URL**: https://apify.com/tienlq/website-screenshot.md
- **Developed by:** [Luong Quyet Tien](https://apify.com/tienlq) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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: Full Page, Mobile & Bulk

Take screenshots of any list of URLs: the visible window or the full page, on desktop, laptop, tablet or mobile, as PNG or JPEG. Cookie and consent banners are hidden automatically, lazy-loaded images are loaded before the capture, and every screenshot gets a public link you can drop into a spreadsheet, a report or an AI pipeline.

### At a glance

| | |
|---|---|
| Price | **$1 per 1,000 screenshots**, platform usage included |
| Failed pages | **Free** |
| Pages that answer 403/404/500, or show a bot check | Screenshot kept, **free** |
| Devices | Desktop, laptop, tablet (iPad), mobile (iPhone), or any custom size |
| Cookie banners | Hidden (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint and more) |
| Output | Public image URL per page, plus title, final URL and HTTP status |

**Cheaper than the "free" screenshot actors.** A free actor still bills you for the browser it runs, which usually comes to a few dollars per 1,000 pages. Here the $1 covers everything, and you only pay for pages that worked.

### How to use it

**A few pages, desktop, what you see on screen**

```json
{
  "urls": ["apify.com", "https://www.wikipedia.org"]
}
```

**Full-page mobile screenshots as JPEG**

```json
{
  "urls": ["https://www.bbc.co.uk", "https://www.lemonde.fr"],
  "device": "mobile",
  "fullPage": true,
  "format": "jpeg"
}
```

**Custom size, wait for a heavy app**

```json
{
  "urls": ["https://example-dashboard.com"],
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "waitUntil": "networkidle",
  "delayMs": 3000
}
```

### What you get

One row per URL:

```json
{
  "url": "https://apify.com",
  "finalUrl": "https://apify.com/",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "statusCode": 200,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/0001-apify-com.png?signature=...",
  "screenshotKey": "0001-apify-com.png",
  "device": "desktop",
  "fullPage": false,
  "format": "png",
  "sizeBytes": 874272
}
```

- `screenshotUrl` opens the image directly, no API token needed. In the *Output* tab you see the images as thumbnails.
- All images are also in the run's key-value store, named `0001-domain-path.png` in input order, so you can download them in bulk.
- If a page fails, its row has `url` and `error`, and you're not charged.
- If the site answers with an error code, or shows a bot check (Cloudflare "Just a moment", Amazon "Continue shopping" and similar) instead of the page, you still get the screenshot and a `note`, and you're not charged.

### Full-page screenshots

We scroll through the page first so lazy-loaded images appear, then capture it in one image. Browsers can't produce images taller than about 16,000 pixels, so very long pages are cut at that height (8,000 CSS pixels on mobile, which renders at 2× density). Those rows have `truncatedAtPx`. JPEG keeps long captures much smaller than PNG.

### Tips

- **Blocked sites**: some big sites block datacenter IPs and answer 403. Turn on Apify Proxy (residential) in the *Proxy* section.
- **Animations or late content**: raise *Delay after load*, or set *Wait until* to *Network idle*.
- **Speed**: 5 pages in parallel is the default and fits 2 GB of memory. For big lists, raise *Max concurrency* together with the run memory.
- Set a **maximum cost per run** in the run options and the actor stops cleanly when it's reached.

### Questions, bugs, ideas

Open an issue on the Issues tab and include the run ID, so we can see exactly what happened.

# Actor input Schema

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

Pages to capture, one per row. Bare domains (example.com) are fine.

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

Capture the whole scrollable page instead of just the visible window.

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

Window size and user agent. Tablet and mobile use a mobile user agent and a high-DPI screen.

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

PNG is sharp; JPEG is much smaller for full-page captures.

## `jpegQuality` (type: `integer`):

Only used for JPEG.

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

Hides OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast and other common consent popups.

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

Extra wait after the page loads, for animations and lazy images.

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

When to take the screenshot. 'Page loaded' works for most sites; use 'Network idle' for heavy single-page apps.

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

Overrides the device width.

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

Overrides the device height. With Full page off, this is the height of the screenshot.

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

Give up on a page after this long. Failed pages are free.

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

Pages captured in parallel. More needs more memory.

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

Not needed for most sites. Turn on for sites that block datacenter IPs or show a different page per country.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org"
  ],
  "fullPage": false,
  "device": "desktop",
  "format": "png",
  "jpegQuality": 80,
  "hideCookieBanners": true,
  "delayMs": 1000,
  "waitUntil": "load",
  "pageTimeoutSecs": 30,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "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://www.wikipedia.org"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tienlq/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://www.wikipedia.org",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tienlq/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://www.wikipedia.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tienlq/website-screenshot --silent --output-dataset

```

## MCP server setup

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