# Ads-free website screenshot creator (`data_alchemist/ads-free-screenshotter`) Actor

Capture clean, full-page screenshots of any website — free of cookie consent banners, ads, and pop-ups. Get regional versions of pages by selecting the browser language and the country of the exit IP address.

- **URL**: https://apify.com/data\_alchemist/ads-free-screenshotter.md
- **Developed by:** [Dennis](https://apify.com/data_alchemist) (community)
- **Categories:** Automation, Integrations
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Ads-free Website Screenshotter

Capture clean, full-page screenshots of any website — free of cookie consent banners, ads, and pop-ups. Get regional versions of pages by selecting the browser language and the country of the exit IP address.

### Features

- **Clean screenshots** — the browser runs through a residential proxy network with ad-blocking, so cookie consent dialogs and advertising banners do not appear in the output
- **Full-page capture** — scrolls the entire page before taking the screenshot so lazy-loaded images and content are fully rendered
- **Regional targeting** — set a two-letter country code (`country`) to route traffic through a residential IP in that country, and set `acceptLanguage` to match the local language; together they produce authentic regional versions of any page
- **Static thumbnail** — always generated alongside the full screenshot; a small PNG cropped from the top of the page
- **Animated thumbnail** — optional animated GIF that scrolls through the entire page, giving a compact visual preview of the full content

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `url` | string | — | **Required.** URL of the page to screenshot |
| `country` | string | `DE` | Two-letter country code for the proxy exit IP (e.g. `US`, `GB`, `FR`) |
| `acceptLanguage` | string | `en-US,en;q=0.9` | Value of the `Accept-Language` header sent to the page |
| `viewportWidth` | integer | `1920` | Browser viewport width in pixels (800–3000) |
| `viewportHeight` | integer | `1080` | Browser viewport height in pixels (800–3000) |
| `fullPage` | boolean | `true` | Capture the entire scrollable page; disable for viewport-only |
| `thumbWidth` | integer | `256` | Thumbnail width in pixels (32–512). If only one dimension is given, the other is calculated from the viewport ratio |
| `thumbHeight` | integer | `256` | Thumbnail height in pixels (32–512) |
| `animatedThumbnail` | boolean | `false` | Generate an animated GIF thumbnail that scrolls through the full page |

### Output

Each run produces one dataset record and three files in the key-value store:

```json
{
  "url": "https://example.com",
  "screenshotUrl": "https://api.apify.com/...",
  "thumbnailUrl": "https://api.apify.com/...",
  "animatedThumbnailUrl": "https://api.apify.com/...",
  "capturedAt": "2024-01-15T12:00:00.000Z"
}
````

| Key | Format | Description |
|---|---|---|
| `screenshot` | PNG | Full-page or viewport screenshot |
| `thumbnail` | PNG | Static thumbnail cropped from the top of the page |
| `thumbnail_animated` | GIF | Animated scrolling thumbnail (only when `animatedThumbnail` is enabled) |

### Regional screenshots example

To get a German version of a page:

```json
{
  "url": "https://example.com",
  "country": "DE",
  "acceptLanguage": "de-DE,de;q=0.9"
}
```

To get a French version:

```json
{
  "url": "https://example.com",
  "country": "FR",
  "acceptLanguage": "fr-FR,fr;q=0.9"
}
```

### Animated thumbnail

When `animatedThumbnail` is enabled, the actor generates a looping GIF that scrolls vertically through the entire page. The animation pauses at the top, at each viewport-height interval, and at the bottom — making it easy to skim long pages at a glance.

The GIF dimensions match the static thumbnail dimensions (`thumbWidth` × `thumbHeight`).

# Actor input Schema

## `url` (type: `string`):

Website URL to screenshot.

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

Browser viewport width in pixels.

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

Browser viewport height in pixels.

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

Capture the entire scrollable page. When disabled, only the visible viewport is captured.

## `acceptLanguage` (type: `string`):

Value of the Accept-Language header sent to the browser.

## `animatedThumbnail` (type: `boolean`):

Generate an animated GIF thumbnail that scrolls through the full page.

## `thumbWidth` (type: `integer`):

Thumbnail width in pixels (32–512).

## `thumbHeight` (type: `integer`):

Thumbnail height in pixels (32–512).

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

Two-letter country code for the proxy (e.g. US, DE, FR).

## Actor input object example

```json
{
  "url": "https://example.com",
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "fullPage": true,
  "acceptLanguage": "en-US,en;q=0.9",
  "animatedThumbnail": false,
  "thumbWidth": 256,
  "thumbHeight": 256,
  "country": "DE"
}
```

# 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 = {
    "url": "https://example.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_alchemist/ads-free-screenshotter").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 = { "url": "https://example.com" }

# Run the Actor and wait for it to finish
run = client.actor("data_alchemist/ads-free-screenshotter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://example.com"
}' |
apify call data_alchemist/ads-free-screenshotter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=data_alchemist/ads-free-screenshotter",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Ads-free website screenshot creator",
        "description": "Capture clean, full-page screenshots of any website — free of cookie consent banners, ads, and pop-ups. Get regional versions of pages by selecting the browser language and the country of the exit IP address.",
        "version": "0.1",
        "x-build-id": "7ecicxa6DGTQ5jlwM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/data_alchemist~ads-free-screenshotter/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-data_alchemist-ads-free-screenshotter",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/data_alchemist~ads-free-screenshotter/runs": {
            "post": {
                "operationId": "runs-sync-data_alchemist-ads-free-screenshotter",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/data_alchemist~ads-free-screenshotter/run-sync": {
            "post": {
                "operationId": "run-sync-data_alchemist-ads-free-screenshotter",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "URL",
                        "type": "string",
                        "description": "Website URL to screenshot."
                    },
                    "viewportWidth": {
                        "title": "Viewport Width",
                        "minimum": 320,
                        "type": "integer",
                        "description": "Browser viewport width in pixels.",
                        "default": 1920
                    },
                    "viewportHeight": {
                        "title": "Viewport Height",
                        "minimum": 240,
                        "type": "integer",
                        "description": "Browser viewport height in pixels.",
                        "default": 1080
                    },
                    "fullPage": {
                        "title": "Full Page",
                        "type": "boolean",
                        "description": "Capture the entire scrollable page. When disabled, only the visible viewport is captured.",
                        "default": true
                    },
                    "acceptLanguage": {
                        "title": "Accept-Language",
                        "type": "string",
                        "description": "Value of the Accept-Language header sent to the browser.",
                        "default": "en-US,en;q=0.9"
                    },
                    "animatedThumbnail": {
                        "title": "Animated Thumbnail",
                        "type": "boolean",
                        "description": "Generate an animated GIF thumbnail that scrolls through the full page.",
                        "default": false
                    },
                    "thumbWidth": {
                        "title": "Thumbnail Width",
                        "minimum": 32,
                        "maximum": 512,
                        "type": "integer",
                        "description": "Thumbnail width in pixels (32–512).",
                        "default": 256
                    },
                    "thumbHeight": {
                        "title": "Thumbnail Height",
                        "minimum": 32,
                        "maximum": 512,
                        "type": "integer",
                        "description": "Thumbnail height in pixels (32–512).",
                        "default": 256
                    },
                    "country": {
                        "title": "Country",
                        "minLength": 2,
                        "maxLength": 2,
                        "type": "string",
                        "description": "Two-letter country code for the proxy (e.g. US, DE, FR).",
                        "default": "DE"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
