By Rajesh Kannan, Co-Founder & CTO, Gramosoft · Last updated: · Tested with Playwright 1.63, playwright-stealth 2.0.3 and Camoufox 0.5.9 (Firefox 158) on December 1, 2026

Camoufox vs Playwright isn't really a contest between two scrapers. Playwright is the automation framework; Camoufox is a modified Firefox that Playwright drives. The real choice is which browser sits under your Playwright code, and what that browser gives away to an anti-bot script. This guide starts with the route that skips the browser choice entirely, GcrawlAI, then compares the two on the same test page, with the numbers.

TL;DR

  • Same API, different browser: Camoufox returns a normal Playwright browser, so your page code barely changes. What changes is the fingerprint underneath.
  • In our test, plain Playwright Chromium showed 4 to 5 bot signals, playwright-stealth hid some but created 4 new contradictions, and Camoufox showed 1 (no WebGL on a GPU-less server).
  • The cost is speed and memory: Camoufox launched in about 1.2 s against 0.3 to 0.5 s, took 0.74 to 0.82 s per local page against 0.13 to 0.21 s, and used 827 MB against 90 to 321 MB.
  • Use Playwright by default, move only blocked domains to Camoufox, and hand the ones that still fail to GcrawlAI, where rendering, residential IPs and anti-bot handling are one request and failed requests are never charged.

Should you use Camoufox or Playwright for web scraping? Use Playwright with Chromium for sites without serious bot protection: it's faster, lighter and supports more languages and browsers. Use Camoufox, through the same Playwright API, for domains that block Playwright, because it reports its fingerprint from the browser's C++ code instead of JavaScript patches. For protected sites at scale, a scraping API such as GcrawlAI avoids running either.

Option Browser How it hides automation Bot signals in our test Best for
GcrawlAI Managed real browsers Stealth escalation and residential IPs on our side Not part of the local test Protected sites at volume, no browsers to run
Playwright + Chromium Chromium, Firefox or WebKit It doesn't; it's built for testing 4 to 5 Unprotected sites, testing, any language
Playwright + playwright-stealth Chromium JavaScript patches on the page 4 (new contradictions) Light protection, quick experiments
Camoufox Modified Firefox only Values reported from C++, isolated automation 1 Fingerprint-heavy sites, Python stacks

Scrape protected pages with GcrawlAI instead

If you want the page rather than the browser, GcrawlAI runs the browser for you. Each request loads the page through a residential IP in your chosen country, escalates stealth when a bot check appears, and returns Markdown, HTML or JSON. There's no Camoufox build to pin or Playwright version to juggle, and failed requests are never charged.

GcrawlAI homepage with the logo and menu (Products, Playground, Extractors, Docs, Pricing, Blog, Use Cases, Custom Request): Transform any website into structured LLM-ready data, the open-source web scraping API for AI agents, RAG pipelines and data teams, with JavaScript rendering, anti-bot stealth and proxies included in every request and no credit system; tabs for Scrape, Map, Crawl, Batch, Screenshot, Search and Smart Answer
The GcrawlAI homepage: scrape protected pages without running Playwright or Camoufox (screenshot taken October 26, 2026).

The call below fetches a protected category page as Markdown from a US IP. It checks the HTML for block markers before trusting the result, because a 200 status isn't proof you got the real page. Point base_url at your own server to run it on the self-hosted core.

# gcrawlai_scrape.py
# pip install gcrawl-sdk
"""Scrape a protected page through GcrawlAI instead of running Playwright or Camoufox yourself:
a real browser, a residential IP in the country you choose and stealth escalation, in one request."""
import os

from gcrawl_sdk import GcrawlClient, ScrapeOptions

gc = GcrawlClient(api_key=os.getenv("GCRAWL_API_KEY", "gc-YOUR_API_KEY"))
# Self-hosted core: GcrawlClient(api_key=..., base_url="http://localhost:8000")

page = gc.scrape(
    url="https://shop.example.com/category/laptops",
    options=ScrapeOptions(markdown_enabled=True, html_enabled=True, proxy_geo="US", auto_scroll=True),
    wait=True,
)
html = (page.html or "").lower()
# A 200 isn't proof: check for the content you came for before you store it.
if "sorry, you have been blocked" in html or "verify you are human" in html:
    print("still blocked: check the rate and the target, not the browser")
else:
    print(page.markdown[:300])
