browser

Screenshot Capture

Screenshot capture renders a web page in a headless browser and saves the visual output as an image, useful for visual monitoring, archiving, or content that is difficult to parse as HTML.

Some content is more efficiently consumed as a visual snapshot than as extracted text — dashboards, charts, maps, and dynamically rendered canvases fall into this category. Headless browsers like Playwright and Puppeteer can render a page to full resolution and capture the viewport or the entire scrollable document as a PNG or JPEG.

Screenshot capture is also used for visual regression testing (comparing before and after a deployment), compliance archiving (preserving a web page's appearance at a point in time), and generating thumbnail previews. Full-page screenshots require the browser to scroll and stitch sections together, which some browsers handle natively.

For data extraction, screenshots are combined with optical character recognition (OCR) or multimodal vision models to extract text from images. This is a fallback for pages that obfuscate text using canvas rendering or custom font encoding to prevent copying.

Examples

// Playwright: capture full-page screenshot
const { chromium } = require("playwright");
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto("https://example.com");
await page.screenshot({ path: "page.png", fullPage: true });
await browser.close();

Related Terms

Extract Screenshot Capture data from any website

AlterLab returns clean, structured data from any public URL — no scraper infrastructure needed. Start free, no credit card required.

View API docs

Your first scrape.
Sixty seconds.

$1 free balance. No credit card. No SDK.Just a POST request.

terminal
curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'

No credit card required · Up to 5,000 free scrapes · Balance never expires

    Screenshot Capture — Web Scraping Glossary | AlterLab