# Website Screenshot API: Full Page, Mobile & Bulk URLs (`forgeloop/website-screenshot`) Actor

Take full-page or viewport screenshots of any list of websites as PNG or JPEG. Desktop, laptop, tablet and mobile presets, dark mode, lazy-loading support, hide cookie banners and chat widgets. Direct image links in the output. Pay per screenshot, errors are free.

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

## Pricing

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

Capture screenshots of any list of websites in one run. Full page or visible screen, PNG or JPEG, desktop, laptop, tablet or mobile. Every result has a direct link to the image.

Good for monitoring how pages look, archiving competitor sites, visual checks before and after a release, building link previews or feeding page images into AI models.

### Features

- **Full-page screenshots** from top to bottom, with automatic scrolling so lazy-loaded images show up.
- **Device presets:** Desktop 1440 x 900, Laptop 1280 x 800, Tablet (iPad) and Mobile (iPhone) with touch and high-DPI emulation. Custom width and height on top.
- **Dark mode** for sites that support it.
- **Hide elements** such as cookie banners or chat widgets with CSS selectors.
- **PNG or JPEG** with adjustable quality.
- **Parallel capture** of several pages at once.
- Clear error per URL. Failed pages are not charged.

### Input

| Field | Description | Default |
|---|---|---|
| URLs | Websites to capture | |
| Device | desktop, laptop, tablet, mobile | desktop |
| Full page | Whole page or visible screen only | on |
| Image format | PNG or JPEG | PNG |
| JPEG quality | 10 to 100 | 80 |
| Dark mode | Prefer dark color scheme | off |
| Hide elements | CSS selectors to hide | none |
| Wait until | load, DOM ready or network idle | load |
| Extra delay | Seconds to wait after loading | 1 |
| Max full-page height | Longer pages are cut | 15,000 px |

### Output

One dataset item per URL. The image itself is stored in the run's key-value store and linked in `screenshotUrl`.

```json
{
  "url": "https://www.wikipedia.org",
  "finalUrl": "https://www.wikipedia.org/",
  "title": "Wikipedia",
  "statusCode": 200,
  "device": "desktop",
  "width": 1440,
  "height": 1101,
  "fullPageHeight": 1101,
  "truncated": false,
  "format": "png",
  "bytes": 136985,
  "screenshotKey": "www-wikipedia-org-desktop-54a73799fc.png",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/www-wikipedia-org-desktop-54a73799fc.png",
  "takenAt": "2026-11-11T08:00:00.000Z",
  "error": null
}
```

### Pricing

Pay per successful screenshot. Errors cost nothing.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

### Limits

- Pages behind a login are not supported.
- Some sites block automated browsers or show a cookie wall. Use "Hide elements" for banners.
- Only public addresses. Local and private network addresses are refused.

### Data source, permitted use and legal

- **Data source:** Public web pages at the URLs you enter. The Actor fetches them live during the run.
- **Snapshot:** Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Permitted use:** Process only content you are allowed to access and use, for example your own websites and documents or public pages you have a legitimate reason to process. Respect the terms of the websites and the rights in the content.
- **Your responsibility:** You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
- **No circumvention:** The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
- **Request volume:** One page load per URL, including the resources the page loads itself, like a normal browser visit. Do not use it to put excessive load on a website.
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

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

Websites to capture. A missing https:// is added automatically. Format: a list of objects with a url key, like \[{"url": "https://example.com"}]. Plain strings are not accepted. Each successful URL is one charged screenshot.

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

Screen size and device emulation. Width and height below override the preset.

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

Capture the whole page from top to bottom. Off captures only the visible screen.

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

PNG keeps every pixel. JPEG gives much smaller files.

## `quality` (type: `integer`):

Only used for JPEG. 10 to 100.

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

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

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

CSS selectors of elements to hide before the screenshot, for example cookie banners or chat widgets: #cookie-banner, .intercom-launcher

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

When the page counts as loaded.

## `delaySeconds` (type: `integer`):

Wait this long after loading, for animations or late content.

## `scrollToBottom` (type: `boolean`):

Scroll through the page before a full-page screenshot so lazy-loaded images appear.

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

Overrides the device preset. 320 to 3840.

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

Overrides the device preset. 320 to 2160.

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

Very long pages are cut at this height.

## `timeoutSeconds` (type: `integer`):

Give up on a page after this many seconds.

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

How many pages are captured at the same time.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.wikipedia.org"
    },
    {
      "url": "https://apify.com"
    }
  ],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "darkMode": false,
  "hideSelectors": [],
  "waitUntil": "load",
  "delaySeconds": 1,
  "scrollToBottom": true,
  "maxHeight": 15000,
  "timeoutSeconds": 45,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

No description

## `screenshots` (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": [
        {
            "url": "https://www.wikipedia.org"
        },
        {
            "url": "https://apify.com"
        }
    ]
};

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

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

```

## MCP server setup

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