# Static Website Screenshot with Load Warnings (`datalantern/static-website-screenshot`) Actor

Capture an authorized static page in a fixed viewport or full-page PNG with explicit load warnings.

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

## Pricing

from $1.60 / 1,000 complete static 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

## Static Website Screenshot

Capture one to five public pages you control or have permission to capture. The renderer keeps JavaScript disabled and uses the supplied HTML with a limited set of permitted same-origin assets. It is intended for static pages, rather than interactive apps or pages that need a login.

### Try the example

The default example uses a public WPT CSS reference page:

```json
{"authorized":true,"urls":["https://wpt.live/css/reference/ref-filled-green-100px-square-only.html"],"width":390,"height":844,"fullPage":false}
```

This is a paid capture, not a free preview: a complete image from this single-page example costs $0.0116 in Actor event charges. Replace the URL with a final public URL you are authorized to capture. No cookies, passwords, logged-in sessions, custom scripts or model calls are accepted.

### Results and image files

Open the run dataset for each page's status, original URL and input positions, dimensions, resource warnings, SHA-256 and image key. Download that key from the default key-value store as image/png. The Actor output links to the rows and run summary.

A complete image is marked complete. A uniform viewport, missing resource or script-dependent page is marked partial with a reason. Partial images may help diagnose a page, but do not establish what a visitor would see with JavaScript enabled. Repeated URLs that differ only by fragment share one capture and one result fee.

Viewport width is 240–1920 pixels and height is 200–1080 pixels. Optional full-page mode refuses documents over 4096 pixels high instead of clipping them. The worker has a 75-second process deadline followed by at most 5 seconds for termination. Already saved rows or images can remain available after an incomplete run; inspect its terminal status and warnings before starting another run.

### Prices and spending limits

Actor event charges are $0.01 per started run plus $0.0016 per complete captured page. One complete capture totals $0.0116; five complete captures total $0.018. Partial and skipped rows have no captured-page fee, but the startup fee remains due even if no complete image is produced.

The default maximum event charge is $0.018 and can be lowered. Before another capture, the program checks the available event budget and the expected price information. It stops before a new capture when the remaining budget cannot cover another complete result. It does not charge the startup event a second time from application code. Review the pricing tab and your run spending limit before starting.

### Rendering boundary

A separate non-root Chromium process is restricted by Linux file, socket and process-boundary controls. A fresh private attestation is verified before rendering. Chromium's internal namespace sandbox is not enabled in this candidate. Missing or unrecognized protection evidence stops the batch; there is no unprotected compatibility fallback.

Use trusted pages you control or are authorized to test, and avoid sensitive content. These controls do not guarantee protection against every browser vulnerability. A compromised browser or runtime could affect data or limited-permission operations available to the run. This tool does not audit the security of a website and does not bypass logins or anti-bot controls.

### Third-party software and source rights

THIRD_PARTY_NOTICES.txt, dependency-license-index.json and licenses/ retain the upstream notices, sources and attribution. The runtime image also contains SYSTEM_SOFTWARE_NOTICES.json, recording Node/Chromium and installed Debian package versions with available copyright-file hashes. These records do not grant rights to website content or third-party brands.

The example is a WPT reference page at the URL shown above. No WPT endorsement is claimed. You remain responsible for permission to capture and store your submitted pages and included resources.

### Runtime isolation evidence

A successful live result includes browserIsolation.runtimeProof with policyVersion 2, verified file and socket controls and a fresh private attestation. The browser receives a minimal environment. Invalid native program metadata, missing isolation evidence or a browser infrastructure failure stops further attempts and returns a fixed diagnostic stage/code. Unsupported runtime protection is a failure, not a successful empty result. Saved examples do not establish the current runtime's protection.

# Actor input Schema

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

One to five pages that you may capture.

## `authorized` (type: `boolean`):

I am allowed to capture these pages and their included resources.

## `width` (type: `integer`):

Pixels, from 240 to 1920.

## `height` (type: `integer`):

Pixels, from 200 to 1080.

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

Refuses documents over 4096 pixels high.

## Actor input object example

```json
{
  "urls": [
    "https://wpt.live/css/reference/ref-filled-green-100px-square-only.html"
  ],
  "authorized": true,
  "width": 390,
  "height": 844,
  "fullPage": false
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (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": [
        "https://wpt.live/css/reference/ref-filled-green-100px-square-only.html"
    ],
    "authorized": true,
    "width": 390,
    "height": 844
};

// Run the Actor and wait for it to finish
const run = await client.actor("datalantern/static-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://wpt.live/css/reference/ref-filled-green-100px-square-only.html"],
    "authorized": True,
    "width": 390,
    "height": 844,
}

# Run the Actor and wait for it to finish
run = client.actor("datalantern/static-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://wpt.live/css/reference/ref-filled-green-100px-square-only.html"
  ],
  "authorized": true,
  "width": 390,
  "height": 844
}' |
apify call datalantern/static-website-screenshot --silent --output-dataset

```

## MCP server setup

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