Web Scraping API
Scrape any public webpage and get back clean HTML, Markdown, or plain text. The API handles anti-bot protection, JavaScript rendering, and proxy rotation automatically.Key Features
Smart Engine Selection
Automatically picks the best scraping engine for each site — from fast HTTP requests to full browser rendering.
Anti-Bot Bypass
Detects and bypasses Cloudflare, DataDome, Akamai, Kasada, and other protection systems.
AI Extraction
Extract structured data from any page using natural language prompts powered by LLMs.
How It Works
- Send a URL to the
/v1/web/scrapeendpoint - ScrapeBadger selects the best engine — fast HTTP for simple pages, headless browser for JavaScript-heavy sites
- Anti-bot detection runs automatically — if a block is detected, the request retries with escalated engines
- Get clean content back in your preferred format (HTML, Markdown, or plain text)
Scraping Engines
ScrapeBadger uses a tiered engine system. Whenengine is set to "auto" (the default), the cheapest engine is tried first and escalation happens automatically if blocking is detected.
| Engine | Description | Cost | Best For |
|---|---|---|---|
curl_cffi | HTTP client with Chrome TLS fingerprint impersonation | 1 credit | Static pages, APIs, most websites |
browser | Headless browser (Patchright/Camoufox) | 5 credits | JavaScript-rendered pages, SPAs |
windows_chrome | Real Chrome on a remote Windows VPS via CDP | 10 credits | Heavily protected sites with advanced fingerprinting |
rnet is a backward-compatible alias for curl_cffi. patchright is a backward-compatible alias for browser.Auto-Escalation
Whenescalate is enabled (default: false), ScrapeBadger automatically tries more powerful engines if the initial one is blocked:
Credit Costs
| Component | Cost |
|---|---|
curl_cffi / rnet engine | 1 credit |
browser / patchright engine | 5 credits |
windows_chrome engine | 10 credits |
Anti-bot solver (anti_bot: true) | +5 credits |
AI extraction (ai_extract: true) | +2 credits |
| Retries | Free |
| Failed requests | 0 credits |
Quick Example
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/v1/web/scrape | POST | Scrape a URL and return content |
/v1/web/detect | POST | Detect anti-bot and CAPTCHA systems on a URL |
Next Steps
Scrape Endpoint
Full API reference for the scrape endpoint
Detect Endpoint
Analyze a URL for anti-bot protection

