# Website Screenshot API: Full Page, No Cookie Banners (`datadesk-io/website-screenshot-api`) Actor

Input: list of URLs + device (desktop/mobile), full page, format. Output: one JSON row per URL with a public screenshot image URL, final URL, title and HTTP status. Cookie banners and popups removed automatically.

- **URL**: https://apify.com/datadesk-io/website-screenshot-api.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 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: Bulk Full-Page Screenshots Without Cookie Banners

**Website screenshot tool / URL to image API** · **captura de pantalla de sitios web** · **captura de tela de sites**.

Take **clean screenshots of any website in bulk**. Cookie banners, GDPR consent popups and sticky overlays are **removed automatically**, so your screenshots look like the real page, not a OneTrust dialog.

### Features

- 🍪 **Cookie banner & consent popup removal** (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, Termly, Iubenda + generic) by clicking "Accept" and hiding leftovers.
- 📱 Devices: desktop, desktop HD (1920×1080), tablet, mobile (iPhone, retina).
- 🖼️ Full page or viewport · PNG or JPEG · dark mode · hide any extra CSS selectors (chat widgets, newsletter modals).
- 🔗 Every screenshot gets a **public image URL**, plus page title, final URL and HTTP status.
- 💸 **Pay only for successful screenshots**: failed pages are free.

### Use cases

Website monitoring & visual archives · SEO / competitor tracking · link previews & thumbnails · QA of landing pages · feeding vision-AI models · lead-gen enrichment.

### Input example

```json
{ "urls": ["https://stripe.com", "https://www.bbc.com"], "fullPage": true, "device": "mobile", "format": "jpeg" }
```

### Output example

```json
{ "url": "https://www.bbc.com", "title": "BBC Home", "statusCode": 200, "device": "desktop", "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/shot-1a2b3c4d5e6f.png", "bytes": 482113, "cookieBannersRemoved": true }
```

### Pricing

Pay-per-event: **$2.00 per 1,000 screenshots** + $0.005 per run (only if at least one screenshot succeeds).

### Use with AI agents (MCP)

This Actor works as a tool for AI agents through the [Apify MCP server](https://mcp.apify.com). Add it to Claude (Desktop/Code), ChatGPT, Cursor, VS Code or any MCP client with this URL:

`https://mcp.apify.com/?tools=datadesk-io/website-screenshot-api`

Sign in with your Apify account (OAuth) or pass your API token. The agent sees the input schema, runs the Actor and reads the dataset; every input field is optional and every output field is documented.

**What goes in → what comes out:** Input: list of URLs + device (desktop/mobile), full page, format. Output: one JSON row per URL with a public screenshot image URL, final URL, title and HTTP status. Cookie banners and popups removed automatically.

**Example prompt:**

> Take mobile screenshots of stripe.com and apple.com without cookie banners and give me the image links.

# Actor input Schema

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

Pages to screenshot.

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

Capture the whole scrollable page instead of the viewport.

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

Device.

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

Format.

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

JPEG quality.

## `removeCookieBanners` (type: `boolean`):

Clicks 'Accept' and hides OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and generic consent banners.

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

e.g. .chat-widget, #newsletter-modal

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

Dark mode.

## `waitMs` (type: `integer`):

Wait after load before capturing.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.bbc.com"
  ],
  "fullPage": false,
  "device": "desktop",
  "format": "png",
  "jpegQuality": 80,
  "removeCookieBanners": true,
  "darkMode": false,
  "waitMs": 1500
}
```

# Actor output Schema

## `overview` (type: `string`):

All screenshots (overview view). Each item: url, finalUrl, title, statusCode, device, fullPage, format, bytes, screenshotKey, screenshotUrl, cookieBannersRemoved, takenAt.

# 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.bbc.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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://www.bbc.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/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://www.bbc.com"
  ]
}' |
apify call datadesk-io/website-screenshot-api --silent --output-dataset

```

## MCP server setup

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