Skip to main content
architecturecost optimizationscraping4 min readBy Catmouse Engineering

Alternatives to Headless Chrome for Scraping: Architectural Guide

Last reviewed
Short answer

Headless browser fleets cost more memory and CPU per session than HTTP clients and expose automation signals that sites can read. Protocol-level clients avoid both costs but must handle the tokens a bot-management layer expects. This guide explains the trade-off qualitatively and shows how to measure it on your own workload, because no fleet-wide numbers are published here.

Who this is for

Engineers who own or are explicitly authorized to test a bot-protected system and want the mechanisms compared before choosing an approach.

On this page
  1. What drives the cost of a headless browser fleet
  2. How sites detect browser automation
  3. How protocol-level clients differ
  4. How to measure the difference on your own workload
  5. Next steps
  6. Scope and limitations
  7. Evidence and sources
  8. Frequently Asked Questions
Summary
  • Short answer: a browser session runs a full rendering engine, while an HTTP client sends requests only. The first is heavier and more observable. The second needs another way to satisfy client-side challenges.
  • Who it is for: teams running Playwright, Puppeteer or Selenium fleets on systems they are authorized to access.
  • Limits: no cost or success-rate figures are given. Measure your own.

What drives the cost of a headless browser fleet?

A headless browser loads a rendering engine, a JavaScript runtime, and the page's own assets for every session. Memory, CPU, and bandwidth therefore scale with the number of concurrent sessions and with page weight, while an HTTP client scales with request count. How large the gap is depends on your pages and your hardware, so measure it with your own workload.

  • Memory per session: measure resident set size of the browser process tree under your real pages.
  • CPU per page: measure CPU time per successful navigation.
  • Bandwidth: measure bytes transferred with and without asset blocking.
  • Operational load: count restarts, crashes and zombie processes per day.

How sites detect browser automation?

Automation frameworks leave observable traces. The W3C WebDriver specification defines navigator.webdriver, which is true when a browser is under remote control. Frameworks that drive Chrome through the Chrome DevTools Protocol may also change browser state in ways page scripts could observe; this is a general observation rather than something the protocol documentation states. Sites combine such signals with network characteristics, so patching a single flag rarely settles the question.

Which signals a given site uses is proprietary. Treat any claim about a particular detection rate with caution unless it comes with a method you can repeat.

A headless browser session loads a full rendering engine, so page scripts can read automation signals such as navigator.webdriver and the site may flag the session. A protocol-level client sends requests only, obtains the tokens it needs from a solve endpoint, and attaches them to the request.
Figure: a headless browser path next to a protocol-level client path. Illustrative, not a measurement.

How protocol-level clients differ?

A protocol-level client sends HTTP requests directly. It does not run page scripts, so when a site requires tokens from a client-side challenge, the client must obtain them another way. The Catmouse solve endpoint covers one vendor, Kasada: your client fetches the site's ips.js, posts it to the endpoint, and receives a /tl payload and x-kpsdk-* headers to send itself (see the Catmouse OpenAPI document). The engine value selects a Kasada device profile, and coverage for other products is not claimed.

Illustrative flow

The solve endpoint never contacts your target. Your own client, with a session you are authorized to use, fetches the your target /fp response and keeps its x-kpsdk-ct header and cookies, reads the ips.js URL from it, downloads that script as UTF-8 text, and posts the text to /Solver/solve as ipsBody together with ipsUrl, ctToken, kpsdkV, tz, tzOffset and an engine profile. It then sends the returned base64 payload as the raw body of its own /tl request to your target, with the returned headers. A browser does all of this implicitly; a protocol-level client has to do it explicitly.

The /fp and /tl URL shapes and the /tl header order for your target are target-specific and were not verified for this article; Catmouse's reference script documents them only for the targets it covers. The generic version of this flow is explained in the bot-management reference, and the code below is the same flow in Python.

import base64, os, requests

# Steps 1-3 run in YOUR client against YOUR target (authorized use only); the solver API never contacts the target.
# ips_body: UTF-8 text of the ips.js you fetched; ips_url: where you fetched it; ct_token: x-kpsdk-ct of the /fp response;
# kpsdk_v: the x-kpsdk-v the served script declares.
r = requests.post("https://kasadaapi.catmouse.ai/Solver/solve",
    headers={"x-api-key": os.environ["CATMOUSE_KEY"]},
    json={
        "ipsBody": ips_body,
        "ipsUrl": ips_url,
        "ctToken": ct_token,
        "kpsdkV": kpsdk_v,
        "tz": "America/New_York",
        "tzOffset": 240,
        "acceptLanguage": "en-US",
        "engine": "chrome",
    },
    timeout=60)

