I tested six web scraping APIs, from simple request-in, HTML-out services to scraping platforms and an AI-native API. Here is what each one does well, where it falls short, and which one I would choose for different projects.
Last reviewed: 18th October 2026. The prices, the credit rates and all the other parameters in this category are in such a state of flux that you simply have to check each provider's current documentation before you make a decision.
TL;DR
- Simplest "URL in, data out" call with JS rendering and AI extraction: ScrapingBee.
- Heavily protected sites at enterprise scale: Bright Data.
- LLM-ready Markdown and JSON for RAG and agents: Firecrawl.
- Ready-made scrapers and custom scraping programs on one platform: Apify.
- Proxy-backed scraping with target templates: Decodo.
- General-purpose scraping with JS rendering and residential proxies: WebScrapingAPI.
Running your own scraping stack involves managing headless browsers, proxies (rotating), CAPTCHA solving, retries, and the constant battle against anti-bot systems. A web scraping API offloads all that work to someone else. You just provide them with a URL, and you get the page back.
But these six services aren't interchangeable. Some return raw HTML and leave parsing to you. Others return structured JSON or LLM-ready Markdown. One runs whole scraping programs on its own platform. Their pricing models also behave very differently as volume grows.
I ran a comparison of 6 services across the three groups: request-in, HTML-out APIs, scraping platforms, and the AI-native API. It's an editorial comparison based on the services' documented capabilities and publicly available product info, not a controlled benchmark in which each API would have been scraping the same pages.
My big take away is that the best scraping API is the one whose pricing, output format and failure mode still make sense at ten times your initial volume.
What is a web scraping API?
A web scraping API is an HTTP endpoint which will fetch you a web page. You give it a URL to scrape and a few options and it will then route the request via a rotating proxy, render any JavaScript that's required in a headless browser, deal with retries and blocks and return the result in HTML, JSON or Markdown.
For example, one call can return the fully rendered HTML of a product page from a particular country, without you having to run a browser or buy a single proxy.
You trade control for convenience. The various services offer different things in return: raw HTML that you have to parse yourself, data that's been extracted via extraction rules or pre-built parsers, or clean Markdown that you can feed into an LLM. That's the thing that should determine which service you pick.
How a scraping API request works
Every service in this guide runs roughly the same pipeline behind its endpoint:
| Stage | What happens | What you control |
|---|---|---|
| 1. Request | You send the target URL plus parameters | Rendering, geography, device, wait conditions |
| 2. Proxy selection | The service picks an IP from a datacenter, residential, or mobile pool | Proxy tier, country, session reuse |
| 3. Fetch and render | A plain HTTP fetch, or a headless browser that runs JavaScript | Whether to render, what to wait for |
| 4. Anti-bot handling | Retries, fingerprinting, and CAPTCHA solving | Usually only a tier switch |
| 5. Response | HTML, structured JSON, or Markdown | Extraction rules, formats |
The request shape is also similar across vendors, which makes switching easier than it looks. Here is how the same ideas appear in each tool:
| Tool | Request style | Auth | JS rendering | Proxy tiers | Structured output |
|---|---|---|---|---|---|
| ScrapingBee | GET to the HTML API | Bearer header or api_key
|
render_js (on by default) |
premium_proxy, stealth_proxy
|
extract_rules, ai_query
|
| Decodo | POST to the v2 scrape endpoint | Basic auth token |
headless set to html
|
proxy_pool standard or premium |
parse, target templates |
| WebScrapingAPI | GET to the v2 endpoint |
api_key parameter |
render_js |
proxy_type datacenter or residential |
extract_rules |
| Bright Data | POST to the request endpoint with a zone | Bearer header | Handled by the zone, or Browser API | Chosen by zone type | Scraper API datasets, SERP parsing |
| Firecrawl | SDKs and REST | API key | Automatic | Managed | Markdown, JSON, schema extraction |
| Apify | Run an Actor with the client library | API token | Depends on the Actor | Depends on the Actor | Dataset items |
How the tools are compared
A scraper that works on a demo page tells you little about production. So the tools are judged on five criteria that matter once real traffic starts:
- Anti-bot and JavaScript handling: How well it gets through the blocks and renders the dynamic pages.
- Output quality: Whether you get structured, ready-to-use data or raw HTML you're going to have to parse it.
- Developer experience: Documentation, SDKs and how quickly you can get a first working request.
- Scale and cost predictability: How pricing, concurrency and credit multipliers behave as you scale.
- Flexibility and ecosystem: More products, more integrations and MCP support.
The better API is the one that keeps returning good data as the target tightens up and your volume increases.
The 6 tools at a glance
| Tool | Category | Best for | Coding knowledge needed |
|---|---|---|---|
| ScrapingBee | Request-in, HTML-out API | Simple, flexible single-call scraping | Beginner |
| Decodo | Request-in, HTML-out API | Template-based scraping on a proxy network | Beginner to intermediate |
| WebScrapingAPI | Request-in, HTML-out API | General-purpose scraping with residential proxies | Beginner |
| Bright Data | Scraping platform | Protected sites and large-scale data collection | Intermediate to advanced |
| Apify | Scraping platform | Ready-made scrapers and custom Actors | Beginner to advanced |
| Firecrawl | AI-native API | LLM-ready Markdown and JSON | Beginner to intermediate |
Scorecard against the five criteria
These ratings are purely the result of my editorial judgment based on what is documented as capability, not any measured test results.
| Tool | Anti-bot and JS | Output quality | Developer experience | Scale and cost predictability | Flexibility and ecosystem |
|---|---|---|---|---|---|
| ScrapingBee | Medium | High | High | High | Medium |
| Decodo | Medium | Medium | Medium | Medium | Medium |
| WebScrapingAPI | Medium | Medium | Medium | Medium | Low |
| Bright Data | High | High | Low | Medium | High |
| Apify | Medium | High | Medium | Low | High |
| Firecrawl | Medium | High | High | High | High |
The trade-off is clear. The request-in, HTML-out APIs are the simplest and most predictable, but you do more of the parsing. The platforms handle the hardest targets and deliver structured data, at the cost of complexity. Firecrawl sits in between, with clean output and a small API surface.
Who should pick what
| You are... | Start with | Why |
|---|---|---|
| A developer who wants one HTTP call that returns a page | ScrapingBee | Published credit costs, built-in rendering, optional extraction |
| A team scraping heavily protected sites at scale | Bright Data | Unblocking infrastructure is the core product |
| Building an LLM app, RAG pipeline, or agent | Firecrawl | Markdown and JSON output, plus crawl, search, and extract |
| Someone who needs a scraper for a specific site, fast | Apify | A store of ready-made Actors, plus a platform for your own |
| Already working with a proxy network and want templates | Decodo | Target templates and parsing on top of proxies |
| A developer who wants a general-purpose API with residential proxies | WebScrapingAPI | Rendering, proxy tiers, and extraction rules behind one endpoint |
My default picks: ScrapingBee as a general-purpose API, Bright Data when blocking is the main problem, Firecrawl for LLM applications, and Apify when a ready-made scraper already exists. Replace any of these if the specifics below fit your project better.
Category 1: Request-In, HTML-Out APIs
These are the simplest to adopt. You just call one endpoint with a URL and a couple of parameters,s and you get the page back. They're the best place to start if you already know how to parse HTML.
1. ScrapingBee

ScrapingBee is the API I'd hand to a dev who just wants a single HTTP call that returns a page. Its HTML API documentation lists a URL parameter, JavaScript rendering via a headless browser (on by default), a proxy ladder,r and the ability to extract data via CSS selectors or AI.
What makes it useful
- JavaScript rendering is on by default,t and you can turn it off for cheaper static fetches.
- A proxy ladder: begin with the default pool, add
premium_proxyif you get blocked, and then escalate tostealth_proxyfor the really nasty sites. -
extract_rulesreturns structured JSON from CSS selectors instead of HTML. -
ai_queryandai_extract_rulesextract data from a plain-language description or a JSON schema. -
js_scenariocan click, scroll, fill forms, and wait before the page is captured. - Screenshots, country targeting, and official SDKs.
Here is a basic request with CSS extraction. The docs recommend sending the key in an Authorization header, and parameters such as extract_rules must be stringified JSON.
import json
import os
import requests
API_KEY = os.environ["SCRAPINGBEE_API_KEY"]
response = requests.get(
"https://app.scrapingbee.com/api/v1/",
headers={"Authorization": f"Bearer {API_KEY}"},
params={
"url": "https://example.com/product/42",
"render_js": "true",
"extract_rules": json.dumps({"title": "h1", "price": ".price"}),
},
timeout=90,
)
response.raise_for_status()
print(response.json())
The important part is to climb the proxy ladder only when you need to, because each step costs more credits. This helper tries the cheapest option first:
TIERS = [{}, {"premium_proxy": "true"}, {"stealth_proxy": "true"}]
def fetch(url: str) -> requests.Response:
for extra in TIERS:
r = requests.get(
"https://app.scrapingbee.com/api/v1/",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"url": url, **extra},
timeout=90,
)
if r.status_code == 200:
return r
raise RuntimeError(f"Blocked at every tier: {url}")
For irregular pages, swap CSS rules for a natural-language query:
params = {
"url": "https://example.com/product/42",
"ai_query": "the product name, current price, and whether it is in stock",
}
Where it falls short: Credit multipliers add up. As at the time of writing the documentation lists a default Javascript rendered request at 5 credits, premium proxies with rendering at 25, stealth proxies at 75 and AI extraction as an additional 5. So check the current table before you go and work out your costs. If you don't have any extraction rules or AI you just get the HTML and you have to parse it yourself.
My verdict: ScrapingBee is my go to for developers looking for one flexible endpoint, with clear credit costs and an obvious escape hatch for the really hard sites.
2. Decodo

