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 approach 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.
Video Recording
Record browser sessions as animated GIFs for debugging, visual verification, and monitoring.
Screenshots
Capture full-page PNG screenshots of any webpage.
Geo-Targeting
Route requests through proxies in 37+ countries to access location-specific content.
How It Works
- Send a URL to the
/v1/web/scrapeendpoint - ScrapeBadger picks the best approach — 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 more powerful methods
- Get clean content back in your preferred format (HTML, Markdown, or plain text)
Scraping Tiers
ScrapeBadger uses a tiered system. Whenengine is set to "auto" (the default), the most cost-effective method is tried first and the system escalates automatically if needed.
| Tier | Description | Cost |
|---|---|---|
| HTTP | Fast HTTP request with Chrome TLS fingerprint — works for most websites | 1 credit |
| Browser | Full headless browser with JavaScript rendering — for SPAs and dynamic pages | 5 credits |
| Premium Browser | Real browser with advanced fingerprinting — for heavily protected sites | 10 credits |
Auto-Escalation
Whenescalate is enabled, ScrapeBadger automatically tries more powerful methods if the initial one is blocked:
Credit Costs
| Component | Cost |
|---|---|
| Basic HTTP scrape | 1 credit |
Browser rendering (render_js: true) | 5 credits |
| Premium browser (via escalation) | 10 credits |
Anti-bot solver (anti_bot: true) | +5 credits |
AI extraction (ai_extract: true) | +2 credits |
Video recording (video: true) | +3 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