Passport-stamp diagram of one GcrawlAI request: the URL loads in a real browser, through a residential IP in the chosen country, stealth escalates if a bot check appears, the content is checked, and Markdown, HTML or JSON comes back. One request; failed requests are not charged
What one GcrawlAI scrape request does, with no browser for you to run.
  • One request covers everything: JavaScript rendering, rotating residential proxies, handling for Cloudflare, DataDome, Akamai and PerimeterX, and CAPTCHA solving, with no credit multipliers.
  • Clean output: Markdown for LLMs, raw HTML for your own selectors, or JSON from ready-made extractors.
  • More than scrape: crawl a whole site, map its URLs, take screenshots, or query the Search API on the same key.
  • How you connect: the managed Cloud API, the Python SDK, an MCP server for AI agents, the Playground and docs, or the MIT-licensed core on your servers.
  • Billing: 50 free requests a month with no card, then $0.67 to $9.67 per 1,000 requests; blocked pages, CAPTCHAs, timeouts and server errors are never billed.

Where it falls short: you don't get a browser to script click by click, so multi-step flows behind a login still need your own Playwright or Camoufox session. There's no plain-English extraction prompt; structured data comes from extractors, Markdown or your own selectors. The ecosystem is younger, and self-hosting means bringing your own proxy accounts. For a few unprotected pages, plain Playwright costs nothing.

"Most teams don't need a stealth browser for every page. They need to know which domains block them, then decide whether those few are worth running Camoufox for or handing off."

Rajesh Kannan, Co-Founder & CTO at Gramosoft

Camoufox vs Playwright: what's actually different

Playwright drives Chromium, Firefox and WebKit for testing, so it reports the real machine and announces automation. Camoufox is a Firefox build that Playwright drives too, but it reports a made-up, consistent device from the browser's C++ code and hides the automation layer from the page. The page code you write is almost the same.

  Playwright Camoufox
What it is Automation framework from Microsoft Modified Firefox with a Python and Node.js launcher
Browsers Chromium, Firefox, WebKit Its own Firefox build only (Firefox 158 on December 1, 2026)
Languages Python, Node.js, Java, .NET Python and Node.js
Fingerprint The host machine's, with emulation options A drawn device identity, reported from C++
Stealth add-ons playwright-stealth patches page JavaScript Built in; no page patches
Your page.evaluate code Runs in the page Runs in an isolated copy the page can't see
CDP connections Yes, for Chromium No; Firefox uses Juggler
Licence Apache 2.0 Python launcher MIT; browser MPL 2.0

The key difference is where the disguise lives. playwright-stealth overrides properties with JavaScript after the page starts, and scripts can find those overrides in places the patch didn't reach. The Camoufox README says it answers navigator, screen, WebGL, font and audio queries in C++, so workers and iframes see the same values. It also warns that Camoufox presents Firefox identities only and "can still be detected." Our Camoufox tutorial covers installing and running it.

What each one leaks: our test

We served a local probe page that reads what anti-bot scripts read: the webdriver flag, plugins, WebGL renderer, window size and whether a web worker reports the same browser as the page. Then we loaded it 50 times with five setups and counted the contradictions a simple detector would flag.

Five passports, one per setup, with customs stamps for each bot signal found on the same probe page: Playwright Chromium default headless 5 flags, new headless 4, with playwright-stealth 4 different flags such as a worker reporting HeadlessChrome, Camoufox headless 1 flag (no WebGL), Camoufox with a Windows identity 1 flag
Bot signals each setup showed on our local probe page (December 1, 2026).
# lab_output.txt (printed output)
Setup                                       launch  per page   memory  red flags
Playwright Chromium (default headless)       0.30s     0.13s     90 MB  5
                                            - navigator.webdriver is true
                                            - HeadlessChrome in the user agent
                                            - no plugins on a desktop browser
                                            - software WebGL renderer (SwiftShader/llvmpipe)
                                            - window has no browser chrome (outerHeight == innerHeight)
Playwright Chromium (new headless)           0.42s     0.19s    320 MB  4
                                            - navigator.webdriver is true
                                            - HeadlessChrome in the user agent
                                            - software WebGL renderer (SwiftShader/llvmpipe)
                                            - window has no browser chrome (outerHeight == innerHeight)
Playwright Chromium + playwright-stealth     0.46s     0.21s    321 MB  4
                                            - worker user agent differs from the page
                                            - worker platform differs from the page
                                            - user agent OS does not match navigator.platform
                                            - window has no browser chrome (outerHeight == innerHeight)
Camoufox (headless)                          1.25s     0.82s    827 MB  1
                                            - WebGL not available
Camoufox (os=windows)                        1.10s     0.74s    827 MB  1
                                            - WebGL not available

Plain Playwright Chromium announced itself: navigator.webdriver was true, the user agent said HeadlessChrome, and WebGL reported a software renderer. playwright-stealth fixed the webdriver flag and the page's user agent, but a web worker still reported HeadlessChrome on Linux while the page claimed Windows, which is a worse tell than the original. Camoufox's page, worker and platform all agreed, and the only flag was missing WebGL because our server has no GPU; the README suggests headless="virtual-gpu" for that.

