# Scrapeless Scraping Browser **An anti-detection cloud browser that renders JavaScript, clears bot challenges, and exits through residential IPs — driven by the Puppeteer and Playwright you already know.** Not a local stealth patch you maintain. A managed cloud browser: self-developed Chromium, per-session anti-detection fingerprints, and residential egress in 195+ countries, reached over a single WebSocket endpoint. [![Docs](https://img.shields.io/badge/docs-scrapeless.com-2FE0CE)](https://docs.scrapeless.com/en/scraping-browser/quickstart/introduction/) [![Free plan](https://img.shields.io/badge/free%20plan-app.scrapeless.com-34DDB8)](https://app.scrapeless.com) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE) --- ## 30 seconds: what and why A local headless browser gives you a real engine, but it runs on your IP, leaks automation tells (`navigator.webdriver`, headless defaults), and you maintain the stealth patches as Chrome and the anti-bots change. The Scrapeless Scraping Browser moves all of that server-side: - **Real Chromium** executes JavaScript exactly like Chrome — SPAs and challenges resolve. - **Anti-detection fingerprints** are consistent per session — no `webdriver` tell. - **Residential egress** in 195+ countries — the exit IP reads clean. - **Your code is unchanged** — `puppeteer.connect()` / `chromium.connectOverCDP()` return an ordinary browser. --- ## Quickstart ```bash npm install puppeteer-core # or: playwright-core export SCRAPELESS_API_KEY=sk_... # free key at https://app.scrapeless.com ``` **Puppeteer** ```javascript import puppeteer from 'puppeteer-core'; const url = `wss://browser.scrapeless.com/api/v2/browser?token=${process.env.SCRAPELESS_API_KEY}&sessionTTL=180&proxyCountry=US`; const browser = await puppeteer.connect({ browserWSEndpoint: url }); const page = await browser.newPage(); await page.goto('https://www.scrapeless.com'); console.log(await page.title()); await browser.close(); ``` **Playwright** ```javascript import { chromium } from 'playwright-core'; const url = `wss://browser.scrapeless.com/api/v2/browser?token=${process.env.SCRAPELESS_API_KEY}&sessionTTL=180&proxyCountry=US`; const browser = await chromium.connectOverCDP(url); const page = await browser.newPage(); await page.goto('https://www.scrapeless.com'); console.log(await page.title()); await browser.close(); ``` Prefer a one-liner? The SDK creates and connects in one call: ```javascript import { Puppeteer } from '@scrapeless-ai/sdk'; const browser = await Puppeteer.connect({ apiKey: process.env.SCRAPELESS_API_KEY, proxyCountry: 'US', sessionTTL: 180 }); ``` --- ## Why Scrapeless Scraping Browser | | Local stealth browser | Scrapeless Scraping Browser | |---|---|---| | Browser engine | real, but patched by you | self-developed Chromium | | Fingerprint | you maintain the patches | consistent, per-session, no `webdriver` tell | | Exit IP | your own (residential *or* datacenter) | residential in 195+ countries | | Cloudflare challenge | clears on a clean IP, stalls on datacenter | clears with bundled residential egress | | Maintenance | ongoing as Chrome/anti-bots change | managed | | Your automation code | works | works, unchanged | It doesn't reinvent the API — you keep Puppeteer/Playwright and point the connection at the cloud. --- ## Connection parameters Everything is a query parameter on the WebSocket endpoint `wss://browser.scrapeless.com/api/v2/browser`: | Parameter | Meaning | |---|---| | `token` | your API key (required) | | `sessionTTL` | session lifetime, 60–900s (default 180) | | `sessionName` | a label for the session | | `sessionRecording` | record the session for replay (`true`/`false`) | | `proxyCountry` | ISO country code or `ANY` | | `proxyState` / `proxyCity` | narrow the egress geography | | `proxyURL` | use your own proxy (takes precedence) | | `fingerprint` | URL-encoded JSON fingerprint object | | `profileId` / `profilePersist` | reuse a persistent browser profile | | `extensionIds` | load uploaded browser extensions | --- ## Examples Runnable scripts in [`examples/`](examples/): | File | What it shows | |---|---| | [`puppeteer-connect.js`](examples/puppeteer-connect.js) | connect over CDP (direct wss + SDK helper) | | [`playwright-connect.js`](examples/playwright-connect.js) | connect with Playwright | | [`proxies.js`](examples/proxies.js) | pin residential egress by country / state / city | | [`custom-fingerprint.js`](examples/custom-fingerprint.js) | set a consistent browser fingerprint | | [`cloudflare-challenge.js`](examples/cloudflare-challenge.js) | clear a Cloudflare challenge and read the real DOM | ```bash npm install node examples/puppeteer-connect.js ``` --- ## Clearing bot challenges The Scraping Browser handles the common challenge types — the Cloudflare interstitial, Cloudflare Turnstile, and reCAPTCHA v2 — because it combines the three things a challenge scores: a real browser that runs the JavaScript, a consistent fingerprint, and a clean residential exit IP. Pin `proxyCountry` to a residential region and warm the session on the homepage before the target page for the best results. > The methodology behind this — an open, reproducible Cloudflare benchmark across the Scraping Browser and the open-source anti-detect field — lives in a separate repo, so you can re-run the numbers yourself. --- ## FAQ **Is my automation code compatible?** Yes. The Scraping Browser speaks CDP, so `puppeteer.connect()` and `chromium.connectOverCDP()` work unchanged — you only change the connection URL. **Do I need a proxy?** No. Residential egress is built in; set `proxyCountry` to choose a region, or `ANY`. You can also bring your own with `proxyURL`. **Does it solve CAPTCHAs?** It handles the common challenge types (Cloudflare interstitial, Turnstile, reCAPTCHA v2) as part of rendering, rather than treating each as a separate solver step. **How is this different from a local stealth browser?** A local browser runs on your IP and needs you to maintain the stealth patches. This is a managed cloud browser with bundled residential egress and consistent fingerprints — the same API, none of the upkeep. **Where are the full docs?** [docs.scrapeless.com/en/scraping-browser](https://docs.scrapeless.com/en/scraping-browser/quickstart/introduction/). --- ## License MIT — see [LICENSE](LICENSE). Examples call the Scrapeless Scraping Browser, which requires a free API key from [app.scrapeless.com](https://app.scrapeless.com).