Website Screenshot, PDF, and Visual Change Monitor avatar

Website Screenshot, PDF, and Visual Change Monitor

Pricing

from $2.50 / 1,000 screenshot outputs

Go to Apify Store
Website Screenshot, PDF, and Visual Change Monitor

Website Screenshot, PDF, and Visual Change Monitor

Pricing

from $2.50 / 1,000 screenshot outputs

Rating

0.0

(0)

Developer

nichedata-lab

nichedata-lab

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Capture a public page as PNG, JPEG, WebP, or PDF. One run can use mobile, tablet, desktop, and custom viewports, hide cookie and chat chrome, and save only the element a CSS selector matches. Monitor mode compares the new shot with the previous PNG in a named key-value store and saves a row when the pixel change is above your threshold.

The same Actor is an MCP server in Standby mode. take_screenshot, compare_pages, and capture_element return a PNG image block and Markdown text.

The store handle for this Actor is nichedata-lab/screenshot. This repository does not publish it.

The Actor opens public http and https pages only. It does not log in, solve CAPTCHAs, or bypass bot checks. It reads robots.txt for each origin and skips a page the file disallows. A robots.txt redirect to another scheme, host, or port is not followed and is not treated as that origin's policy.

How to run it

The prefilled input captures https://example.com as a desktop PNG.

InputWhat it does
Page URLsPublic http or https URLs. One capture per URL and device.
Modecapture, compare, or monitor.
URL to compare againstSecond page when mode is compare.
Devicesmobile (390x844), tablet (820x1180), desktop (1440x900), or custom.
Output formatsOne or more of png, jpeg, webp, and pdf.
Full pageThe scrolled page, or the viewport only.
CSS selectorThe first visible match, instead of the page.
Wait untilload, domcontentloaded, or networkidle.
Delay after loadMilliseconds after the wait, up to 10000.
Scroll to the bottomLoads lazy content, then returns to the top.
Hide bannersBuilt-in cookie, ad, and chat rules, plus your selectors.
Include page text as MarkdownTitle and visible text on the dataset row.
Accept-Language, locale, timezoneacceptLanguage is sent on every request. Locale sets the browser locale and does not replace that header. Timezone is an IANA name.
Change thresholdMonitor saves a row only when the change is above this percent.
Baseline store and keyNamed store that keeps the previous PNG across runs.
Maximum capturesDefault 25. Hard cap 100.

Example: desktop and mobile PNG of one page.

{
"urls": ["https://example.com"],
"mode": "capture",
"devices": ["desktop", "mobile"],
"formats": ["png"],
"fullPage": true,
"cleanPage": true
}

Example: weekly check that saves a row only when the page moved more than 5 percent.

{
"urls": ["https://example.com/pricing"],
"mode": "monitor",
"devices": ["desktop"],
"formats": ["png"],
"changeThresholdPercent": 5,
"baselineStore": "screenshot-baselines",
"baselineKey": "pricing"
}

A monitor row includes summary, which is a single sentence a webhook can forward. The first run stores a baseline and saves that row. Later runs that stay at or under the threshold update the baseline and do not save a dataset row.

Compare mode always saves one row. changed is true when the pixel change is above the threshold. The percent counts every pixel. The diff PNG shows the top 4000 pixels.

What a row contains

url and finalUrl keep the scheme, host, port, and path. Usernames, passwords, query strings, and fragments are removed before anything is stored. files lists each saved object with its key, byte size, and key-value URL. diffFile is set when a diff image was saved. timingsMs reports robots, navigation, capture, and total. Failed rows keep url, status, and error.

Safety

Every request is checked again after DNS and after each redirect. A private, loopback, link-local, multicast, or other non-public address is refused, including the metadata address 169.254.169.254 and a decimal form such as 2130706433. A private IP literal in urls is saved as a failed row and the run continues with the other URLs. The connection uses the address that passed that check. The browser does not open its own socket to the site. The Actor fetches the response and hands the bytes to Chromium. Chromium is launched with --proxy-server=http://127.0.0.1:9, and each browser context sets service_workers to block. A request that is not fulfilled by that fetch cannot leave the browser.

robots.txt is fetched per origin. The origin is the scheme, host, and port. User-agent: * applies to this Actor when no longer token matches ScreenshotActor. Paths are decoded, and . and .. segments are resolved, before the rule is applied. A status from 400 to 499, including 403 and 429, means the file is unavailable under RFC 9309. Every path is allowed. A status from 500 to 599, or a fetch that fails, means the file is unreachable. Every path is blocked. A blocked row's error includes the fetch status and the matched rule.

MCP

Standby serves the tools at /mcp.

ToolWhat it returns
take_screenshotPNG image block and Markdown for one public URL.
capture_elementPNG of the element selector matches.
compare_pagesPNG of the diff, or of the current page when the change is at or under the threshold. Pass compare_url, or omit it to use this user's baseline.

Apify does not pass Authorization into the container. The server reads X-Apify-User-ID, which the platform sets after it checks the caller. The baseline record name is a hash of that id and the state key. A request that sends only Authorization is not a caller, and a baseline tool refuses it. Dataset runs have no HTTP user id and use the baseline key from the input.

Standby output files and Standby baselines are deleted the next time Standby handles a request after they are 7 days old. Records written by a dataset run are not deleted on that schedule.

Pricing

Proposed prices are in PRICING.md. They are not stored in actor.json and they are not approved Store prices. A failed capture is not charged. In a dataset run, a screenshot event is charged only after that row is pushed. The run stops when the next charge does not fit in the budget.

Local checks

From actors/screenshot:

python -m pytest
PYTHONPATH=. python scripts/live_sample.py

The live script writes PNG, JPEG, WebP, and PDF files for public pages. It needs Chrome or the Playwright Chromium build.