This is a local check of ten signals, not a test against Cloudflare or DataDome, which also score your IP, TLS handshake and behaviour. Stock Playwright Firefox wasn't included because its browser download was blocked in our environment. Our guide to how websites detect scrapers covers the signals these checks come from.

Customs declaration form comparing launch time, time per local page and memory: Playwright Chromium 0.30 to 0.46 s launch, 0.13 to 0.21 s per page, 90 to 321 MB; Camoufox 1.10 to 1.25 s launch, 0.74 to 0.82 s per page, 827 MB
Launch time, time per page and memory, medians of 5 runs of 10 pages on a 2-vCPU Linux server (December 1, 2026).

The disguise has a price. On a 2-vCPU, 7 GB Linux server, Camoufox took about 1.1 to 1.25 seconds to launch, 0.74 to 0.82 seconds per local page and 827 MB of memory, against 0.3 to 0.46 seconds, 0.13 to 0.21 seconds and 90 to 321 MB for Chromium. Some write-ups quote about 200 MB for Camoufox; measure it on your own servers before you size a fleet.

Use the same scraper with both

Because Camoufox hands back a Playwright browser, one extraction function can run on either. The script below tries plain Playwright first, moves a domain to Camoufox when it's blocked, and to GcrawlAI if Camoufox is blocked too. It remembers each domain's level so it doesn't retry what already failed.

# scrape_ladder.py
# pip install playwright camoufox gcrawl-sdk   (use a fresh venv: camoufox 0.5.9 pins playwright<1.63)
# playwright install chromium && camoufox fetch
"""One scraper, three engines. Try plain Playwright first, move a domain to Camoufox when
it gets blocked, and hand it to GcrawlAI when Camoufox is blocked too. The page logic is
shared because Camoufox returns a normal Playwright browser."""
import os
from urllib.parse import urlparse

from camoufox.sync_api import Camoufox
from playwright.sync_api import sync_playwright

BLOCK_MARKERS = ("sorry, you have been blocked", "access denied", "verify you are human", "just a moment")
LEVEL = {}  # domain -> 0 Playwright, 1 Camoufox, 2 GcrawlAI; remembered so we don't retry what failed


def extract(page):
    """Shared page logic. Use locators, not page.evaluate on page globals: Camoufox runs
    evaluate in an isolated copy of the page, so variables the site sets aren't visible."""
    return {"title": page.title(),
            "products": page.locator(".product h2").all_inner_texts(),
            "prices": page.locator(".product .price").all_inner_texts()}


def blocked(status, html):
    return status in (403, 429, 503) or any(m in html.lower() for m in BLOCK_MARKERS)


def with_playwright(url):
    with sync_playwright() as p:
        browser = p.chromium.launch(headless=True)
        page = browser.new_page()
        resp = page.goto(url, wait_until="domcontentloaded")
        status, html = (resp.status if resp else 0), page.content()
        data = None if blocked(status, html) else extract(page)
        browser.close()
    return data


def with_camoufox(url):
    with Camoufox(headless=True, os="windows", humanize=True) as browser:  # add proxy=..., geoip=True in production
        page = browser.new_page()
        resp = page.goto(url, wait_until="domcontentloaded")
        status, html = (resp.status if resp else 0), page.content()
        return None if blocked(status, html) else extract(page)


def with_gcrawlai(url):
    from gcrawl_sdk import GcrawlClient, ScrapeOptions
    gc = GcrawlClient(api_key=os.environ["GCRAWL_API_KEY"])
    page = gc.scrape(url=url, options=ScrapeOptions(html_enabled=True, markdown_enabled=True, proxy_geo="US"), wait=True)
    return None if blocked(200, page.html or "") else {"markdown": (page.markdown or "")[:500]}


ENGINES = [("Playwright", with_playwright), ("Camoufox", with_camoufox), ("GcrawlAI", with_gcrawlai)]


def scrape(url):
    domain = urlparse(url).netloc
    for level in range(LEVEL.get(domain, 0), len(ENGINES)):
        name, engine = ENGINES[level]
        if name == "GcrawlAI" and not os.getenv("GCRAWL_API_KEY"):
            break
        data = engine(url)
        if data is not None:
            LEVEL[domain] = level
            return name, data
        print(f"{domain}: blocked on {name}, moving up")
    return None, None


if __name__ == "__main__":
    for url in ["http://127.0.0.1:8930/shop", "http://127.0.0.1:8930/shop?page=2"]:
        engine, data = scrape(url)
        print(engine, data and (data.get("title"), len(data.get("products", []))))

We ran it against a toy rule on our test server that refuses any user agent containing HeadlessChrome. Playwright got the 403 page, Camoufox got all eight products, and the second URL on the same domain went straight to Camoufox:

# ladder_output.txt (printed output)
127.0.0.1:8930: blocked on Playwright, moving up
Camoufox ('Shop', 8)
Camoufox ('Shop', 8)

