Website Screenshot API: Full Page PNG and JPEG avatar

Website Screenshot API: Full Page PNG and JPEG

Pricing

from $0.49 / 1,000 screenshots

Go to Apify Store
Website Screenshot API: Full Page PNG and JPEG

Website Screenshot API: Full Page PNG and JPEG

Website Screenshot Generator takes full-page or viewport screenshots of any website in PNG or JPEG, built with Playwright. Set viewport size, wait time and element hiding. Visual change monitor: compare each page with the previous run (change %, changed box, diff image).

Pricing

from $0.49 / 1,000 screenshots

Rating

0.0

(0)

Developer

Murat Uzun

Murat Uzun

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Website Screenshot Generator

Price: from $0.49 per 1,000 screenshots ($0.71 per 1,000 on the Free plan). Only successful screenshots are charged: failed or skipped URLs cost nothing.

New in 0.3: visual change monitor. Add a monitorName and every run compares each page with its screenshot from the previous run: changed, changePercent, changedRegion (the box around everything that changed) and a red-highlighted diff image, at the same price per screenshot.

What is Website Screenshot Generator?

Website Screenshot Generator is a powerful API for taking full-page or viewport-sized screenshots of websites in PNG or JPEG format. Built with Playwright and Node.js, it runs reliably on the Apify platform and handles dynamic content rendering, JavaScript execution, and CSS transformations. Perfect for web scraping projects, SEO audits, visual regression testing, and archiving web content.

What data does Website Screenshot Generator extract?

For each screenshot captured, the actor returns:

FieldTypeDescription
urlStringThe original URL that was requested
finalUrlStringThe final URL after any redirects
screenshotUrlStringPublic URL of the screenshot in the key-value store
widthIntegerWidth of the screenshot in pixels
heightIntegerHeight of the screenshot in pixels
bytesIntegerSize of the screenshot file in bytes
formatStringFormat of the screenshot (png or jpeg)
scrapedAtStringISO 8601 timestamp when the screenshot was taken

With a monitorName (visual change monitor) each row also has:

FieldTypeDescription
monitorNameStringThe monitor the page was compared in
isBaselineBooleantrue on the first capture of a page in the monitor: stored, nothing to compare yet
changedBooleantrue when the share of changed pixels is above changeThresholdPercent (null on a baseline)
changePercentNumberShare of pixels that differ from the previous run's screenshot, e.g. 3.42
changedPixelsIntegerNumber of differing pixels
changedRegionObject{ "x", "y", "width", "height" } of the box around all changed pixels, so you know where on the page it changed
sizeChangedBooleanThe page got taller or shorter (pixels outside the old picture count as changed)
diffImageUrlStringPNG with the changed pixels in red over a faded copy of the new screenshot (only when something changed)
previousScreenshotUrlStringThe screenshot it was compared with
previousCapturedAtStringWhen that screenshot was taken

How to use Website Screenshot Generator

  1. Prepare your input — Choose URLs to screenshot, select format (PNG/JPEG), viewport size, and any elements to hide
  2. Run the actor — Start a run with your configuration
  3. Download screenshots — Access images via the provided URLs in the default dataset
  4. Handle errors — Failed URLs are not charged and never appear in the dataset; they are listed with the reason in the run's ERRORS key-value record

Example input

{
"urls": [
"https://example.com",
"https://github.com",
"https://news.ycombinator.com"
],
"fullPage": true,
"format": "png",
"viewportWidth": 1280,
"viewportHeight": 800,
"waitMs": 1000,
"hideSelectors": [".modal", "#cookiebanner"]
}

Example output

{
"url": "https://example.com",
"finalUrl": "https://example.com/",
"screenshotUrl": "https://api.apify.com/v2/key-value-stores/xyz/records/example-com-abc123ef.png",
"width": 1280,
"height": 5432,
"bytes": 285643,
"format": "png",
"scrapedAt": "2026-09-28T12:34:56.789Z"
}

Input parameters

URLs

urls (array, required) — Array of website URLs to screenshot

  • Type: Array of strings
  • Default: ["https://example.com"]
  • Example: ["https://example.com", "https://github.com"]
  • Aliases: Also accepts url (single string), startUrls (array of objects with url property)

Screenshot options

fullPage (boolean) — Capture entire page height instead of just the viewport

  • Type: Boolean
  • Default: false
  • Note: Full page screenshots are clipped at 20,000 px to avoid extremely large files

format (string) — Output image format

  • Type: Enum: png, jpeg
  • Default: png

quality (integer) — JPEG compression quality (only for JPEG format)

  • Type: Integer between 1-100
  • Default: 80

