# Website Screenshot API: Full Page, Mobile & Desktop (`goldensky_api/website-screenshot-api`) Actor

Capture any URL as PNG, JPEG or PDF with device sizes, dark mode, cookie-banner handling and full-page. One call can return mobile, tablet and desktop. Failed captures are free.

- **URL**: https://apify.com/goldensky_api/website-screenshot-api.md
- **Developed by:** [GoldenSky](https://apify.com/goldensky_api) (community)
- **Categories:** Developer tools, SEO 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 $4.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 and desktop in one call

**Give it web addresses. Get back a screenshot of each one at desktop, laptop, tablet and phone size, from a single run.** PNG, JPEG or PDF. Full page or one element. Dark mode. Cookie banners dismissed. Every result comes with the image link, the pixel size, the final address after redirects and the page title.

**You only pay for screenshots that succeed. Failed captures, 404s, timeouts, blocked sites, refused addresses and empty results are free.** If a run produces nothing, the run itself is marked as failed, so your automation sees it.

| | |
|---|---|
| Price | **$4.00 per 1,000 screenshots** (Free plan; less on paid Apify plans), plus a small start fee of $0.003 per GB of run memory (a default run uses 2 GB, so $0.006 per run) |
| One call, four sizes | desktop 1920x1080, laptop 1366x768, tablet 820x1180, phone 390x844 (real mobile browser, touch) |
| Formats | PNG, JPEG (with quality), PDF |
| Needs | Nothing. No login, no API key, no proxy to set up |

### What you get

- **Several screen sizes in one call.** Tick the sizes you want and every address is captured at each. One row per address and size.
- **Full page** (cut at 16,384 px tall and marked `truncated`, so a page can't make a file the size of a phone book). Lazy images are scrolled into view first.
- **One element.** Pass a CSS selector such as `#pricing` or `.hero`.
- **Cookie banners dismissed.** The accept button of the common consent tools is clicked, then banners still showing are hidden. It is best effort: a few sites can't be cleared.
- **Dark mode** for sites that support it, and **retina** (2x, 3x) pixel density.
- **Wait for the page.** A delay in seconds, or wait until an element appears (single-page apps, dashboards).
- **Clear answers.** Each row says `success`, `blocked`, `http_error`, `timeout`, `error` or `refused`, with a plain-language `message`.

### Price compared (checked 2 November 2026 on the Apify Store)

| Actor | Price per 1,000 screenshots | Several sizes in one call | Failed captures |
|---|---|---|---|
| **This Actor** | **$4.00** (Free plan) | **Yes** | **Free** |
| cheapapi/website-screenshot-api | $0.89 (Free plan) | One size per call | Free |
| moonweil/url-screenshot-api | $4.00 + $0.001 per run | One size per call | Not stated |
| apify/screenshot-url | Free, you pay compute | One size per call | Not free (compute is billed) |

We are not the cheapest per image. What you get for it: phone, tablet and desktop from one call, cookie banners dismissed, and a failed capture costs nothing. Prices change; check the Store pages for today's figures.

### How to use it

1. Open **Input**, paste your addresses, pick the sizes, press **Start**.
2. Open **Output**: the table has the image link for every address and size. The files are in the run's key-value store.
3. Or call it from code (below).

#### Input example

```json
{
  "urls": [{ "url": "https://apify.com" }, { "url": "https://example.com" }],
  "viewports": ["desktop", "tablet", "mobile"],
  "format": "png",
  "fullPage": true,
  "dismissCookieBanners": true,
  "darkMode": false
}
```

#### Output example (one row per address and size)

```json
{
  "url": "https://apify.com",
  "viewport": "mobile",
  "status": "success",
  "message": null,
  "imageUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/shot-3f9c2a....png",
  "width": 390,
  "height": 6120,
  "bytes": 912004,
  "httpStatus": 200,
  "finalUrl": "https://apify.com/",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "format": "png",
  "truncated": false,
  "charged": true,
  "capturedAt": "2026-11-17T09:31:02.114Z"
}
```

A site that shows a bot check comes back like this, and is not charged:

```json
{ "url": "https://example-protected.site", "viewport": "desktop", "status": "blocked",
  "message": "This site blocks automated visits (bot check page). We do not try to get around bot checks, so no screenshot was taken and you were not charged.",
  "charged": false }
```

#### From code

```bash
curl -X POST "https://api.apify.com/v2/acts/<username>~website-screenshot-api/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":[{"url":"https://example.com"}],"viewports":["desktop","mobile"]}'
```

### For AI agents and MCP

This Actor works as a tool for an AI agent through the Apify MCP server. It is deterministic, makes no model calls, and returns structured rows an agent can read without looking at the image.

- **Tool input:** `urls` (list of http/https addresses), `viewports` (any of `desktop`, `laptop`, `tablet`, `mobile`), `format`, `fullPage`, `selector`.
- **Tool output:** a list of rows. Check `status` first. Only `success` rows have `imageUrl`. `finalUrl`, `title` and `httpStatus` tell an agent where the page ended up and whether it was the page it asked for, without opening the file.
- **Failure behaviour an agent can rely on:** `blocked` and `refused` mean "do not retry, this will not work"; `timeout` and `error` can be retried; the run fails (non-success exit) when no screenshot was produced.
- **Cost control:** a run charges per successful screenshot only and respects the spending limit you set. `maxScreenshots` caps the size of a single call.

### What it will not do (on purpose)

- **It does not get around bot checks.** If a site shows a captcha or a "verify you are human" page, you get status `blocked`, no image and no charge. There is no stealth mode and no proxy rotation.
- **It refuses private addresses.** `localhost`, `10.x`, `192.168.x`, `169.254.x` (cloud metadata) and every other private or reserved range are refused, including addresses a public name resolves to and addresses a redirect points to.
- **It does not capture platform content.** Social networks, video platforms, search-result pages and AI chat apps are refused at input. Ordinary pages and links to your own files on file hosts are fine.
- **No login pages, no stored cookies, no personal data collected.** Nothing is kept after the run beyond the files in your own run storage.

### Limits

- Up to 500 screenshots per run (default 100, `maxScreenshots`), 120 seconds per capture at most, pages cut at 16,384 px tall.
- Typical speed: 2 to 4 seconds for one page; a batch of 24 screenshots took about 24 seconds in our tests.
- Memory: 2 GB is enough (measured peak under 1.4 GB).

### FAQ

**Why did I get `blocked`?** The site served a bot check or refused the visit. We never try to get past it; try again later or use the site's own API.

**Why is my full-page image shorter than the page?** Pages taller than 16,384 px are cut there and the row says `truncated: true`.

**Which cookie banners are handled?** OneTrust, Cookiebot, Didomi, Quantcast, Sourcepoint, TrustArc, Osano, HubSpot, CookieYes and many custom ones, by their accept button, plus a hide step for the rest. Not every site can be cleared.

**Do you support WebP?** Not yet: PNG, JPEG and PDF.

**Is it legal to screenshot a website?** Capturing a public page the way a browser shows it is ordinary use, but the content belongs to its owner. Check the site's terms for what you do with the images.

Found a page that fails? Open an issue on the Actor with the address and we will look at it.

# Changelog

This Actor's version history is a separate document: https://apify.com/goldensky_api/website-screenshot-api/changelog.md

# Actor input Schema

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

Public http(s) pages to capture. Addresses on private networks, social networks, video platforms, search-result pages and AI chat apps are refused.

## `viewports` (type: `array`):

Pick several to get all of them from one call: desktop 1920x1080, laptop 1366x768, tablet 820x1180, mobile 390x844 (a phone, with touch and a mobile browser).

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

PNG is lossless, JPEG is smaller, PDF prints the page (A4-width pages are not forced; the screen size sets the page width).

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

1 to 100. Only used when the format is JPEG.

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

Capture the whole scrolling page, not just the first screen. Pages taller than 16,384 px are cut at that height and marked truncated.

## `selector` (type: `string`):

Capture only the first element matching this selector, for example #pricing or .hero. If nothing matches, the result is an error and is free.

## `waitForSelector` (type: `string`):

Wait until this selector appears before capturing (single-page apps and dashboards).

## `delaySecs` (type: `number`):

Wait this long after the page has loaded, for animations and late content. 0 to 30.

## `dismissCookieBanners` (type: `boolean`):

Best effort: clicks the accept button of the common consent tools, then hides banners that are still showing. Not every site can be cleared.

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

Ask the site for its dark colour scheme (sites that support it will switch).

## `deviceScaleFactor` (type: `integer`):

1 is standard, 2 is retina, 3 is high-density phones. Larger values make bigger files.

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

A capture that takes longer is reported as a timeout and is not charged.

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

Safety cap on addresses times screen sizes. Anything over it is skipped and reported.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://example.com"
    },
    {
      "url": "https://docs.apify.com/platform"
    }
  ],
  "viewports": [
    "desktop",
    "mobile"
  ],
  "format": "png",
  "jpegQuality": 80,
  "fullPage": false,
  "delaySecs": 1,
  "dismissCookieBanners": true,
  "darkMode": false,
  "deviceScaleFactor": 1,
  "timeoutSecs": 45,
  "maxScreenshots": 100
}
```

# Actor output Schema

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

No description

## `files` (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://example.com"
        },
        {
            "url": "https://docs.apify.com/platform"
        }
    ],
    "viewports": [
        "desktop",
        "mobile"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("goldensky_api/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": [
        { "url": "https://example.com" },
        { "url": "https://docs.apify.com/platform" },
    ],
    "viewports": [
        "desktop",
        "mobile",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("goldensky_api/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": [
    {
      "url": "https://example.com"
    },
    {
      "url": "https://docs.apify.com/platform"
    }
  ],
  "viewports": [
    "desktop",
    "mobile"
  ]
}' |
apify call goldensky_api/website-screenshot-api --silent --output-dataset

```

## MCP server setup

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