Decodo, formerly Smartproxy, offers a web scraping API on top of its proxy network. Its parameter reference describes a POST endpoint that takes a JSON body, with options for rendering, geography, device type, proxy tier, and parsing for supported targets.
What makes it useful
- JavaScript rendering through the
headlessparameter, with HTML for rendered pages and PNG for screenshots. - A
proxy_poolchoice betweenstandardfor simple pages andpremiumfor complex anti-bot measures. - Target templates, such as search engine results, with a
parseoption that returns structured data. - Geolocation, device type, custom headers and cookies, and session reuse of the same IP for up to ten minutes.
- Markdown output is available through some of its integrations, which suits LLM workflows.
A minimal Python call looks like this. The authorization value is the token from your Decodo dashboard.
import os
import requests
TOKEN = os.environ["DECODO_AUTH_TOKEN"]
response = requests.post(
"https://scraper-api.decodo.com/v2/scrape",
headers={
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": f"Basic {TOKEN}",
},
json={
"url": "https://example.com/products",
"headless": "html",
"geo": "United States",
},
timeout=90,
)
result = response.json()["results"][0]
print(result["status_code"])
print(result["content"][:300])
The important part is to turn on JavaScript rendering only when you need it. The docs note that rendering is slower and more resource-intensive, and that static sites don't need it.
Where it falls short: The documentation notes that the older Core and Advanced plans are no longer sold and points customers to an all-in-one Web Scraper API, so supported parameters can differ by plan and target template. Check the response shape and parameter list for the plan you actually have.
My verdict: Decodo is a good fit if you're after proxy-backed scraping with ready-made target templates and you're happy to read its parameter tables.
3. WebScrapingAPI

WebScrapingAPI is a general-purpose scraping API with rotating proxies and a headless browser all under one endpoint. The documentation covers rendering, JS, and extraction, and they have SDKs for Python, Node.js, and Scrapy.
What makes it useful
- A GET endpoint that takes
api_key,url, and optional parameters. -
render_jsto run a headless browser, plus wait conditions such aswait_untilfor dynamic pages. -
proxy_typeto choose between datacenter and residential IPs, andcountryfor geotargeting. -
js_instructionsto scroll or click before the HTML is captured, andextract_rulesfor structured output. - Official SDKs, including one for Scrapy, so it fits into existing crawlers.
import os
import requests
response = requests.get(
"https://api.webscrapingapi.com/v2",
params={
"api_key": os.environ["WEBSCRAPINGAPI_KEY"],
"url": "https://example.com/products",
"render_js": 1,
"proxy_type": "residential",
"country": "us",
"wait_until": "domcontentloaded",
},
timeout=90,
)
print(response.status_code)
html = response.text
Or with the official Python SDK, installed with pip install webscrapingapi:
from webscrapingapi import WebScrapingApiClient
client = WebScrapingApiClient(api_key="YOUR_API_KEY")
response = client.get("https://example.com/products", params={"render_js": 1})
Where it falls short: Rendering and residential proxies consume more credits per request than a basic fetch, so check the credit table for your plan. Its documentation has existed across multiple API versions, and defaults such as render_js can differ between them, so set the parameters you rely on explicitly.
My verdict: WebScrapingAPI is a solid general-purpose option for developers who want rendering and residential proxies behind a simple GET call.
Category 2: Scraping Platforms
These go beyond a single endpoint. They offer several products, from unblocking proxies to ready-made scrapers, and they suit teams with harder targets or bigger workloads.
4. Bright Data

Bright Data is less a single API than a web data platform. Its Web Unlocker documentation describes a REST endpoint that takes a zone name, a target URL, and a response format. Around it sit a SERP API, a Scraper API with prebuilt scrapers for specific sites, a Browser API for full browser sessions, proxy networks, datasets, and an MCP server for AI agents.
What makes it useful
- Web Unlocker handles blocks, CAPTCHAs, and retries behind one request.
- Prebuilt scrapers return structured data from popular sites, so you skip the parsing.
- A Browser API for pages that need a real browser session, compatible with Puppeteer and Playwright.
- A SERP API for structured search engine results.
- An MCP server that exposes these tools to Claude, Cursor, and other agents.
A Web Unlocker request is a single authenticated POST. The zone is the product configuration you create in the control panel.
import os
import requests
response = requests.post(
"https://api.brightdata.com/request",
headers={
"Authorization": f"Bearer {os.environ['BRIGHTDATA_API_KEY']}",
"Content-Type": "application/json",
},
json={
"zone": os.environ["BRIGHTDATA_UNLOCKER_ZONE"],
"url": "https://example.com/product/42",
"format": "raw",
},
timeout=120,
)
response.raise_for_status()
html = response.text
For sites covered by a prebuilt scraper, call the datasets endpoint instead and get structured JSON back:
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={"dataset_id": "YOUR_DATASET_ID", "format": "json"},
headers={"Authorization": f"Bearer {os.environ['BRIGHTDATA_API_KEY']}"},
json={"input": [{"url": "https://www.example.com/product/42"}]},
timeout=120,
)
print(response.json())
The important part is to match the product to the job. Bright Data's own guidance says not to drive Web Unlocker with Puppeteer, Playwright, or Selenium, and to use the Browser API when you need a browser. Other request options, such as country targeting and Markdown output, are documented in its API reference, so check the current options there.
Where it falls short: The breadth is also the complexity. You have to know your zones, your products, and your credentials before the first request, and pricing is product-specific. It's usage-based, which is very efficient for hard-to-reach sites and very expensive for easy ones. You're also still ultimately responsible for data collection in a legal and compliant manner with respect to each site's terms.
My verdict: Bright Data is the strongest option when getting blocked, not parsing, is your main problem, and you have the engineering time to learn a larger platform.
5. Apify

Apify is a platform for running Actors, which are serverless programs that scrape websites, process data, and automate workflows. You can run one of the many ready-made Actors in the Apify Store, or build and host your own. The Python client quick start shows how to call them from code.
What makes it useful
- A store of ready-made Actors for specific sites and tasks, so you often don't need to write a scraper.
- A place to deploy your own scrapers, with scheduling, storage, and logs.
- Official clients for Python and JavaScript, a REST API, and a CLI.
- Datasets that hold structured results, readable page by page.
- Crawlee, Apify's open-source crawling library, plus an MCP server for AI agents.
Running an existing Actor is three steps: authenticate, start the run, and read the dataset. Each Actor defines its own input schema, so check its page for the fields it expects.
# pip install apify-client
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run_input = {"startUrls": [{"url": "https://example.com"}]} # varies per Actor
run = client.actor("username/actor-name").call(run_input=run_input)
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)
The same Actor is available from the command line, which suits scripts and cron jobs:
echo '{"startUrls": [{"url": "https://example.com"}]}' | apify call username/actor-name --silent --output-dataset
The key thing is to look at the Actor not the platform. Store Actors are created by all sorts of authors so you need to check their ratings, their success rate and their maintenance history before you go and use one.
Where it falls short: Pricing is not uniform. Actor pages describe different models, such as paying for platform usage or paying per event or result, so your cost depends on which Actor you pick. The client library's return types have also changed across versions, so check the current quick start if the example above doesn't match your install.
My verdict: Apify is the best choice when a ready-made scraper already exists for your target, or when you want one place to host your own scrapers with scheduling and storage.
Category 3: AI-Native API
This group returns data in a format that's language-model-shaped rather than raw HTML.
6. Firecrawl