Viewport options

viewportWidth (integer) — Browser viewport width in pixels

  • Type: Integer between 320-3840
  • Default: 1280

viewportHeight (integer) — Browser viewport height in pixels

  • Type: Integer between 240-2160
  • Default: 800

Timing options

waitUntil (string) — Page load event to wait for before taking screenshot

  • Type: Enum: load, domcontentloaded, networkidle
  • Default: load
  • Values:
    • load — Wait for page load event (fastest)
    • domcontentloaded — Wait for DOM to be parsed (useful for static content)
    • networkidle — Wait for network activity to settle (most reliable for dynamic content)

waitMs (integer) — Additional time to wait after page load event

  • Type: Integer between 0-30000 (milliseconds)
  • Default: 1000
  • Use case: Allow time for JavaScript animations or deferred content loading

Advanced options

hideSelectors (array) — CSS selectors to hide before taking screenshot

  • Type: Array of strings
  • Default: []
  • Example: [".modal", "#cookiebanner", ".cookie-consent"]
  • Use case: Hide cookie banners, modals, or other overlays to get a clean screenshot

Visual change monitor

monitorName (string) — turn on change detection

  • Default: empty (plain screenshots)
  • Example: "competitor-pricing"
  • Baselines are kept per monitor in your named key-value store website-screenshot-monitor-<name>, one per URL, viewport size and full-page setting. The first run stores them; every later run compares with the run before it and then moves the baseline forward.
  • Schedule the run (or a saved Task) hourly or daily and filter dataset rows where changed is true, or use the Visual changes (monitor) dataset view.

changeThresholdPercent (string) — share of pixels that must differ for changed: true

  • Default: "0.5"
  • Example: "2" for pages with a rotating banner. Better still, hide such elements with hideSelectors so they never count as changes.

JPEG runs take one extra lossless PNG capture per page for the comparison (the delivered image stays JPEG). The OUTPUT record summarises the run: baselines, compared, changed.

Pricing

You pay per successful screenshot (one dataset row = one image). Failed URLs and URLs skipped at the time limit are not charged.

Apify planPrice per 1,000 screenshotsPrice per screenshot
Free$0.71$0.00071
Bronze$0.66$0.00066
Silver$0.59$0.00059
Gold, Platinum, Diamond$0.49$0.00049

Each run also costs one apify-actor-start event ($0.00005) per GB of run memory. The default memory is 2 GB, so that is two start events ($0.0001) per run.

How much will my screenshots cost?

  • 100 screenshots on the Free plan: 100 × $0.00071 + $0.0001 ≈ $0.07
  • 10,000 screenshots a month on Gold: 10,000 × $0.00049 ≈ $4.90 plus $0.0001 per run
  • A run where 3 of 10 URLs fail: you pay for 7 screenshots
  • A daily visual change monitor of 50 pages on the Free plan: 50 × 30 × $0.00071 ≈ $1.07 a month. Every captured page is one screenshot, changed or not; the comparison and the diff image cost nothing extra.

The Actor captures up to 4 viewport pages (512 MB each) or 2 full-page captures (1 GB each) at a time in the default 2 GB. For big full-page batches, 4 GB captures 4 pages at once (two more start events per run).