Four things caught us out while building it:

  • Version pin: camoufox 0.5.9 requires playwright<1.63, so installing it downgrades Playwright. Give it its own virtual environment.
  • Isolated evaluate: in Camoufox, page.evaluate("window.someVar") can't see variables the site sets, because your code runs in an isolated copy of the page. Read the DOM with locators, or launch with main_world_eval=True and prefix the script with mw:.
  • Browser download: camoufox fetch looks up the release through the GitHub API, which our sandbox blocked; set GITHUB_TOKEN in CI to avoid anonymous rate limits.
  • Another OS costs stealth: asking for os="windows" on a Linux server turns on canvas noise, and Camoufox warns that this reads as a privacy-hardened Firefox rather than stock Firefox.

A stealthier browser doesn't fix a flagged IP or a burst of requests; pair either one with residential proxies and a sane request rate.

Camoufox or Playwright for web scraping in 2027?

Start every job on Playwright with Chromium and measure block rates per domain. Move only the domains that keep failing to Camoufox, and cap its concurrency separately because it needs more memory. When a domain still fails, or you'd rather not run browsers at all, send it to a scraping API with residential IPs.

Your situation Good fit Where GcrawlAI fits
Testing your own app Playwright Not needed; Playwright is free and local
Public sites with no bot protection Playwright + Chromium One request per page if you'd rather not host browsers
A few domains block headless Chrome Camoufox for those domains The fallback when Camoufox is blocked too
Node.js, Java or a CDP-based agent Playwright, or Camoufox's Node.js package without CDP Cloud API and MCP from any language or agent
Thousands of protected pages a day A managed scraping API Residential IPs and anti-bot handling included, failed requests free
Logged-in, multi-step flows Your own Playwright or Camoufox session Use it for the public pages around the flow

If Chrome specifically is what you need to look like, our guide to nodriver and undetected-chromedriver covers the Chromium-side options, and scraping without getting blocked covers rate, headers and IPs.

Frequently asked questions

Is Camoufox better than Playwright for web scraping?

For sites that fingerprint browsers, yes: in our test Camoufox showed one bot signal against four or five for Playwright Chromium. For everything else, Playwright is better: it launched about three times faster, loaded local pages about four times faster, used far less memory and supports more languages. Most teams use both, routed by domain.

Is Camoufox built on Playwright?

Camoufox is a modified Firefox, and Playwright is how you drive it. Its Python and Node.js launchers return a normal Playwright browser, so goto, locators and waits work as usual. Your code runs in an isolated copy of the page, and Camoufox pins an older Playwright version, currently below 1.63.

Does playwright-stealth make Playwright undetectable?

No. In our test it set the webdriver flag to false and fixed the page's user agent, but a web worker still reported HeadlessChrome on Linux while the page claimed Windows. Patches applied with JavaScript miss places like workers, and checking for those contradictions is cheap for a detector. Camoufox showed no such mismatches.

Is Camoufox slower than Playwright?

Yes, in our test. On a 2-vCPU Linux server, Camoufox launched in about 1.1 to 1.25 seconds against 0.3 to 0.46 seconds for Chromium, took about 0.8 seconds per local page against about 0.2 seconds, and used 827 MB against up to 321 MB. Plan for fewer Camoufox workers per server.

Can I use Camoufox with Node.js or CDP?

Node.js, yes: Camoufox publishes an npm package called camoufox that works with playwright-core. CDP, no: Camoufox is Firefox, which Playwright drives over its own Juggler protocol, so tools and agents that only connect over the Chrome DevTools Protocol can't attach to it without a separate bridge.

Why does page.evaluate return undefined in Camoufox?

Camoufox runs Playwright's evaluate, selectors and init scripts in an isolated copy of the page, so variables the site's own scripts set on window aren't visible. Read what you need from the DOM with locators, or launch with main_world_eval=True and start the expression with mw: to run it in the page itself.

Is GcrawlAI open source, and what does it cost?

Yes. The core is MIT-licensed and self-hostable, next to a managed Cloud API, Python SDK and MCP server. The free plan has 50 requests a month with no card, and paid plans cost $0.67 to $9.67 per 1,000 requests. Rendering, residential IPs and anti-bot handling come in one request, and failed requests are never charged.

RK

Rajesh Kannan M

Rajesh Kannan M is Co-Founder & CTO of Gramosoft in Chennai, where he leads the team building GcrawlAI, an open-source web scraping, crawling and Search API platform for developers and AI agents. LinkedIn

Blocked on Playwright and Camoufox?

Start with 50 free requests a month, no card. GcrawlAI loads each page in a real browser through a residential IP, escalates stealth when a bot check appears, and returns Markdown, HTML or JSON, through the Cloud API, Python SDK or MCP, or self-hosted under MIT. Failed requests are never charged.

CTA Illustration