# Website Screenshot API - Full Page, Mobile, No Cookie Banners (`youthful_colleague/website-screenshot`) Actor

Take full-page or viewport screenshots of any public URL as PNG or JPEG. Desktop, laptop, tablet and mobile presets, dark mode, element capture and automatic cookie banner hiding. Pay only for successful screenshots.

- **URL**: https://apify.com/youthful_colleague/website-screenshot.md
- **Developed by:** [José S](https://apify.com/youthful_colleague) (community)
- **Categories:** Developer 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 screenshots

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 API - Full Page, Mobile, No Cookie Banners

Take **screenshots of any public web page** as PNG or JPEG: the full page from top to bottom or just the visible screen, on **desktop, laptop, tablet or mobile**. Capture one URL or a whole list in bulk. Common **cookie consent pop-ups are hidden** automatically, lazy-loaded images are loaded before the capture, and you **only pay for screenshots that succeed**.

### Bulk screenshots from a list of URLs

Paste tens or hundreds of URLs (the URLs field has a bulk edit mode for pasting a whole list) or send them through the API, and the Actor captures them in a single run, three pages at a time.

- Every screenshot gets its own row in the dataset with a **direct image link** (`screenshotUrl`), the final URL after redirects, the HTTP status and the page title. Export that table to CSV or Excel and you have a clickable index of all your captures.
- All images are also stored in the run's key-value store, ready to download.
- URLs that fail (timeouts, DNS errors, private addresses) are listed with the reason and are **not charged**.
- **Max screenshots** caps the run, so a long list never costs more than you planned.

### Full-page screenshots

With **Full page** on (the default), the Actor scrolls the page first so that images and sections that load on scroll appear, then captures the whole page from the header to the footer in one image. Turn it off to capture only the first screen ("above the fold"), or set **Capture only this element** to crop to a single part of the page, such as a pricing table or a chart.

### Mobile and tablet screenshots

Pick a device preset and the page is rendered as that device would see it, with a touch screen, high pixel density and, for mobile, an iPhone browser identity, so responsive sites serve their real mobile layout:

| Preset | Viewport | Image width |
|---|---|---|
| Mobile | 390 x 844, 3x density | 1170 px |
| Tablet | 820 x 1180, 2x density | 1640 px |
| Laptop | 1280 x 800 | 1280 px |
| Desktop | 1366 x 768 | 1366 px |
| Desktop HD | 1920 x 1080 | 1920 px |

Any other size works too: set a custom width (200 to 3840) and height (200 to 2160).

### Screenshots for AI agents and MCP

Give an agent the ability to see a web page. Through the [Apify MCP server](https://mcp.apify.com), any MCP client (Claude, Cursor, VS Code and others) can call this Actor as a tool and get back a link to the image plus the page title and status:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=youthful_colleague/website-screenshot"
        }
    }
}
```

Tips for agents: ask for `"format": "jpeg"` and `"fullPage": false` when the model only needs the top of the page. The image is much smaller and the call finishes faster.

### SEO, visual monitoring and archiving

- **SEO and marketing reports**: full-page captures of landing pages, product pages or competitor pages, on desktop and mobile, to show layout, above-the-fold content and changes over time.
- **Visual monitoring**: schedule the Actor daily in Apify Console and keep a dated visual history of your site or your competitors' pricing pages. Each row has `takenAt`, so captures are easy to sort and compare.
- **Release checks**: capture key pages on every device preset after a deploy.
- **Archiving and compliance**: keep proof of what a page showed on a given date, with its final URL and HTTP status.

### Features

- Full-page, viewport or single-element screenshots.
- Device presets (desktop, HD, laptop, tablet, mobile) or any custom size.
- Hides the most common cookie banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, Osano, iubenda and others).
- Hide any other element with your own CSS selectors (chat widgets, sticky headers, ads).
- Scrolls the page first so lazy-loaded images appear in full-page captures.
- Dark mode, extra wait time and three loading strategies.
- PNG (lossless) or JPEG (smaller, adjustable quality).
- Refuses local and private network addresses. Failed URLs are not charged.

### How to use it

1. Add one or more **URLs**.
2. Pick a **device** and whether you want the **full page**.
3. Click **Start**. Each row in the results has a link to its image. All images are also in the run's key-value store.

#### Input example

```json
{
    "urls": [
        { "url": "https://apify.com" },
        { "url": "https://en.wikipedia.org/wiki/Web_scraping" }
    ],
    "device": "mobile",
    "fullPage": true,
    "format": "jpeg",
    "jpegQuality": 80,
    "hideCookieBanners": true,
    "hideSelectors": ["#chat-widget"],
    "delayMs": 1000
}
```

#### Call it from your code

One HTTP request runs the Actor and returns the results as JSON:

```bash
curl -X POST "https://api.apify.com/v2/acts/youthful_colleague~website-screenshot/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": [{"url": "https://apify.com"}], "device": "desktopHD", "format": "jpeg"}'
```

#### Output example

```json
{
    "url": "https://www.wikipedia.org",
    "finalUrl": "https://www.wikipedia.org/",
    "statusCode": 200,
    "title": "Wikipedia",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/screenshot-0001-72e64cabc23f.jpg",
    "screenshotKey": "screenshot-0001-72e64cabc23f.jpg",
    "format": "jpeg",
    "device": "desktop",
    "viewportWidth": 1366,
    "viewportHeight": 768,
    "fullPage": true,
    "elementSelector": null,
    "bytes": 107525,
    "takenAt": "2026-11-14T22:47:41.000Z",
    "error": null
}
```

A failed URL looks like this and costs nothing:

```json
{
    "url": "http://127.0.0.1:8080",
    "error": "Invalid or non-public URL. Only public http(s) addresses are allowed.",
    "takenAt": "2026-11-14T22:47:30.000Z"
}
```

### Pricing

This Actor uses **pay per event**.

| Event | Price |
|---|---|
| Screenshot (one successful image) | **$2.00 per 1,000 screenshots** ($0.002 each) |
| Actor start | Apify default, a fraction of a cent per run |

Lower prices apply automatically on higher Apify plans (Silver and Gold). Platform usage is included. Use **Max screenshots** or the run's maximum cost setting to cap what you spend; the Actor stops cleanly at either limit.

### Tips

- Use **JPEG** for long pages: files are often 5 to 10 times smaller than PNG.
- If content appears late, raise **Extra wait** or choose **Network idle**.
- If a site blocks data center traffic, enable **Apify Proxy** in the input.
- Some sites use their own custom cookie banners. Add their CSS selector to **Hide these elements**.

### Limitations

- Only public pages. The Actor does not log in, fill forms or solve CAPTCHAs, and it refuses local and private network addresses.
- Very long pages are captured up to the browser's maximum image size.
- You are responsible for having the right to capture and use the pages you screenshot, and for respecting the websites' terms.

### Feedback

Open an issue on the **Issues** tab with the URL and settings you used, and it will be checked.

# Actor input Schema

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

Public web pages to capture. One screenshot per URL.

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

Screen size and type. Mobile and tablet use a touch screen, high pixel density and a mobile browser identity.

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

Capture the whole page from top to bottom. Turn off to capture only the visible screen.

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

PNG is lossless. JPEG files are much smaller.

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

Only for JPEG. From 30 to 100.

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

Hide the most common cookie consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics and others) before taking the screenshot.

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

When the page counts as loaded. "Network idle" is slower but better for pages that load content late.

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

Additional wait after the page loads, for animations or late content. Up to 15,000.

## `scrollToLoadLazyContent` (type: `boolean`):

For full-page screenshots, scroll down the page first so that images that load on scroll appear.

## `maxScreenshots` (type: `integer`):

Hard cap for the run. Extra URLs are ignored, so you never pay for more than this.

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

Optional. Overrides the device width. From 200 to 3840.

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

Optional. Overrides the device height. From 200 to 2160.

## `elementSelector` (type: `string`):

Optional CSS selector, for example "#main" or ".pricing-table". The screenshot is cropped to that element.

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

Optional CSS selectors to hide before the screenshot, for example chat widgets or sticky headers.

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

Ask the page for its dark color scheme, if it has one.

## `timeoutSecs` (type: `integer`):

How long to wait for a page to load before retrying. From 10 to 120.

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

Usually not needed. Use it for sites that block data center traffic or to see a site from a specific country.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "jpegQuality": 80,
  "hideCookieBanners": true,
  "waitUntil": "load",
  "delayMs": 1000,
  "scrollToLoadLazyContent": true,
  "maxScreenshots": 100,
  "darkMode": false,
  "timeoutSecs": 45,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `screenshots` (type: `string`):

One row per URL with the screenshot link, page title, HTTP status and any error.

## `files` (type: `string`):

All screenshot images stored in the run's key-value store.

# 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": [
        {
            "url": "https://apify.com"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("youthful_colleague/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": [{ "url": "https://apify.com" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

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