Comparison
Unbrowse vs Playwright
Playwright automates browsers with a powerful API, but every action requires rendering a full page. Unbrowse discovers the internal APIs behind those pages so AI agents call them directly — 3.6x faster on average, 40x fewer tokens.
What is Playwright?
Playwright is a cross-browser automation framework by Microsoft. It controls Chromium, Firefox, and WebKit through the DevTools Protocol, rendering full pages for every interaction.
Where Playwright falls short for AI agents
- Every action renders a full browser page (5-30 seconds per step)
- Agents must parse ~8,000 tokens of DOM/HTML per page
- Fragile selectors break when sites update their UI
- Headless detection is an arms race — CAPTCHAs, fingerprint checks
- Parallel sessions require proportional CPU and memory
Head-to-head comparison
| Dimension | Unbrowse | Playwright |
|---|---|---|
| Architecture | API-first: discovers internal APIs, calls them directly | Browser automation: renders full pages via DevTools Protocol |
| Speed (mean) | 950 ms per task (warmed cache)arXiv:2604.00694, 94 domains | 3,404 ms per task (Playwright baseline) |
| Speedup | 3.6x faster (mean), 5.4x faster (median)arXiv:2604.00694 | 1x baseline |
| Cost per task | $0.005 (cached API call)90-96% reduction | $0.53 (browser automation) |
| Token usage | ~200 tokens (structured JSON response)40x reduction | ~8,000 tokens (DOM/HTML per page) |
| Setup | curl -fsSL https://unbrowse.ai/install.sh | bash (one command) | npm install playwright && npx playwright install (~400 MB browsers) |
| Output format | Structured JSON from real API responses | Raw HTML/DOM that agents must parse |
| Shared knowledge | Skill registry: discoveries shared across all agents | None: every user re-discovers the same site patterns |
| Authentication | Auto-injects cookies from real browser profiles | Manual cookie/session management in code |
| Anti-bot resistance | Real API calls with real cookies — indistinguishable from user traffic | Headless fingerprint detection, CAPTCHAs, IP blocking |
Speed and cost data from "Internal APIs Are All You Need" (arXiv:2604.00694) — benchmark across 94 live domains.
How Unbrowse works differently
Every modern website is powered by internal APIs. When you load a page, the browser fetches structured data from backend endpoints and renders it as HTML. Browser automation tools like Playwright work at the HTML layer — rendering pages, parsing DOMs, clicking buttons.
Unbrowse works at the API layer. It passively captures network traffic from a real browsing session, reverse-engineers the internal endpoints, and stores them as reusable skills. Once discovered, AI agents call these APIs directly — no browser, no rendering, no DOM parsing.
The result: structured JSON responses in ~200 tokens instead of ~8,000 tokens of raw HTML. Direct API calls in 950 ms instead of multi-second page loads. And a shared skill registry so agents never re-discover the same endpoints.
Try Unbrowse now
One command to install. Works with Claude Code, Cursor, Windsurf, and any agent that can call a CLI.
Other comparisons
vs Puppeteer
Puppeteer gives fine-grained Chrome control via CDP, but agents still pay the full rendering cost. Unbrowse replaces that with direct API calls — same data, 3.6x faster, 40x fewer tokens, no browser process required.
vs Browser Use
Browser Use connects LLMs to a live browser with vision and action. Unbrowse eliminates the browser entirely — agents call the same APIs websites use internally, cutting cost from $0.53 to $0.005 per task.
vs Crawl4AI
Crawl4AI crawls and converts pages to LLM-friendly markdown. Unbrowse skips the page entirely — it calls the internal APIs behind the content, returning structured JSON instead of scraped text.