Visual website monitoring with daily screenshots
Take a daily screenshot of your own pages or competitors' pricing pages, keep a visual history and spot changes. A 30-line script and a cron job.
Uptime checks tell you a page answers. They do not tell you that the hero image is broken, the pricing table lost a column or a competitor just changed their prices. A daily screenshot does, and it gives you a visual history you can scroll back through.
What people monitor
- Your own landing and checkout pages after each deploy.
- Competitors' pricing and feature pages.
- Client sites, for agencies that maintain them.
- Search result pages and marketplace listings.
A daily capture script (Node.js)
import { writeFile, mkdir } from "node:fs/promises";
const PAGES = {
home: "https://example.com",
pricing: "https://example.com/pricing",
};
const day = new Date().toISOString().slice(0, 10);
for (const [name, url] of Object.entries(PAGES)) {
const res = await fetch("https://getscreenapi.com/api/v1/screenshot", {
method: "POST",
headers: { "x-api-key": process.env.SCREENAPI_KEY, "Content-Type": "application/json" },
body: JSON.stringify({ url, full_page: true, format: "webp", block_cookie_banners: true }),
});
if (!res.ok) { console.error(name, res.status, await res.text()); continue; }
await mkdir(`shots/${name}`, { recursive: true });
await writeFile(`shots/${name}/${day}.webp`, Buffer.from(await res.arrayBuffer()));
}Run it once a day with cron (0 7 * * * node monitor.mjs) or a scheduled GitHub Action. Ten pages a day is about 300 screenshots a month: the free plan covers three pages, Starter covers eighty.
Spot the changes
Compare today's image with yesterday's using a pixel diff library such as pixelmatch, and alert when more than a few percent of the pixels changed. Capture a single block with selector (for example selector=".pricing-table") to ignore carousels and ads.
Tips for stable captures
- Use the same
deviceevery day so sizes match. - Add
delay=2000(milliseconds) for pages that animate on load. - Hide moving parts with
hide_elements(CSS selectors, comma-separated: sliders, chat widgets, dates).
Start monitoring with 100 free screenshots a month.
Get a free key