Firecrawl is built for developers who want web data in a form that LLMs can consume. It's a single API that does scraping, crawling, mapping, search, and structured extraction and returns clean Markdown or JSON. See the documentation for the current endpoints, including interacting with pages and monitoring them for changes.
What makes it useful
- Scrape one page, crawl a whole site, map its URLs, or search and scrape results.
- LLM-ready Markdown, or structured JSON from a schema or a prompt.
- SDKs for Python, Node.js, Go, Rust, and Java, plus a CLI.
- A hosted MCP server, so Claude, Cursor, and other MCP clients can call it directly.
- An open-source version you can self-host.
Response field names have varied between SDK versions, so check the current SDK reference before copying this into production.
# pip install firecrawl-py
import os
from firecrawl import Firecrawl
app = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"])
# Scrape one page to LLM-ready Markdown
doc = app.scrape("https://example.com/pricing", formats=["markdown"])
print(doc.markdown[:300])
# Crawl a documentation site
crawl = app.crawl(
"https://docs.example.com",
limit=50,
scrape_options={"formats": ["markdown"]},
)
for page in crawl.data:
print(page.markdown[:100])
For structured output, pass a schema so the response has a predictable shape:
from pydantic import BaseModel
class Product(BaseModel):
name: str
price: float
in_stock: bool
result = app.extract(
urls=["https://example.com/product/42"],
schema=Product,
system_prompt="Extract the product name, price, and availability",
)
print(result.data)
Where it falls short: it'scredit-based,d with one credit covering a basic page scrape/crawl/map; crawling large sites will quickly use up your credits. More intensive features like extraction will use more credits, and if you're planning on self-hosting, you'll need to check what the open-source version includes versus the hosted version.
My verdict: Firecrawl is my go-to for developers building LLM apps, RAG pipelines,s and agents that need clean web content with minimal setup.
Pricing, scale, and lock-in
Prices change too often to list, but the models differ in ways that matter:
- Credit-based APIs (ScrapingBee, WebScrapingAPI, Firecrawl, etc.) all charge you different rates depending on the options you choose. Rendering, premium/residential proxies, and AI extraction are all options that will increase the cost of a request.
- Usage-based platforms such as Bright Data and Apify price by product, volume, or Actor, so estimate cost per successful page, not per request.
- Plan-based services such as Decodo have changed their plan structures over time, so confirm which parameters and limits apply to the plan you buy.
Lock-in is low for simple APIs. Url+params services are all pretty much the same so you can just have a thin adapter to switch providers. It's higher with Apify Actors and prebuilt datasets where your code is tied to a specific scraper and its output format.
If credit multipliers start to dominate your bill on easy targets, another exit route is running your own proxies with a plain HTTP client, for example, through Proxy-Seller (referral code HARSH15).
In general, the more the service does for you, the more you should check about export options and exit costs before you commit.
Production patterns that apply to any scraping API
These patterns wrap whichever service you choose, and they catch most real-world failures.
Detect block pages
A 200 response can still be a CAPTCHA or an access denied page. Always look for the expected content before you go around treating a response as a success.
MARKERS = ("captcha", "access denied", "verify you are human")
def looks_blocked(html: str) -> bool:
text = html.lower()
return len(html) < 500 or any(marker in text for marker in MARKERS)
Retry with exponential backoff.
Retry transient errors and rate limits with growing delays, and stop after a few attempts. Check whether your provider bills failed requests, because retries can cost credits.
import random
import time
import requests
RETRYABLE = {429, 500, 502, 503, 504}
def get_with_retries(url, attempts=4, base=1.0, **kwargs):
for attempt in range(attempts):
response = requests.get(url, timeout=90, **kwargs)
if response.status_code not in RETRYABLE:
return response
time.sleep(base * 2 ** attempt + random.random())
response.raise_for_status()
return response
Cap concurrency at your plan's limit
The majority of services will limit you by plan in terms of the number of concurrent requests you can make. A semaphore will keep you under that limit so that you won't get errors from a burst.
import asyncio
import httpx
LIMIT = 10 # stay at or below your plan's concurrency
async def fetch_all(urls, make_request):
semaphore = asyncio.Semaphore(LIMIT)
async with httpx.AsyncClient(timeout=90) as client:
async def one(url):
async with semaphore:
return await make_request(client, url)
return await asyncio.gather(*(one(u) for u in urls), return_exceptions=True)
Fallback across providers.
Because the simple APIs share a shape, a small adapter lets you try a cheap provider first and escalate to a stronger one only when it fails.
from typing import Callable, Optional
Fetcher = Callable[[str], Optional[str]] # returns HTML, or None on failure
def fetch_with_fallback(url: str, fetchers: list[Fetcher]) -> Optional[str]:
for fetch in fetchers:
try:
html = fetch(url)
except Exception:
html = None
if html and not looks_blocked(html):
return html
return None
Run your own comparison.
The scores in this guide are derived from the documentation, not from your actual targets. You'll need to test it yourself. Write one small function per service that takes a URL as input and returns the HTML. Run those through the same harness, and it will report the success rate, the median and p95 latency, and the effective cost per 1,000 good pages (accounting for failures).
import time
from statistics import median
def benchmark(name, fetch, urls, expected_marker, cost_per_request):
latencies, successes = [], 0
for url in urls:
start = time.perf_counter()
try:
html = fetch(url)
except Exception:
html = ""
latencies.append(time.perf_counter() - start)
if html and expected_marker in html and not looks_blocked(html):
successes += 1
rate = successes / len(urls)
cost_per_1000 = cost_per_request * 1000 / rate if rate else float("inf")
p95 = sorted(latencies)[int(0.95 * (len(latencies) - 1))]
print(
f"{name}: success {rate:.0%}, median {median(latencies):.1f}s, "
f"p95 {p95:.1f}s, about ${cost_per_1000:.2f} per 1,000 good pages"
)
# benchmark("scrapingbee", scrapingbee_fetch, URLS, "Add to cart", 0.0005)
Use at least 50 URLs per target site (including your toughest pages) and run them at various times of day. Block rates are time dependent, target dependent and IP reputation dependent.
What scraping APIs can't replace
A scraping API removes the infrastructure work, but it doesn't remove the responsibility.
-
Rules and permissions still matter: Check the site's terms and
robots.txt, don't collect any personal data that you don't have a right to, and get legal advice if in any doubt. Just because a service can fetch a page doesn't mean you can use the data. - Success rates depend on the target: A service that works a treat on one site can be a total failure on another. You have to test it on the actual pages you're going to be using, not on a demo URL.
- Extraction needs verification: CSS rules will break if the markup changes and AI extraction can misread a field. Outputs must be validated against a schema.
- Cost has to be modeled: Rendering, premium proxies, retries, and AI all eat into your credits. You need to work out your cost per successful page before you start to scale.
Scraping APIs work best when they're doing the fetching, and you're then responsible for what you actually collect, how you use it, and whether it's correct.
Final verdict
No one API works for every project.
- If you're after one flexible endpoint then ScrapingBee is the one to go for.
- If you're up against heavy anti-bot protection at scale then Bright Data is the API for you.
- If you're building with LLMs then Firecrawl is the way to go.
- If there's a ready made scraper available for your target then use Apify.
- If you're after templates on a proxy network then go for Decodo.
- For general purpose rendering with residential proxies, go with WebScrapingAPI.
A scraping API obviously cuts the time between wanting the data and getting it, but the first successful request is only the start. You've got to pick the service whose output, pricing, and failure characteristics still make sense as you scale up and as your targets get more sophisticated.
Frequently asked questions
What is the best web scraping API?
It depends on the job. ScrapingBee is good for simple, flexible single-call scraping. Bright Data is the one for protected sites at scale. Firecrawl is the one for LLM and RAG use cases. Apify is for ready-made scrapers. Decodo and WebScrapingAPI are the ones for general-purpose scraping on proxy networks.
Do I need my own proxies if I use a scraping API?
No, they route the requests through their own proxy pools. You pick a tier (standard, premium, residential, stealth, etc.) rather than having to manage your own IPs.
When should I use a scraping API instead of Playwright or Puppeteer?
Use an API when you're dealing with blocking, proxy management, or scaling issues. Use your own browser automation if you need full control over the interactions and can manage the infrastructure yourself.
Is web scraping legal?
It all depends on the site, the data, and where you are. Check the site's terms and robots.txt. Don't go collecting personal data unless you have a proper legal basis for doing so. If you're doing it for a commercial project or one that involves sensitive data, then you absolutely need to get legal advice.
How do credits work?
The majority of services will charge you a base rate per request and then scale up for things like JS rendering, premium/residential proxies and AI extraction. Always check the current credit table and work out your cost per successful page rather than per request.
Top comments (69)
The line that stuck with me is that the best API is the one whose pricing and failure mode still make sense at 10x your starting volume. Most comparisons stop at “which one worked on my demo URL.”
I also appreciated that you said upfront this is an editorial comparison based on docs, not a controlled benchmark. That’s rare in this category, and the “run your own comparison” harness at the end makes up for it. Measuring cost per 1,000 good pages instead of per request is the right way to compare, since retries and block pages quietly eat credits.
The
looks_blocked()check is a small thing that catches a lot. A 200 response that’s really a CAPTCHA page has burned me before.One thing I’d love to see in a follow-up is how these behave on heavily JS-driven pages with infinite scroll or login walls. ScrapingBee’s
js_scenarioand Bright Data’s Browser API seem like the interesting ones there, and I’m curious whether Firecrawl’s page interaction holds up in practice.Bookmarked the fallback adapter pattern too. Starting cheap and escalating only on failure is a nice way to keep costs predictable.
I’m glad the cost-per-good-page framing was useful. That’s the number that matters in practice, and it’s the one most comparisons skip.
You’re right about the block-page check. A 200 that’s really a CAPTCHA wall is the sneakiest failure because nothing errors out, the bad data just flows downstream.
Your follow-up question is a good one, and I should be upfront that this guide is based on documented capabilities, not hands-on tests of infinite scroll or login flows, so I can’t tell you how Firecrawl’s page interaction holds up there. What the docs suggest:
js_scenariocan scroll, click, fill forms, and wait before capture, so it’s the most direct fit for infinite scroll through a single call.A follow-up focused on JS-heavy and authenticated pages, with real tests on the same URLs across providers, is a great idea. Thanks for the suggestion. Also worth remembering that scraping behind a login often raises extra terms-of-service questions, so check those first.
Your 10x volume point is the one I’d stress too. A tool that’s cheap at 5,000 pages can behave very differently at 500,000, when retries, concurrency limits, and block rates start to dominate the bill.
On JS-heavy and authenticated pages, I agree with the split you described. ScrapingBee’s
js_scenariolooks like the simplest route for infinite scroll, and Bright Data’s Browser API looks stronger for login flows and multi-step sessions. I haven’t tested either on those cases, so I’d rather not claim more than the docs say.A follow-up with real tests on the same JS-heavy URLs across providers is on my list, with the harness extended to cover scroll depth and session handling. I’ll tag you when it’s up.
Thanks, and I'm glad the 10x point resonates. At 500,000 pages, retries, concurrency caps, and block rates are what you end up paying for, so the headline per-request price tells you little.
I'm also glad you're not claiming more than the docs support. The js_scenario versus Browser API split in my post comes from documented capabilities, not from tests, so I'd hold your impressions to the same standard until you've run them.
A few things that might be worth building into the follow-up harness:
Please do tag me when it's up. Real numbers on the same URLs across providers would be more useful than anything in my post.
Those four checks are what I'd build in, and I'd add a layer to each. For scroll depth, I'll log items loaded per scroll step rather than just the final count, since infinite scroll often stalls silently while still returning a 200, and a per-step curve shows where each provider gives up. For session handling, I'll deliberately kill the session mid-run to see whether the provider surfaces an error or quietly returns the login page, which is the same trap as the CAPTCHA 200. I'll define the content marker per target (a selector or a minimum item count) before running anything, so the success rule can't drift after I see results.
For cost per good page, I'll track retries and escalations separately from first-attempt successes, since that split shows whether a cheap tier is actually cheap. I'll also run each URL several times at different hours, because a single pass can flatter a provider that happened to be quiet that day. Thanks for flagging the terms-of-service point too: for the login tests, I'll stick to accounts and sites I own or have explicit permission to scrape. I'll tag you when the follow-up is live.
Thanks for being so straightforward about the limits of the guide. That’s what makes the doc-based comparison trustworthy, and I’d rather read an honest “I haven’t tested this” than a confident claim I can’t verify.
The split you described is useful: ScrapingBee’s js_scenario for scroll-and-capture in a single call, and Bright Data’s Browser API when you need full session control over a login flow. That’s more or less the mental model I was working from, and it’s good to have it stated that clearly.
The ToS point is a fair reminder too. With authenticated scraping, the technical question is often the easy part.
If you do the follow-up, I’d suggest running the same set of URLs through all three with identical success criteria, and reporting cost per good page again, since JS rendering and session handling tend to be where credits get expensive. Looking forward to it.
Glad the "not tested" honesty came across as useful. Your URL-set idea is spot on: same URLs, same success criteria, and cost per good page for all three. I'll use that for the follow-up. 🙌
That’s a useful way to frame it, and it matches how I’d approach the follow-up too.
The distinction between “can do it” and “does it reliably” matters most on infinite scroll and login walls. A single js_scenario call that scrolls is easy to describe in docs, but the real test is how consistently it triggers lazy loading, how it handles rate limits mid-session, and what a partial load looks like when nothing errors out. That’s the same silent-failure problem as the 200 CAPTCHA page, just with half-loaded content.
For the follow-up, I’d measure the same cost per 1,000 good pages metric, but define “good” more strictly for JS-heavy targets, for example by checking that the item count after scrolling meets a minimum threshold. Running identical URLs across providers would make the comparison fair.
Appreciate the thoughtful suggestion. If you have a specific infinite-scroll or authenticated target in mind, I’d be glad to include a similar one in the test set.
Thanks, this is exactly the gap I’d like the follow-up to cover. The post is an editorial comparison built from documented capabilities, not a controlled benchmark, so “can do it” versus “does it reliably” is where a real test would add the most.
I agree on infinite scroll and login walls. A scroll instruction like
js_scenarioorjs_instructionsis easy to describe, but the failure that matters is a partial load that returns a 200 with half the items. It’s the same silent-failure problem as the CAPTCHA page that passes a status check.For the follow-up I’d keep cost per 1,000 good pages as the headline metric, but tighten “good” for JS-heavy targets. Each page would need a minimum item count after scrolling, plus the expected marker and the block-page check from the harness in the post. Every provider would get the same URLs, run at different times of day.
If you have an infinite-scroll or authenticated target in mind, send it over and I’ll consider adding it to the test set.
Thanks for being upfront that this is an editorial comparison and not a controlled benchmark. That framing makes the follow-up more valuable, and the added checks (minimum item count, expected marker, block-page check) are what will make "good page" mean something on JS-heavy targets.
One suggestion for the test set: include a target where the item count is known and fixed, such as a listing with a published total. That lets you score a partial load as a percentage of expected items instead of just pass/fail, which shows how badly each provider degrades under rate limits.
I'll try to think of a good infinite-scroll target and send it over. Looking forward to the follow-up.
Ha, that reads almost exactly like my own reply, so we're clearly aligned on the approach. To make the follow-up concrete: cost per 1,000 good pages stays the headline metric, and "good" for JS-heavy targets means a minimum item count after scrolling, the expected marker, and a pass on the block-page check. Same URLs for every provider, run at different times of day.
The most useful input now would be a real infinite-scroll or login-gated target. If you have one, share the URL or a short description of the page structure and I'll consider adding it to the test set.
connectivity challenges in Shetland’s northernmost islands, Yell and Unst. While Shetland Islands Council had previously developed a fibre network across the mainland, this infrastructure did not extend to the northern isles. The project therefore aimed to extend the Council’s fibre backbone beyond the mainland for the first time, including resilient fibre crossings and island-wide fibre routes.
The project connected 21 public sector sites across the two islands, including schools, health centres, care homes, council depots and ferry terminals. Delivery was completed in 2021.
Although classified by BDUK as a Public Sector Anchor Tenancy(PSAT) project, the delivery model differed from most PSAT schemes. Rather than procuring connectivity services from a telecoms provider, Shetland Islands Council commissioned the construction of new fibre infrastructure directly and retained ownership of the network. The project was delivered by the Council, with in-house services responsible for designing, integrating and operating the infrastructure as part of the wider council-owned fibre network. This involved collaboration between Council services including Economic Development, ICT, Roads and Estate Operations.
Focus of the case study
This case study focuses primarily on the benefits delivered to public sector sites connected through the LFFN-funded North Isles Fibre project. This focus was agreed during an initial scoping discussion with Shetland Islands Council, which confirmed that the main objective of the project was to provide improved connectivity for essential public services on Yell and Unst, rather than to deliver wider strategic or organisational benefits for the Council itself.
The case study therefore concentrates on the impacts for key public services on the islands, particularly schools, local health centres and care homes. These were identified by the Council as the public service facilities that had experienced the most significant benefits from the improved connectivity delivered through the project.
In addition, the case study considers the benefits for two other organisations that are connected to the network: SaxaVord Spaceport and Scottish and Southern Electricity Networks (SSE), the electricity distribution network operator for the north of Scotland. Although these are not public services, they are included because energy networks represent a critical public utility, and SaxaVord has become a strategically important economic asset for Shetland.
The findings presented in this case study are based on interviews with seven stakeholders. These included representatives from Shetland Islands Council (covering economic development, care services and a local primary school), NHS Shetland, SSE and SaxaVord Spaceport.
Shetland Islands Council also identified benefits for a number of other services or organsiations connected through the project, including the council’s ferry operations serving Yell and Unst and a Ministry of Defence site on Unst. It was not possible to arrange interviews with these stakeholders during the research period. Their benefits are therefore described briefly and are based on second-hand accounts provided by other interviewees.
Context
Yell and Unst are the two northernmost inhabited islands in Shetland and, together, form the northernmost inhabited part of the British Isles. The islands are home to small, dispersed communities with a combined population of around 1,500 people, and support a range of local industries including aquaculture, fisheries, agriculture and transportation.
Many services used by residents of Yell and Unst are located on the Shetland Mainland, particularly in Lerwick. Accessing these services typically requires multiple ferry journeys and road travel, meaning that a round trip can take most of a day. Where services are not available i
Transfer requested at 12:07 PM
Feel Good Contacts
Feel Good Contacts left • 12:07 PM
Harsh� P
Harsh� P joined • 12:07 PM
Welcome to Feel Good Contacts! 😊
One of our customer service representatives will be with you shortly…
HP
Good afternoon. Thank you for contacting Feel Good Contacts.
Harsh� P • 12:07 PM
Tconnectivity challenges in Shetland’s northernmost islands, Yell and Unst. While Shetland Islands Council had previously developed a fibre network across the mainland, this infrastructure did not extend to the northern isles. The project therefore aimed to extend the Council’s fibre backbone beyond the mainland for the first time, including resilient fibre crossings and island-wide fibre routes.
The project connected 21 public sector sites across the two islands, including schools, health centres, care homes, council depots and ferry terminals. Delivery was completed in 2021.
Although classified by BDUK as a Public Sector Anchor Tenancy(PSAT) project, the delivery model differed from most PSAT schemes. Rather than procuring connectivity services from a telecoms provider, Shetland Islands Council commissioned the construction of new fibre infrastructure directly and retained ownership of the network. The project was delivered by the Council, with in-house services responsible for designing, integrating and operating the infrastructure as part of the wider council-owned fibre network. This involved collaboration between Council services including Economic Development, ICT, Roads and Estate Operations.
Focus of the case study
This case study focuses primarily on the benefits delivered to public sector sites connected through the LFFN-funded North Isles Fibre project. This focus was agreed during an initial scoping discussion with Shetland Islands Council, which confirmed that the main objective of the project was to provide improved connectivity for essential public services on Yell and Unst, rather than to deliver wider strategic or organisational benefits for the Council itself.
The case study therefore concentrates on the impacts for key public services on the islands, particularly schools, local health centres and care homes. These were identified by the Council as the public service facilities that had experienced the most significant benefits from the improved connectivity delivered through the project.
In addition, the case study considers the benefits for two other organisations that are connected to the network: SaxaVord Spaceport and Scottish and Southern Electricity Networks (SSE), the electricity distribution network operator for the north of Scotland. Although these are not public services, they are included because energy networks represent a critical public utility, and SaxaVord has become a strategically important economic asset for Shetland.
The findings presented in this case study are based on interviews with seven stakeholders. These included representatives from Shetland Islands Council (covering economic development, care services and a local primary school), NHS Shetland, SSE and SaxaVord Spaceport.
Shetland Islands Council also identified benefits for a number of other services or organsiations connected through the project, including the council’s ferry operations serving Yell and Unst and a Ministry of Defence site on Unst. It was not possible to arrange interviews with these stakeholders during the research period. Their benefits are therefore described briefly and are based on second-hand accounts provided by other interviewees.
Context
Yell and Unst are the two northernmost inhabited islands in Shetland and, together, form the northernmost inhabited part of the British Isles. The islands are home to small, dispersed communities with a combined population of around 1,500 people, and support a range of local industries including aquaculture, fisheries, agriculture and transportation.
Many services used by residents of Yell and Unst are located on the Shetland Mainland, particularly in Lerwick. Accessing these services typically requires multiple ferry journeys and road travel, meaning that a round trip can take most of a day. Where services are not available in Lerwick – for example certain specialist health services –
Agent ended the chat at 12:08 PM
Harsh� P
Harsh� P left • 12:08 PM
Today • 12:12 PM
Like they said they asking the counter but they left about 13:08 which we have asked them to comement on facebook they deside not to coment on facebook anymore. Remaber the fireworks where in skelomole
Sent • 12:12 PM
Feel Good Contacts
Feel Good Contacts joined • 12:12 PM
Hi 👋
Feel Good Contacts
Thank you for reaching out. Kindly confirm if you're :
Feel Good Contacts • 12:12 PM
A New customer
An Existing customer
Today • 12:12 PM
A New customer
Sent • 12:12 PM
Welcome to Feel Good Contacts! 😊
One of our customer service representatives will be with you shortly…
Feel Good Contacts
Want to continue?
Feel Good Contacts • 12:12 PM
YES
NO
Today • 12:12 PM
YES
Sent • 12:12 PM
Transfer requested at 12:12 PM
Feel Good Contacts
Feel Good Contacts left • 12:12 PM
Peeyush N
Peeyush N joined • 12:12 PM
Welcome to Feel Good Contacts! 😊
One of our customer service representatives will be with you shortly…
No file chosen
The five-criteria scorecard is useful, but the part I’d screenshot is the “what scraping APIs can’t replace” section. People tend to forget that a service can fetch a page doesn’t mean you’re allowed to use the data. Checking
robots.txtand the site’s terms before you scale is cheap insurance.I also like that the table comparing request styles shows how similar the simple APIs are. That’s what makes the thin-adapter and provider-fallback idea so practical. You can start on the cheapest option and only escalate when a URL actually fails, instead of paying stealth-tier prices for every request.
Two things I’d love to see in a follow-up: a real side-by-side run on the same 50 URLs, using your own benchmark function, with success rate and cost per 1,000 good pages for each tool, and a note on how each one handles pages that need login or heavy scrolling. That’s where I’ve seen most of these services behave very differently.
Glad the “what scraping APIs can’t replace” section landed. You’re right that fetching a page and being allowed to use its data are separate questions, and I’d rather people hit that early than after they’ve built a pipeline on top of it.
You also read the fallback idea the way I meant it. The simple APIs take a URL and a few params and return HTML, so a thin adapter is cheap to write. Start on the cheap tier and escalate only when
looks_blockedfires. For ScrapingBee that’s the difference between paying 5 credits and paying 75 on every request. That’s also why I’d model cost per successful page rather than per request.I should be upfront about the limits of the piece. The scorecard is my editorial read of the documentation, not measured results, and I said so in the article. A real side-by-side on the same 50 URLs is the follow-up I’d most like to write, and the
benchmarkfunction is already there for it. I’d report success rate, median and p95 latency, and cost per 1,000 good pages, since failed requests and retries can eat credits. I’d run it at different times of day, because block rates drift with IP reputation. I’d also include at least one site that’s hostile to scrapers, so the numbers don’t just reflect easy targets.On login-gated pages and heavy scrolling, I only touched on this by listing the relevant parameters
(js_scenarioin ScrapingBee,js_instructionsin WebScrapingAPI, the Browser API in Bright Data) without testing them. That’s a real gap, and I agree it’s where these services diverge most. I’d test three cases:I’d also note which of these are even permitted under a site’s terms, which ties back to your first point.
If you’ve seen specific services fail on login or scroll, I’d like to hear which ones and what the failure looked like. I’ll fold real cases into the follow-up, with credit. Thanks for the thoughtful read.
Thanks for the detailed reply, and for being upfront that the scorecard is an editorial read rather than measured results. That framing makes the follow-up more valuable, not less.
Your test plan covers most of what I’d want. Two additions: log the failure mode for each miss (CAPTCHA page, empty shell, 403, silent partial render), since a “successful” 200 response with missing content is what quietly wrecks cost-per-good-page numbers. And for the scroll and login cases, record how many credits a failed attempt burns, because JS rendering and session handling are usually where credit multipliers kick in.
On the failures I’ve seen: the pattern is mostly on infinite-scroll pages. Services that render JS often return the first viewport only, so the response looks fine but the lazy-loaded items never appear. Login-gated pages tend to fail differently: the request succeeds but returns the login wall, so a
looks_blockedcheck built around status codes won’t catch it. A content-based check (expected selector present, minimum item count) would.Looking forward to the side-by-side run. The same-50-URLs plus one hostile site setup should make the numbers hard to argue with.
Both additions are going into the benchmark design.
Failure modes. I’ll tag every miss with a category: CAPTCHA page, empty shell, 403/429, timeout, or silent partial render. The silent partial render is the one that matters most. A 200 with missing content looks like a success in the logs, so it inflates success rate and understates cost per good page. I’d report the failure breakdown per provider next to the headline numbers.
Credits burned on failures. I hadn’t planned to track this, but I should. JS rendering and session handling are where multipliers kick in, so I’ll log credits consumed per attempt, including failed ones and retries. Then cost per 1,000 good pages will include the money lost on the misses.
Your point about
looks_blockedis a fair correction. Mine was built around status codes and block-page signatures, which is exactly what a login wall or a first-viewport-only render gets past. I’ll switch to a content-based check: an expected selector is present and the item count is above a minimum threshold. For infinite scroll, I’ll compare item counts against a known-good baseline from a real browser session. Otherwise a service returning only the first viewport would pass as fine.Thanks for the specifics on how infinite-scroll and login-gated pages fail. That’s the pattern I’ll look for first, and I’ll credit you in the follow-up.
Thanks for taking the failure modes and the credit tracking on board. I'm glad they're useful.
One more thing worth adding to the content-based check: keep a short "golden snapshot" per target URL, meaning the selector, the minimum item count, and one or two text markers you know should appear (a product title, a price pattern). That also catches the subtler failures, like a page that renders the right structure but serves stale or geo-swapped content, which a plain item-count threshold would miss.
On the benchmark itself, I'd log the region or proxy type used for each run, since results can shift a lot between datacenter and residential IPs and readers will want to know what they're comparing.
Looking forward to the follow-up, and thanks for the credit. The hostile-site case should make for the most interesting section.
Both of these are going into the benchmark design.
Golden snapshots. I'll keep one per target URL: the expected selector, a minimum item count, and one or two text markers such as a product title or a price pattern. You're right that an item-count threshold alone passes a page that has the correct structure but stale or geo-swapped content. The text markers are what catch that. They also give me a cheap way to confirm that every provider was served the same version of the page, so I'm comparing like with like.
Region and proxy type. I'll log the region and proxy type for every run (datacenter, residential, or whatever the provider labels its premium tier) and report them next to the results. Block rates and success rates can swing a lot between those, and a reader comparing two tools should know whether they were run under the same conditions. Where a provider doesn't let me control the IP type, I'll say so rather than assume it.
The hostile-site case is the one I'm most curious about too. Easy targets flatter every tool, so I expect that section to separate them.
Sounds like a solid setup. One last small suggestion: run each target URL more than once per provider, ideally at different times of day. A single pass can hide flaky behavior, and reporting the spread (say, 3 of 5 runs succeeded) is more honest than one pass/fail per URL.
Thanks for the thoughtful back-and-forth. I'll look out for the side-by-side post, and good luck with the hostile-site section.
Good point, and thanks for adding it. Reporting the spread (3 of 5 runs succeeded) says more than a single pass/fail, especially since block rates drift with IP reputation and time of day. It also separates a tool that's consistently decent from one that's brilliant on one run and flaky on the next.
Appreciate the thoughtful exchange, everyone. Looking forward to the side-by-side post.
As a Python dev, the "cost per 1,000 good pages" metric is the one that stuck with me. 💡
One thing I'd add to the production patterns is caching, so you never pay twice for the same page 💸 Credit multipliers (5 → 25 → 75 on ScrapingBee) hurt most when you re-fetch pages that haven't changed. A simple disk cache in front of any provider helps a lot:
Cache the successful HTML only, so a CAPTCHA page never gets stored. 😅 Pair it with the
looks_blocked()check from the post and you're safe.Two other small habits that save me headaches 🐍
📦 Validate extracted data with Pydantic, especially for
ai_queryoutput. It catches shape problems early, and you can add a validator for things likeprice > 0.⚡ Use
httpx.AsyncClientplus a semaphore for bulk runs, as in your concurrency snippet. It's much faster than looping with requests once you pass a few hundred URLs.I'd love to see the follow-up with real benchmark numbers on JS-heavy pages! 🚀
Quick question for everyone: Do you keep one provider as your default, or route per domain? 🤔
Glad the cost-per-good-page framing resonated, and caching is a good addition. Credit multipliers hurt most on repeat fetches of pages that haven't changed.
requests_cacheis a clean way to cut that, and it works the same way across every provider in the post because they all take a URL plus params.One catch:
allowable_codes=(200,)still caches a CAPTCHA page, because a block page often comes back as a 200. That's the same silent failurelooks_blocked()exists for.requests_cachehas afilter_fnhook for this, so the block check decides what gets stored:Now a block page is never written to disk, and the next call goes back to the provider instead of replaying the bad response for an hour. Two smaller notes. The default cache key includes the request params, so a
premium_proxyfetch and a base-tier fetch of the same URL are cached separately. Andexpire_afteris worth tuning per domain, since a product page and a docs page go stale at very different rates.Pydantic validation for
ai_queryoutput is a good call too. It stops a misread price from reaching your database, and aprice > 0validator takes one line. Thehttpx.AsyncClientplus semaphore pattern is the one I'd reach for past a few hundred URLs.To answer your question, I route per domain with one default. ScrapingBee is my general-purpose pick, and I'd remember the cheapest tier that works for each domain so a hostile site doesn't force stealth pricing on easy ones. Bright Data comes in only for domains that keep failing. That's my editorial read from the docs, not benchmark data, and the follow-up should test it. How do you handle it: a hard-coded domain map, or learned from failures?
Thanks, the
filter_fnfix is exactly right. I'd missed that a block page can come back as a 200 and get cached for an hour. I'm adding it to the caching example, and I'll note the per-domainexpire_afterpoint too.On your question: A hard-coded domain map for the known hard sites, plus a failure-driven fallback. A domain starts on the cheapest tier, and
looks_blocked()escalates it to the next tier after repeated failures. I'd then store the tier that worked, so the map ends up learned from failures. Hard-coding alone drifts as sites change their defenses, and learning alone wastes credits on the first few failures.Your ScrapingBee-default, Bright Data-for-hostile-domains split is a good model for the follow-up. I'll benchmark it against real failure rates.
Glad "cost per 1,000 good pages" resonated, it's the number that actually shows up on the invoice.
Great call on caching.
requests_cachewithallowable_codes=(200,)is a clean way to avoid paying twice, and pairing it withlooks_blocked()keeps CAPTCHA pages out of the cache. Pydantic validation forai_queryoutput andhttpx.AsyncClientwith a semaphore are solid additions too. 🐍Benchmarks on JS-heavy pages are on my list for the follow-up! 🚀
To your question: I route per domain. One default provider for easy targets, and a stronger one only for the sites that keep blocking, which keeps costs down. 🤔
Rolling your own with BeautifulSoup is an option as well
Fair point, and for the right targets it's the cheapest option. For static pages with no aggressive bot protection,
requestsplus BeautifulSoup costs next to nothing and gives you full control.One distinction worth making is that BeautifulSoup only parses HTML. It doesn't fetch pages, render JavaScript, rotate proxies, or deal with CAPTCHAs, so the hard part is everything around it. That cost grows with volume: at 100 pages you barely notice it, but at 100,000 you're maintaining proxy pools, retry logic, and headless browsers yourself.
It also isn't either/or. The HTML-out APIs in the post (ScrapingBee, Decodo, WebScrapingAPI) return raw HTML, so you can still parse it with BeautifulSoup and let the API handle fetching, rendering, and blocks. A common middle path is plain
requestsfor easy domains and an API only for the ones that block you, which fits the tier-routing idea from earlier in this thread.I touch on this in the FAQ on APIs versus Playwright or Puppeteer, but I should have said more about the DIY route. Thanks for raising it.
Fair point, and for static pages it’s often the right call. BeautifulSoup plus
requestsis hard to beat when the site serves plain HTML and doesn’t mind bots.Where it stops being enough is that BeautifulSoup only parses HTML. Fetching, JS rendering, proxy rotation, CAPTCHAs and retries are all still on you, so the work moves to the stack around it. That’s the part the APIs in the post take over.
The two also combine well. Most of these APIs return raw HTML, so you can keep your BeautifulSoup parsing code and let the API handle the fetching. That also means switching providers later is easy. Do you run BS4 against JS-heavy sites, or mostly static ones?
Mostly static, to be honest. BS4 is great when the data is already in the initial HTML response. Once a site loads its content through JavaScript, I’d rather not fight it by hand.
For JS-heavy pages, I’d have the API (or a headless browser) render the page first, then run the same BS4 parsing on the returned HTML. That keeps the parsing code identical across both kinds of site, and only the fetch layer changes. It’s also why the HTML-out APIs fit so well with an existing BS4 setup.
Do you run BS4 on JS-heavy targets too, or do you handle those separately?
The real test of the APIS is which one's pricing and failure mode still make sense at 10x volume. That's the line that really cuts it. Most of the other comparisons just stop at' which one works on the demo page”.
I also liked that you made it very clear at the outset that this is an editorial comparison rather than a controlled benchmark. That makes the scorecard a lot more credible. The block/page detection bit is a good one as well in that a 200 response which is in fact a CAPTCHA page is the sort of thing that silently kills a scraped dataset.
The proxy ladder helper (default, then premium, then stealth) is a really good way to keep your credit costs down. One thing I’d add is that when you're moving up the tiers you should log which URLs required which tier. After a week you can then take the known hard domains and just route them straight to the more expensive proxy, thereby eliminating the wasted attempts on the cheaper proxies.
One thing I'm curious about regarding the Firecrawl vs ScrapingBee
ai_querystyle extraction is whether there's much drift on the irregular pages (e.g. a price field occasionally picking up the crossed out old price). I’d like to know if schema validation on its own is sufficient to catch that or whether you actually needed to do some spot checks.Bookmarking this for the “cost per 1,000 good pages” figure on the harness.
Thanks, you picked out the parts I care most about. Most comparisons stop at “does it work on the demo page,” and what matters in practice is whether the pricing and failure behavior still hold up at 10x volume. That’s why I framed the scorecard as an editorial comparison and not a benchmark. I’d rather be upfront about what it can and can’t claim.
Your tier-logging idea is a good addition. Record which URLs needed which tier, then after a week pin the known hard domains straight to the expensive tier. That removes the failed cheap attempts, and those failed attempts are where the credits quietly drain. A per-domain “minimum working tier” map with a periodic re-test, so you can step back down if a site loosens up, would make it even better.
On the
ai_query-style extraction drift: I wouldn’t say schema validation alone is enough. It catches type and shape problems, like a missing field or a string where a number should be. It won’t catch a price field that is valid but wrong, such as the crossed-out old price. For irregular pages I’d add cheap sanity checks on top of the schema: compare the extracted price against a plausible range for that category, flag cases where the “current” price is higher than the “original” one, and spot-check a small random sample by hand each run. The sample is what tells you if drift is creeping in over time.Glad the “cost per 1,000 good pages” figure is useful to you. Counting only pages that pass block detection and validation, rather than all requests sent, is what makes the cost comparison honest.
Appreciate the thorough reply, especially the point about counting only pages that pass block detection and validation. That’s what makes “cost per 1,000 good pages” meaningful, since a cheap request that returns a CAPTCHA is just wasted spend.
The per-domain “minimum working tier” map with periodic re-tests is a nice refinement. I’d add a short TTL on each entry (say 7 to 14 days) so a domain only gets retested occasionally instead of on every run. That keeps the step-down check cheap while still catching sites that loosen their defenses.
On the extraction drift, the sanity checks you listed make sense. One more that has worked for me is a cross-check against a second signal on the page, like the price in the JSON-LD or meta tags, when it exists. If the AI-extracted value and the structured data disagree, flag the page for review. It’s cheap, and it catches the crossed-out price problem without needing a human in the loop every time.
If you ever publish the harness, a small drift log (extracted value vs. spot-checked value per run) would be a great addition to the repo.
Thanks, the TTL is a good call. A 7 to 14 day expiry on each domain entry keeps the step-down check cheap, and it also stops one bad day (a temporary block or an outage) from pinning a domain to the expensive tier for good.
The JSON-LD cross-check is a nice one too. When the AI-extracted price and the structured-data price disagree, that’s a strong signal the extractor grabbed the crossed-out price or some other nearby number. Since it needs no human in the loop, it also keeps the spot-check sample small. I’d only add that JSON-LD can go stale or be wrong on some sites, so I’d treat a mismatch as “flag for review” rather than “trust the structured data”.
A drift log in the repo (extracted value, structured-data value, spot-checked value, per run) is a good idea. It would show whether drift is creeping in over time, which is what a single benchmark run can’t tell you. If I publish the harness, I’ll include it.
Good point on treating a mismatch as "flag for review" and not trusting the JSON-LD blindly. I've seen product feeds where the structured data lags behind a price change by hours, so a disagreement really is just a signal, not a verdict.
One small thing that makes the flag more useful: store which field disagreed and by how much (e.g. extracted 49.00 vs JSON-LD 79.00). A pattern like "extracted is always the lower number" points straight at the crossed-out price problem, while random mismatches point at stale markup. That way the review queue sorts itself.
Looking forward to the harness if you publish it. The "cost per 1,000 good pages" number plus a drift log would make it one of the few scraping comparisons you can actually rerun and trust.
Logging the field and the delta (extracted 49.00 vs JSON-LD 79.00) turns a flag into a diagnosis. "Extracted is always the lower number" is a clear crossed-out-price signature, while scattered mismatches point at stale markup, so the review queue can triage itself.
I'm planning to publish the harness with cost per 1,000 good pages and a drift log built in, so anyone can rerun the comparison. I'll drop a link here when it's up.
The ScrapingBee tier ladder and the
fetch_with_fallbackadapter use two different definitions of success. The ladder infetch()escalates only onstatus_code != 200, so a 200 captcha page at the cheap tier never moves up topremium_proxy.looks_blocked()only runs later, in the provider fallback, which means you skip the cheaper escalation and jump straight to a different vendor. Running the block check inside the ladder loop fixes that.looks_blocked()itself will give false positives on real pages. Substring-matching “captcha” against the full HTML hits any page that embeds reCAPTCHA or hCaptcha scripts, like a login or contact form, andlen(html) < 500hits legitimate small responses. It’s more reliable to check the<title>and visible text, and to pair a block-marker hit with the absence of the expected content.In
benchmark(),cost_per_request * 1000 / rateassumes a flat price per request. With the 5/25/75 credit multipliers the article cites, a page that needed escalation costs several times more than one that didn’t, so the sum of actual credits per attempt gives a different number than the average rate times the success rate. Two smaller things: thep95index usesint(), which rounds down, and on 50 URLs p95 is just the 2nd or 3rd slowest request, so I’d report the max as well.Finally,
FetcherreturnsOptional[str], which throws away the status, vendor, latency, and credits that you’d need to compute any of those numbers later. Returning a small dataclass with those fields keeps the adapter provider-agnostic and the benchmark honest.Ladder vs. fallback.
fetch()defines success asstatus == 200, whilefetch_with_fallbackdefines it as 200 and not blocked. A 200 captcha page at the base tier never reachespremium_proxy. It only gets caught later and sends you to a different vendor, skipping the cheaper escalation. The block check belongs inside the ladder loop.looks_blocked(). Matching “captcha” against the full HTML will fire on any page that embeds reCAPTCHA or hCaptcha scripts, like a login or contact form.
len(html) < 500will also flag legitimately small responses. A more reliable check looks at the<title>and visible text, and only counts a marker hit when the expected content is also missing.benchmark().cost_per_request * 1000 / rateassumes a flat price. With the 5/25/75 multipliers, a page that needed escalation costs several times more than one that didn’t. The honest number is total credits actually spent across all attempts divided by successful pages. On p95,int(0.95 * (len - 1))on 50 URLs lands on index 46, roughly the 4th slowest request, so it’s noisy at that sample size. Reporting the max alongside it is a good call.Optional[str]. Agreed. It discards the status, vendor, latency and credits you’d need to compute any of this later. Here’s a revised sketch:The benchmark can then sum
creditsper URL and divide by the number of successes, and report p95 and max fromlatency_s. The fallback adapter stays provider-agnostic because every fetcher returns the same shape.Thanks for the revision; the FetchResult shape is much better. A few things I'd fix before it goes into the benchmark:
Latency is per tier, not per URL.
latencyis overwritten on every loop iteration, so an escalated request reports only its last tier's time. The p95 and max then understate exactly the requests that cost the most. Accumulate it (total_latency += latency) and return the total, and keep a per-tier breakdown if you want to see where the time goes.An exception loses everything. There's no try/except around
requests.get. A timeout or connection error at any tier raises out of the function, and the credits already spent on earlier tiers never reach the result. It also means r can be undefined at the final return. Withtimeout=90across three tiers, the worst case for one URL is 270 seconds, so catchingrequests.RequestExceptionand recording it as a failed attempt matters here.is_blocked(r.text)can't do the check you described. "Marker hit and expected content missing" needs to know what the expected content is for that URL, and a function that only receives the HTML has no way to know. Something likeis_blocked(url, html), or anexpectselector or string passed per URL, would let the check work.Not every non-200 should escalate. A 5xx or timeout is usually transient and is better handled with one retry at the same tier than by jumping to a 5x or 15x more expensive tier. Escalating makes sense for 403, 429, and 200-with-block-page. Also note that a 404 is a real answer and shouldn't walk the whole ladder.
Small ones:
requests,API, andHEADERSaren't defined in the snippet, and the credits comment about failed calls matters for the benchmark, so it would help to state which statuses ScrapingBee bills in the article.You're right on all of it. Latency should accumulate across tiers with a per-tier breakdown, and
requests.getneeds atry/except RequestExceptionso spent credits still reach the result.is_blockedshould take(url, html)or a per-URL expect string, since the marker check can't work without knowing the expected content. Escalation should only happen on 403, 429, or a 200 block page. 5xx and timeouts get one same-tier retry, and a 404 stops the ladder.I'll add the missing imports and constants, and state in the article which statuses ScrapingBee bills. I'll update the snippet before the benchmark run.
The “Who should pick what” table is the most useful part for me. I’d have saved a lot of time if I’d had it when I started a scraping project last year.
I went the Playwright-plus-my-own-proxies route first and spent more time fighting retries and IP bans than actually working with the data. Moving to an API cut that maintenance a lot, though I did have to get used to paying per request.
Your FAQ answer on APIs vs. Playwright is right, but I’d add one thing. For small, low-volume jobs on friendly sites, plain Playwright or even
requests+ BeautifulSoup is often still the cheapest option. The APIs start to pay off once blocking or scale becomes the real problem.The Firecrawl section also made me curious about the self-hosted version. Has anyone here run it in production? I’d like to know how it compares to the hosted one in output quality and how much effort it takes to maintain.
Bookmarked for the benchmark script alone. Running 50+ URLs per target at different times of day is advice more people should follow.
Thanks, glad the “Who should pick what” table helped! That was the part I most wanted to get right.
Your Playwright-plus-own-proxies experience is common. Retries and IP bans tend to eat the time you meant to spend on the data.
I agree on the small-job point. For low-volume work on friendly sites, plain Playwright or requests + BeautifulSoup is usually the cheapest and simplest option. APIs start to pay off once blocking, scale, or maintenance time costs more than the per-request fees. I’ll add a line about that to the FAQ.
On self-hosted Firecrawl, I only covered the hosted version in the article, so I can’t speak from production experience. As far as I know, the self-hosted build is open source but doesn’t include everything the hosted service uses for harder, bot-protected sites. Expect similar output on simple pages and a gap on heavily protected ones. You also take on the infrastructure work (queues, browser instances, scaling, updates). If anyone here has run it in production, I’d like to hear how it went too.
And thanks for trying the benchmark script. Testing at different times of day makes a big difference, because results can swing a lot between peak and off-peak hours.
The table showing how each tool handles auth, JS rendering and proxy tiers side by side is what I’d actually use when switching providers, because it shows the migration is mostly renaming parameters.
I’m glad the “what scraping APIs can’t replace” section is there. People tend to treat “the API can fetch it” as “I can use it,” and the robots.txt and terms-of-service point deserves more attention than it usually gets in these roundups.
Small suggestion for a follow-up: a real benchmark on the same 50 or so URLs across all six, using your own harness, with success rate and cost per 1,000 good pages in one table. You already wrote the tooling for it, and I think that post would get a lot of discussion.
Also curious which of the six you’d pick for a small side project with a tight budget and mostly static pages. Is JS rendering off by default on ScrapingBee enough to keep costs sane there, or does something else win?
On the table: yes, that was the idea. Once you map auth, JS rendering and proxy tiers, switching is mostly renaming parameters and re-checking how each provider bills them. That billing part is where people get surprised.
I'm glad the "what scraping APIs can't replace" section landed. "The API can fetch it" and "I'm allowed to use it" are very different things, and robots.txt and ToS deserve a check before you build anything on the data.
The benchmark follow-up is a good idea. Same ~50 URLs across all six, with success rate and cost per 1,000 good pages in one table, is a fairer comparison than listing prices. I'll put it on my list, and I'll include a mix of static, JS-heavy and protected pages so the numbers don't flatter any one tool.
For a tight-budget side project with mostly static pages, I'd go with ScrapingBee. One correction on the default, though: JS rendering is on by default there, and it costs more credits per request. You have to pass
render_js=falseto get the cheap rate. For static pages that's the single biggest cost saver, so set it explicitly, and only switch rendering on for the few pages that need it. Add a quick check that the HTML you got back actually contains the data, so you don't pay for empty responses.If you try it, I'd like to hear how it goes.
Thanks for the correction, I had the default backwards. Needing to pass
render_js=falseexplicitly is a good reminder to read the billing defaults before pointing a script at any of these. It's an easy mistake that quietly multiplies your credit usage.Your point about checking that the HTML actually contains the data is the part I'd have skipped. For static pages I'd probably check for one expected selector or string and treat anything else as a failed request, so empty responses never get counted as good pages.
That also makes me more interested in the benchmark, since "cost per 1,000 good pages" only works if everyone defines "good" the same way. If you do it, I'd be curious whether you plan to count retries and empty responses against each provider.
I'll try the budget setup on a small static-page project and report back.
Useful comparison, thanks for testing them side by side. One thing readers often overlook: the cheapest option per request isn't always the cheapest per usable result, so it's worth testing on your own target site before committing.
Thanks for reading! One clarification: this is an editorial comparison based on each provider's documented capabilities, not a side-by-side benchmark on the same pages. That's exactly why I agree with your point. Cost per request and cost per usable result can differ a lot, especially once rendering, premium proxies, and retries kick in. I included a small benchmark harness near the end that reports success rate, p95 latency, and cost per 1,000 good pages, so you can run it against your own target sites before committing.
The three-category split (HTML-out APIs, platforms, AI-native) made the landscape easier to follow than most “top 10 scrapers” lists, which just dump everything into one pile.
The comparison table of request styles, auth, and proxy tiers was my favorite part. It shows how similar the simple APIs really are, so switching providers is less scary than it looks. The thin-adapter-plus-fallback pattern follows from that, and I’m going to try it on a side project.
The ScrapingBee credit multipliers (5 for rendering, 25 for premium proxies, 75 for stealth) are a good reminder to model cost per successful page. A “cheap” plan can get expensive fast on JS-heavy sites.
Two questions:
Thanks for the honest “check current docs” disclaimer too. Pricing in this space changes constantly.
Thanks for the thoughtful read, and I'm glad the three-category split helped. Messy landscapes are easier to compare once you sort them by what each tool hands back.
The thin-adapter-plus-fallback pattern should work well on a side project. Keep the adapter interface small (URL in, HTML or markdown out, plus a status and a cost field) and you can swap providers without touching the rest of your code. And you're right about modeling cost per successful page. With the ScrapingBee multipliers, a plan that looks cheap can turn expensive once you add rendering and premium proxies, so I'd track credits per successful page rather than per request.
On Firecrawl and large docs sites: Credits go up quickly on a crawl. Every page the crawler discovers counts, and docs sites tend to include versioned duplicates, API reference pages, and localized copies you may not need. I'd run a small test crawl first and set a page limit. Include and exclude path patterns also help a lot, so you only pull the sections you actually want. Check their current docs for how credits are counted, since the pricing model has changed before.
On vetting Apify Actors: I check a few things before relying on one:
Even for Actors that pass, I wrap them behind the adapter and keep a fallback. That way an abandoned Actor becomes a swap instead of an outage.
And thanks for noticing the "check current docs" note. Pricing here changes constantly, so I'd rather point people to the source than have them trust a stale number.
Some comments may only be visible to logged-in visitors. Sign in to view all comments.