# Website Screenshot — Clean Full Page, No Cookie Banners, No Ads (`f1_snail/website-screenshot`) Actor

Clean screenshots of any URL: cookie banners dismissed, ads removed, full-page scrollshots of long pages, browser locale matched to the site's country.

- **URL**: https://apify.com/f1_snail/website-screenshot.md
- **Developed by:** [F1_snail](https://apify.com/f1_snail) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

Give it URLs, get back **clean pictures of the pages**: cookie banners gone, ads and popups gone, the **whole page** including lazy-loaded content, rendered the way a visitor from the site's own country sees it. One row per URL with the image link, HTTP status and an honest `blocked` flag when a site answered with a bot wall instead of its content.

### What you get

- **Clean**: cookie banners dismissed, ads, trackers, newsletter overlays, sign-in prompts and chat widgets removed. Each is a switch, so you can also get the page exactly as served.
- **Complete**: full-page scrollshots that include content the page only loads while scrolling. Sticky headers and floating widgets appear once, not on every screen.
- **Local**: a real desktop browser at 1920 px with the language and timezone of the site's country (`.de` → German, `.fr` → French, …), so region-dependent texts and prices show as a local visitor sees them.
- **Honest**: a bot wall or error page is delivered as the picture and marked in the row. Nothing is bypassed. `robots.txt` is respected.

### How to use it

1. Paste one or more URLs into **URLs** (plain URLs, or `{"url": "...", "country": "DE"}` to pin the browser country for a page).
2. Pick **scrollshot** (whole page) or **screenshot** (first screen).
3. Run. Each row links to the image; the Output tab shows the pictures inline.

### Input

| Field | Default | Meaning |
|---|---|---|
| `urls` | | Pages to capture. |
| `mode` | `scrollshot` | `scrollshot` = whole page, `screenshot` = first screen. |
| `format` | `jpeg` | `png` available for screenshot mode. |
| `country` | `auto` | Browser country from the domain, or a fixed two-letter code. |
| `respectRobots` | `true` | Skip pages that `robots.txt` disallows or that carry a TDM reservation. Switch off only for sites you own or have permission for; switching it off is your confirmation of that, and the responsibility for the capture is yours. |
| `useResidential` | `false` | Visit through an Apify residential IP in the browser country (billed by Apify per GB). |
| `consent` | `optOut` | Reject cookie banners, `optIn` to accept, `off` to leave them. |
| `blockAds` | `true` | Remove ads and trackers. |
| `blockAnnoyances` | `true` | Also remove popups, overlays, sign-in prompts, app banners. |
| `waitSecs` | `5` | Settle time after load. |
| `maxHeight` | `30000` | Longer scrollshots are cut and marked `truncated`. |
| `maxScrollSecs` | `60` | Time budget per page. |
| `navTimeoutSecs` | `45` | Pages that do not load in time are reported as an error. |
| `refreshFilterLists` | `true` | Check for newer filter lists at start. |

### Output

```json
{
  "url": "https://www.bbc.com/news",
  "status": 200,
  "title": "BBC News - Breaking news, video and the latest top stories",
  "country": "US",
  "mode": "scrollshot",
  "format": "jpeg",
  "image": "https://api.apify.com/v2/key-value-stores/.../records/shot-001-www-bbc-com.jpg?signature=...",
  "width": 1904,
  "height": 4824,
  "pageHeight": 4824,
  "truncated": false,
  "blocked": null,
  "error": null,
  "secs": 10.7
}
```

- `image` is a permanent signed link that works without a token, for as long as the run's storage exists.
- `blocked` names the bot wall that answered instead of the page (`cloudflare`, `datadome`, `akamai`, `http 403`, …). The image shows it.
- `error` is set when there is no image: invalid URL, timeout, host not reachable, disallowed by `robots.txt`, rights reserved by the site. Such rows are not charged.

### Cost

The Actor is **free**; you pay only Apify platform usage, which every plan includes. Measured on real pages: about **$0.005** per first-screen screenshot and **$0.005–0.02** per full-page scrollshot. A batch of 25 mixed sites took 7 minutes and $0.19.

### Use cases

- Dated visual records of pages for compliance, legal evidence, price or terms monitoring; schedule it for a daily capture.
- Seeing a landing page as visitors from a given country see it, without the cookie wall.
- Readable full-page captures of articles and product pages for reports and archives.
- Clean page images as input for vision models and AI agents, via API or the Apify MCP server.

### Good to know

- Blocked pages are not worked around; every delivered image counts as a result, walls included.
- Pages that need an account show their guest view.
- Some overlays that a site re-opens while scrolling, and ads the public filter lists do not know, can remain in the picture.
- Expect 10–60 s per page. For batches of more than about 50 pages, raise the run timeout (default 1 hour); results are saved page by page, so a timeout keeps what was done.
- PDF export is not available yet.
- A run talks only to the target sites, the filter list servers (can be switched off) and the Apify proxy if you enable it.

### For site owners

If you do not want this Actor to picture your pages, you do not need to contact anyone:

- `robots.txt`: `User-agent: website-screenshot` followed by `Disallow: /` (a `Disallow` for `*` is respected as well).
- TDM reservation: the header `TDM-Reservation: 1` on your pages, or a `/.well-known/tdmrep.json` with `"tdm-reservation": 1`.

Both are checked before any picture is taken. For anything else, use the **Issues** tab.

### Credits and licenses

[Ghostery adblocker](https://github.com/ghostery/adblocker) (MPL-2.0) with [EasyList, EasyPrivacy, EasyList Germany](https://easylist.to/) (GPLv3 / CC BY-SA 3.0), [uBlock Origin lists](https://github.com/uBlockOrigin/uAssets) (GPLv3), [Fanboy's Annoyance List](https://easylist.to/) (CC BY 3.0) and [AdGuard Popups filter](https://github.com/AdguardTeam/AdguardFilters) (GPLv3); cookie banners by [DuckDuckGo autoconsent](https://github.com/duckduckgo/autoconsent) (MPL-2.0); images by [sharp](https://sharp.pixelplumbing.com/) (Apache-2.0). List versions used by a run are recorded under `BLOCKER_META` in the run's key-value store.

### Questions or problems

Use the **Issues** tab and include the run URL.

# Actor input Schema

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

Pages to capture. Plain URLs, or objects {"url": ..., "country": "DE"} to pin the browser country for one page.

## `mode` (type: `string`):

scrollshot: the whole page, captured segment by segment while scrolling so lazy-loaded content is included. screenshot: the first screen only (1920 px wide).

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

JPEG for both modes; PNG only for screenshot mode.

## `country` (type: `string`):

auto: derived from the site's domain (.de → German locale and timezone, generic domains → US). Or a two-letter country code for all pages.

## `useResidential` (type: `boolean`):

Visit through an Apify residential IP in the browser country. Apify bills the proxy traffic separately per GB.

## `respectRobots` (type: `boolean`):

Skip pages the site's robots.txt disallows, and pages whose site reserves text and data mining rights (TDM-Reservation header or /.well-known/tdmrep.json). Such pages are reported with an error and not charged. Only switch this off for sites you own or have permission for. Switching it off is your confirmation of that, and the responsibility for the capture is yours.

## `consent` (type: `string`):

optOut: reject (banner gone, no tracking consent). optIn: accept, for sites that only show content after consent. off: leave banners alone.

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

Filter ads and trackers with EasyList, EasyPrivacy, EasyList Germany and uBlock Origin lists. Not applied on Google, Amazon, eBay and login pages.

## `blockAnnoyances` (type: `boolean`):

Also hide newsletter overlays, sign-in prompts, app banners, chat widgets and similar with Fanboy's Annoyances, AdGuard Popups and uBlock annoyances lists. Switch off for a picture of the page as served. Needs "Remove ads".

## `waitSecs` (type: `integer`):

Wait after the page has loaded before capturing, for late content and banner handling.

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

Scrollshots longer than this are cut and marked truncated.

## `maxScrollSecs` (type: `integer`):

Upper time limit per page for scrolling and capturing; longer pages are cut and marked truncated.

## `navTimeoutSecs` (type: `integer`):

Pages that do not load within this time are reported as an error and not charged.

## `refreshFilterLists` (type: `boolean`):

At start, ask each list server once whether its list changed since the build (one conditional request per list). Off: use the versions baked into the build.

## Actor input object example

```json
{
  "urls": [
    "https://www.bbc.com/news"
  ],
  "mode": "scrollshot",
  "format": "jpeg",
  "country": "auto",
  "useResidential": false,
  "respectRobots": true,
  "consent": "optOut",
  "blockAds": true,
  "blockAnnoyances": true,
  "waitSecs": 5,
  "maxHeight": 30000,
  "maxScrollSecs": 60,
  "navTimeoutSecs": 45,
  "refreshFilterLists": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per URL: image link, HTTP status, country, height, truncated, blocked, error, charged.

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

The JPEG/PNG files, keys shot-<n>-<host>.<ext>.

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

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

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

```

## MCP server setup

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