browser

Headless Browser

A web browser that runs without a graphical user interface, executing JavaScript and rendering pages exactly as a real browser would.

A headless browser is a complete web browser engine — HTML parser, CSS renderer, JavaScript engine, network stack — that operates without displaying anything on screen. It processes pages exactly as a GUI browser does, including executing JavaScript, loading external resources, setting cookies, and updating the DOM, but outputs the result programmatically rather than rendering pixels.

Headless browsers are essential for scraping modern single-page applications (SPAs) built with React, Vue, or Angular. These frameworks ship an empty HTML shell and populate all content via JavaScript after the page loads. A simple HTTP request returns nothing useful; only a browser that executes the JavaScript and waits for the DOM to populate can retrieve the real content.

Chromium and Firefox both support headless operation. The most popular automation frameworks are Playwright (multi-browser, from Microsoft) and Puppeteer (Chromium-focused, from Google). AlterLab uses headless Chromium via Playwright in Tier 4 and above for full browser rendering, with browser compatibility patches applied to normalise the browser environment.

What is Headless Browser?

A web browser that runs without a graphical user interface, executing JavaScript and rendering pages exactly as a real browser would.

How does AlterLab handle Headless Browser?

Chromium and Firefox both support headless operation. The most popular automation frameworks are Playwright (multi-browser, from Microsoft) and Puppeteer (Chromium-focused, from Google). AlterLab uses headless Chromium via Playwright in Tier 4 and above for full browser rendering, with browser compatibility patches applied to normalise the browser environment.

Examples

# Enable full browser rendering
{
  "url": "https://spa-example.com",
  "render_js": "auto"
}

Related Terms

Extract Headless Browser 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.

Up to 5,000 free requests — about 5,000 direct fetch, 500 managed sessions or 250 full browser rendering requests. No credit card.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 requests (about 5,000 direct fetch, 500 managed sessions or 250 full browser rendering requests) · Balance never expires