# Website Screenshot Generator (`parseforge/screenshot-url`) Actor

Renders a list of URLs in a headless browser and returns a screenshot for each one, with optional HTML snapshots and mobile variants.

- **URL**: https://apify.com/parseforge/screenshot-url.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 70 total users, 22 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $14.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

![ParseForge Banner](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)

## 📸 URL Screenshot Tool

> 🚀 **Capture full-page screenshots of any website in seconds.** PNG, JPEG, or PDF export with **custom viewport, wait conditions, and meta tag extraction**. No API key, no registration, no browser licensing hassles.

The **URL Screenshot Tool** renders any URL in a headless Chromium browser and saves the output as PNG, JPEG, or PDF. Each capture ships with page metadata (title, meta tags, OpenGraph, Twitter Card, HTTP status, final URL after redirects, page load time, console errors, and detected technologies) so you can audit SEO, performance, and visuals in one pass. The tool runs up to 10 captures in parallel, blocks heavy resources like fonts and video, and supports custom wait conditions for slow-rendering single-page apps.

Screenshots are uploaded to the run's key-value store, and the public URL is included in each dataset record so you can download or embed images directly. Optional mobile (iPhone-class) snapshots and full HTML snapshots ride along with the desktop capture. Use it for design audits, compliance archives, visual regression testing, or any workflow where you need a pixel-perfect snapshot of a live page.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Designers, QA teams, compliance officers, marketers, product managers, competitive intelligence | Design audits, visual regression, compliance archiving, competitor monitoring, PDF report generation |

### 📋 What the URL Screenshot Tool does

Six capture workflows in a single run:

- 🖼️ **Multi-format output.** PNG, JPEG, or PDF export per URL.
- 🖥️ **Custom viewport.** Set width, height, and device emulation for responsive captures.
- 📜 **Full-page capture.** Scroll and stitch the entire page, or capture just the viewport.
- ⏳ **Wait conditions.** Wait for a CSS selector, a fixed timeout, or `domcontentloaded`.
- 🏷️ **Meta tag audit.** Every capture returns the full meta tag dictionary plus parsed OpenGraph, Twitter Card, and heading outline for SEO review.
- 🔗 **Redirect tracking.** Records the final URL after all redirects, HTTP status, console error count, and detected technologies.

Plus response timing (milliseconds), HTTP status, screenshot file size, optional mobile variant, optional HTML snapshot, and a public URL to each artifact.

> 💡 **Why it matters:** visual snapshots are the fastest way to audit a page. Building your own browser farm costs thousands monthly. This Actor keeps pay-per-use pricing with production-quality Chromium rendering.

### 📊 Data fields

Each record includes: `finalUrl`, `format`, `fullPage`, `httpStatus`, `metaTags`, `pageLoadTimeMs`, `results`, `screenshotAt`, `screenshotKey`, `screenshotUrl`, `sizeBytes`, `title`, `url`, `viewport`. These field names come straight from the actor's dataset schema, so what you see here is what lands in your dataset.

> ⚠️ **Good to Know:** single-page apps with heavy client-side rendering may need a longer `waitMs` or a specific `waitForSelector` to capture after content loads. Fonts and video are blocked by default to speed up capture; disable that in the source if you need them.

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the URL Screenshot Tool page on the Apify Store.
3. 🎯 **Set input.** Paste URLs, pick a format, set viewport and wait conditions.
4. 🚀 **Run it.** Click **Start** and let the Actor capture each page.
5. 📥 **Download.** Grab your images directly from the dataset or the key-value store.

> ⏱️ Total time from signup to downloaded screenshots: **3-5 minutes.** No coding required.

### 🔗 Recommended Actors

- [**🔗 Broken Link Checker**](https://apify.com/parseforge/broken-link-checker) - Crawl any site and surface every 4xx or 5xx link
- [**🧩 HTML to JSON Smart Parser**](https://apify.com/parseforge/html-to-json-smart-parser) - Turn raw HTML into structured JSON records
- [**🎨 Image Converter API**](https://apify.com/parseforge/image-converter-api) - Resize, transcode, and optimize the screenshots you capture here
- [**🧷 Watermark Image API**](https://apify.com/parseforge/watermark-image-api) - Stamp logos or notices onto captured images
- [**📄 Markdown to PDF**](https://apify.com/parseforge/markdown-to-pdf-mcp) - Bundle your captures and notes into printable reports

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more site-audit tools.

> **⚠️ Disclaimer:** this Actor is an independent tool. It captures only publicly accessible pages from URLs you provide. Respect the copyright and terms of service of every site you screenshot, especially before redistributing captures.

### 🆘 Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our [contact form](https://tally.so/r/BzdKgA) or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our [Discord](https://parseforge.co/discord). It's the best place to get support and suggest new actors.

# Actor input Schema

## `startUrls` (type: `array`):

One or more URLs to render. Each URL produces one screenshot record in the dataset.

## `maxItems` (type: `integer`):

How many screenshots to capture per run.

## `viewport` (type: `object`):

Browser viewport size in pixels.

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

Capture the full scrollable page (true) or just the viewport (false).

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

Output file format.

## `captureMobile` (type: `boolean`):

Also produce a mobile (iPhone-class) screenshot for each URL.

## `captureHtml` (type: `boolean`):

Save the rendered HTML next to the screenshot.

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

Optional CSS selector to wait for before capture.

## `waitMs` (type: `integer`):

Additional milliseconds to wait after the page reports loaded.

## `navigationTimeoutSecs` (type: `integer`):

How long to wait for each URL to load before giving up.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com/"
    }
  ],
  "maxItems": 10,
  "viewport": {
    "width": 1920,
    "height": 1080
  },
  "fullPage": true,
  "format": "png",
  "captureHtml": true,
  "waitMs": 2000,
  "navigationTimeoutSecs": 45
}
```

# Actor output Schema

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

Complete dataset

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com/"
        }
    ],
    "maxItems": 10,
    "viewport": {
        "width": 1920,
        "height": 1080
    },
    "fullPage": true,
    "format": "png",
    "captureMobile": false,
    "captureHtml": true,
    "waitMs": 2000,
    "navigationTimeoutSecs": 45
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/screenshot-url").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 = {
    "startUrls": [{ "url": "https://apify.com/" }],
    "maxItems": 10,
    "viewport": {
        "width": 1920,
        "height": 1080,
    },
    "fullPage": True,
    "format": "png",
    "captureMobile": False,
    "captureHtml": True,
    "waitMs": 2000,
    "navigationTimeoutSecs": 45,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/screenshot-url").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 '{
  "startUrls": [
    {
      "url": "https://apify.com/"
    }
  ],
  "maxItems": 10,
  "viewport": {
    "width": 1920,
    "height": 1080
  },
  "fullPage": true,
  "format": "png",
  "captureMobile": false,
  "captureHtml": true,
  "waitMs": 2000,
  "navigationTimeoutSecs": 45
}' |
apify call parseforge/screenshot-url --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/screenshot-url"
        }
    }
}

```

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/faSXjsNjCclXL5ORo/builds/46cthcbugQpG1rluS/openapi.json