API examples

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('webdatatools/website-screenshot').call({
urls: ['https://example.com', 'https://www.python.org'],
fullPage: false,
format: 'png',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.url, item.screenshotUrl);

Python (apify-client)

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("webdatatools/website-screenshot").call(
run_input={"urls": ["https://example.com"], "format": "jpeg", "quality": 80}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["url"], item["screenshotUrl"])

Visual change monitor (JavaScript)

const run = await client.actor('webdatatools/website-screenshot').call({
urls: ['https://example.com/pricing', 'https://example.com'],
fullPage: true,
monitorName: 'competitor-pricing',
changeThresholdPercent: '0.5',
hideSelectors: ['.carousel'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items.filter((row) => row.changed)) {
console.log(item.url, item.changePercent, item.changedRegion, item.diffImageUrl);
}

CLI

$apify call webdatatools/website-screenshot --input '{"urls": ["https://example.com"], "fullPage": true}' --output-dataset

Errors and run outcome

Short network drops while a page loads (for example ERR_NETWORK_CHANGED right after the container starts) are retried twice in a fresh tab, after 1.5 s and 4 s. Per-URL failures that remain (timeouts, DNS errors, blocked pages) are written to the ERRORS key-value record as { "url", "error" } and are not charged. The run itself ends like this:

CodeWhereMeaningCharged?
INVALID_INPUTERRORS, OUTPUTMalformed URL, empty URL list, a changeThresholdPercent that is not a number from 0 to 100, or an option outside the schema. No page was loaded and the run ends as SUCCEEDED.No
TIME_LIMITERRORS, OUTPUTThe run timeout was close, so the remaining URLs were not started. OUTPUT.notRunUrls lists them so you can re-run them.Only the captured screenshots
NO_SCREENSHOTOUTPUTEvery URL failed (site down, blocked or too slow). The run ends as FAILED and the reasons are in ERRORS.No

The Actor stops starting new captures 150 seconds before the run timeout (or halfway through the remaining time if the timeout is shorter), so a run never times out with screenshots lost.

Website Screenshot Generator vs. alternatives

FeatureWebsite ScreenshotHeadless BrowserAPI Screenshot Service
Speed3-8s per screenshot5-15s setup + per screenshot2-5s (no control)
JavaScript Rendering✓ Full support✓ Full support✓ Usually supported
Viewport Control✓ Customizable✓ Customizable✗ Limited
JPEG Quality✓ 1-100✓ Configurable✗ Fixed
Hide Elements✓ CSS-based✓ JavaScript-based✗ Not available
Change vs. previous run✓ monitorName: change %, changed box, diff image✗ Build it yourself✗ Usually not
Batch Processing✓ 10+ URLs/run✗ Single use✗ Per-screenshot cost
Cost per Screenshot$0.00049–$0.00071, successful onlyYour own compute + setup$0.01-0.05
Login Pages✗ No auth support✗ No auth support✗ No auth support

Using Website Screenshot Generator with AI agents and MCP

The Website Screenshot Generator is discoverable and callable via the Apify MCP server for Claude and other AI agents. When called by an agent:

  • The actor accepts flexible input: url, urls, startUrls, targetUrls, or websites all map to the canonical urls field
  • Default input {} succeeds with 1 screenshot of https://example.com
  • Screenshots are stored as public URLs in the key-value store, making them accessible to downstream agents or workflows

MCP example (for agents)

// An agent can call this actor with minimal input
const actor = await client.actor('webdatatools~website-screenshot');
const run = await actor.call({
url: 'https://example.com',
format: 'jpeg',
quality: 90
});
const { defaultDatasetId } = run;
const items = await apifyClient.dataset(defaultDatasetId).listItems();
console.log(items[0].screenshotUrl); // Use the screenshot

FAQ

Q: Can I screenshot pages behind login walls? A: No. The actor takes screenshots as an anonymous user. Sites that require login will return a login page or challenge page.

Q: Does this tool bypass paywalls or bot protection? A: No. Sites with bot walls (Cloudflare, DataDome, AWS WAF) may render a challenge page or block the request. There is no proxy or residential IP option; screenshots are taken directly from the Apify datacenter.

Q: Is this legal? A: Screenshots of publicly accessible web pages for personal use, archival, or testing are generally legal. Always respect the site's terms of service and robots.txt.

Technical

Q: Why is my screenshot blank or showing an error? A: Common causes:

  • The site detects bot activity and blocks the request
  • The site requires login
  • The site uses aggressive anti-bot measures
  • The page takes longer than 60 seconds to load

Try increasing waitMs or switching waitUntil to networkidle.

Q: How do I hide multiple elements? A: Pass multiple selectors in hideSelectors:

{
"urls": ["https://example.com"],
"hideSelectors": [".cookiebanner", "#modal", "[role='complementary']"]
}

Q: What is the maximum screenshot height? A: Full-page screenshots are clipped at 20,000 pixels to prevent extremely large files. Taller pages are cut off at this limit.

Q: Can I use this with n8n, Make, or Zapier? A: Yes, via the Apify integration in each platform. Set the input parameters in the actor configuration and map the dataset output.

Integrations

Q: How do I use this with a workflow tool? A: Website Screenshot Generator works with any tool that supports Apify actors:

  • n8n: Add an "Apify" node, select "website-screenshot", and configure the input
  • Make: Add the Apify module and set the actor input
  • Zapier: Use a Zapier task to call the Apify API with actor ID webdatatools~website-screenshot

All tools receive the dataset rows in the output, including the screenshotUrl.

Part of the webdatatools web-intelligence suite — every Actor is pay-per-event, reads public data without a login, and returns one clean row per entity:

Browse the whole suite at webdatatools, or call ten of these Actors straight from Claude, Cursor or Cline with the webdatatools MCP server.

Website & domain intelligence

Content for AI, LLMs and RAG

Search, video and social

Leads, jobs and company data

Developer, app and research data

Support

For issues, feature requests, or feedback:

If this Actor saved you time, please leave a review on the Apify Store. It helps other users find it.