Inspect the response first, then send the payload to the target.

out = r.json()
if not out.get("success"):
    raise RuntimeError(f"{r.status_code} {out.get('error')}")   # 4xx/5xx are not charged
# Step 5 (your own client): POST base64.b64decode(out["payload"]) as the raw body to the target's /tl URL
# with the headers in out["headers"].

This sketch assumes a Kasada-protected target you are authorized to test. A protocol-level client still has to fetch the script, keep the cookies and send the /tl request itself, which is the work a browser does implicitly. Count that work, and the solver fee, when you compare cost per successful result. The tz and tzOffset values are required in production and should match your proxy exit.

How does why headless browsers fail at scale validate a trusted TLS session?

For why headless browsers fail at scale, a client is a verified session when it sends fresh tokens versus static headers over a trusted TLS session.

How to measure the difference on your own workload?

  1. Pick one authorized target and one representative set of URLs.
  2. Run the browser path and the HTTP path against the same URLs at the same time of day.
  3. Record success status, latency percentiles, CPU time, peak memory and bytes transferred for each path.
  4. Repeat on different days, because site behaviour and challenge versions change.
  5. Compare cost per successful result, including solver fees and proxy traffic.

Publish or share only numbers that came from a method you can repeat.

Next steps

Read the API reference and test one request in the playground against a host you are authorized to test.

Scope, limitations, and recommendations

Browser-versus-HTTP trade-offs differ by site and change over time. Last reviewed: 2026-10-09.

What separates why headless browsers fail at scale telemetry from plain HTTP replay?

In contrast, on why headless browsers fail at scale, you must refresh session state whenever a route returns a challenge instead of reusing old headers.

Challenge bootstrap (why headless browsers fail at scale)
The initial HTTP challenge response on why headless browsers fail at scale that delivers the vendor script or session seed to the client.
Session state verification (why headless browsers fail at scale)
The header or cookie proof returned after telemetry evaluation on why headless browsers fail at scale that authorizes subsequent API calls.
Protocol verification stages for Alternatives to Headless Chrome for Scraping: Architectural Guide
StagePlain HTTP replay on why headless browsers fail at scaleVerified session state on why headless browsers fail at scale
Initial requestMissing session proof for why headless browsers fail at scaleBootstraps fresh challenge state for why headless browsers fail at scale
Protected routeChallenged with HTTP 403 or 429 on why headless browsers fail at scaleAttaches current session state for why headless browsers fail at scale

Evidence and sources

  • IANA HTTP Status Code Registry and MDN HTTP response status codes: reference definitions for HTTP status codes observed during why headless browsers fail at scale testing.
  • Catmouse OpenAPI document: the request fields of POST /Solver/solve used in the illustrative flow (ipsBody, ipsUrl, ctToken, kpsdkV, tz, tzOffset, engine) and the response fields payload and headers. Readers comparing browser and protocol clients can find the same fields in the API reference.
  • W3C WebDriver: supports the statement that navigator.webdriver reflects remote control. It states: "The webdriver-active flag is set to true when the user agent is under remote control."
  • MDN, Navigator.webdriver: "The webdriver read-only property of the navigator interface indicates whether the user agent is controlled by automation."
  • Chrome DevTools Protocol repository: shows the protocol is a published, documented interface. It is cited for existence only, not for any claim about detection.

Methodology and limits

Reviewed on 2026-10-09. The navigator.webdriver flag rests on the standards above, and the solve request and response fields rest on the Catmouse OpenAPI document. The cost comparison between browser fleets and HTTP clients is engineering reasoning, not a measurement, and the article gives a method to measure it yourself. That automation frameworks can change observable browser state is an observation; the cited specifications document only the webdriver flag.

Frequently Asked Questions

Are headless browsers always worse than HTTP clients?

No. They render pages and run scripts, which some tasks need. They cost more per session and expose more automation signals.

What is navigator.webdriver?

A property defined by the W3C WebDriver specification that is true when a browser is under remote control.

Which vendor does the Catmouse solve API cover?

The solve API covers Kasada only. Its engine value selects a Kasada device profile (chrome, snkrs, wkw, fl, whatnot-ios or android), according to the published OpenAPI document.

Can I use this on any website?

No. Use it only on the bot-protected systems you own or are authorized to test, and only with your own measurements.