serp.fast
← Glossary

Headless Browser

A headless browser is a real web browser — usually Chromium, Firefox, or WebKit — running without a graphical user interface. Headless browsers execute JavaScript, load CSS, fire network requests, and produce a fully rendered DOM the same way a normal browser would, but they are controlled programmatically through APIs like Puppeteer, Playwright, or Selenium. For web scraping, headless browsers are essential when the target site relies on JavaScript to render content that a simple HTTP fetch cannot see. The tradeoff is cost. A headless browser session uses 50–500x more memory and CPU than a plain HTTP request and takes seconds to complete rather than milliseconds. Running headless browsers at scale requires either a beefy machine pool or a managed browser infrastructure provider — Browserbase, Steel.dev, Hyperbrowser, and Browserless all sell this as a service. AI agents that need to navigate the live web typically run on top of one of these platforms because spinning up isolated, fingerprint-clean browser sessions is hard to do well in-house. For AI builders, the rule of thumb is: try plain HTTP first, fall back to headless only when the page is empty or incomplete without JavaScript. Most scraping APIs let you toggle JS rendering on a per-request basis, charging extra when it is on.