The first version of a scraper is the easy part. An HTTP request, one CSS selector, and the data lands in a spreadsheet before lunch.
Month three is where it gets expensive. The target ships a redesign and the selector matches nothing. A page that used to return HTML now returns an empty shell and a JavaScript bundle. The IP that worked for six weeks starts collecting 429s. Nobody budgeted for any of that, and now an engineer spends Tuesday mornings repairing a crawler instead of using the data it collects.
That is the real question behind web scraping API vs custom scraper. Both approaches extract data. The difference is which one costs less over a year, which one breaks less often, and which one survives a tenfold jump in volume. This guide compares them on those three terms, with a cost model you can rerun with your own numbers, a comparison table, and working code for both.
TL;DR
- A custom scraper gives you total control, and with it ownership of proxies, browsers, CAPTCHAs, retries, queues and selector repairs.
- A web scraping API puts that infrastructure behind one endpoint. You pay per request instead of in engineering hours.
- At low and medium volume the API is almost always cheaper, because engineering time dominates the DIY bill. The curve can flip at very high volume against simple targets.
- Reliability is where the gap is widest, and maintenance is the cost teams estimate worst.
- Neither approach is block-proof, and neither removes your obligation to scrape legally.
- A hybrid split, DIY for easy high-volume targets and an API for protected ones, is usually the right answer for a real target list.
What Is the Difference Between a Web Scraping API and a Custom Scraper?
A custom scraper is software you build, host and maintain, and in production it is rarely one script. It is an HTTP client or a headless browser, a proxy pool, a CAPTCHA solving service, retry logic with back-off, a scheduler, a queue, storage, and monitoring that tells you when extraction has quietly started returning nulls. You control every layer, and you own every failure.
A web scraping API collapses that stack into one endpoint. You send a URL and some options, and the provider handles rendering, proxy rotation, challenge solving and retries, then returns HTML, Markdown or parsed JSON.
The distinction matters because scraping projects almost never fail at extraction. Parsing HTML is a solved problem. They fail at the layers around it: getting the real page, getting it without being blocked, and noticing when neither happened. Our guide to why scrapers break covers those failure modes in detail.

Web Scraping Costs: Where the Money Actually Goes
Teams compare a subscription price against a server bill. That comparison leaves out the largest line item.
The costs you can see
- Compute. A Chromium instance holds several hundred megabytes of RAM under a real page load, so concurrency is capped by hardware long before it is capped by code.
- Proxies. Residential and mobile IPs are billed by bandwidth or by port, and this is the line that grows fastest with volume. Mobile proxies in particular are priced for the situations that justify them.
- CAPTCHA solving, storage and queues. Per-challenge fees from a third party, plus the infrastructure any scheduled job needs.
The costs that never make the estimate
- Build time. A scraper that renders, rotates, retries and reports is not a weekend.
- Maintenance. Every layout change is a ticket, and selectors break quietly rather than loudly.
- Silent failure. A scraper returning empty fields for a week is worse than one that crashes: nothing alerts you, and the rows still get written.
A worked model
Assume 130,000 requests a month, engineering at 55 euros an hour, 60 hours to get version one into production amortised over twelve months, and eight hours of maintenance a month. On the API side, ScrapeUnblocker's Pro plan is 99 euros a month (excl. VAT) and includes 132,000 requests.
| Monthly cost | Custom scraper | Web scraping API |
|---|---|---|
| Build, 60 hrs at 55 euros, over 12 months | 275 euros | excluded |
| Maintenance, 8 hrs at 55 euros | 440 euros | excluded |
| Proxies | 250 euros | included |
| CAPTCHA solving | 50 euros | included |
| Servers and storage | 100 euros | included |
| Plan fee | none | 99 euros |
| Total | 1,115 euros | 99 euros |
This comparison excludes API integration time and any maintenance that stays on your side, such as retry logic, response validation and alerting. Both are usually small next to the DIY costs above, but they are not zero.

ScrapeUnblocker's published plans, captured December 2026. The Pro tier used in the model above is 99 euros a month (excl. VAT) for 132,000 requests at 100 concurrent requests.
The DIY figures are assumptions, so swap in your own rates. The structure is the point: 64 percent of the custom-scraper bill is engineering time, not infrastructure.
That is also why the two lines converge more slowly than people expect. Doubling volume roughly doubles proxy spend but barely moves maintenance hours, so the DIY cost per request falls while the API's stays flat. The crossover sits somewhere in the millions of requests a month against stable targets. Below that, you are paying a salary to avoid a subscription.

Illustrative estimate of monthly web scraping cost for a custom scraper versus an API as volume grows, showing where the lines may cross.
Reliability: Why Custom Scrapers Decay
A scraper that worked in January can return empty rows in March without one line of your code changing. The target changed instead.
Layout drift
A renamed CSS class breaks extraction without raising an error. The selector returns null, the field becomes an empty string, and the row is still written. Unless you validate that a price looks like a price, you hear about it from whoever uses the data.
Client-side rendering
A plain HTTP request to a React or Vue page gets the shell, not the content. The fix is a headless browser, which costs roughly an order of magnitude more per page in time and memory.
IP reputation
Volume from one address earns rate limits and bans, usually surfacing as an HTTP 429 Too Many Requests. Rotation helps, and session handling matters more than teams expect: whether an IP stays with a session for a whole journey changes your success rate on any site that tracks behaviour across requests, which is why sticky sessions are a design decision rather than a toggle.
Fingerprinting and challenges
Bots now account for 53 percent of web traffic, with 40 percent classed as malicious, according to the 2026 Imperva Bad Bot Report. Detection has moved on accordingly. It reads canvas and WebGL output, font lists, timing and TLS handshake order, so browser fingerprinting identifies automation that looks perfectly normal at the HTTP level, and interstitials such as Cloudflare Turnstile now sit in front of a growing share of commercially interesting pages.
Each of these is solvable. The problem is that they have to be solved continuously, per target, indefinitely.
What a managed API changes
Rendering, rotation, retries and challenge handling become a vendor's full-time job, informed by failures across thousands of targets rather than only yours.
Billing models differ, and that matters more than the headline price. Some providers charge extra credits for JavaScript rendering or protected domains, which makes a per-request estimate meaningless until you know your mix of pages. ScrapeUnblocker, for example, charges one credit per request regardless of the URL and does not bill blocks, timeouts or its own errors, though it does bill a 404, a 410 or an unresolvable hostname. Confirm this in any provider's terms before you model costs.
An API raises your success rate. It does not guarantee it. Behavioural detection still ends sessions, and validation, retry policy and alerting stay on your side, because the only thing worse than a failed request is one you recorded as a success.
Scalable Web Scraping: From 1,000 to 1,000,000 Pages
Prototypes hide scaling problems. Scalable web scraping means the system keeps returning accurate data, at a predictable cost, as volume grows by orders of magnitude. Run a custom scraper up that curve and things break in roughly this order.
- Browser capacity. Memory, not CPU, sets the concurrency ceiling. Fifty parallel Chromium instances is a hardware decision.
- Proxy pool health. Higher volume burns IPs faster, and degraded proxies lower your success rate without raising error counts. If the target serves different content by country, geographic routing becomes architecture rather than a flag, as this walkthrough of a geo-aware crawler in Python shows.
- Retry logic. Without exponential back-off and de-duplication, retries amplify load during exactly the incident that caused them.
- Observability. At a million pages you need per-domain success rates, latency and cost per field extracted. Logs are not enough, because the failure that costs you money is the one that returns HTTP 200.
With a managed API, scaling is mostly concurrency and budget. Plans cap parallel requests: ScrapeUnblocker allows 20 concurrent on pay-as-you-go, 100 on Pro and 400 on Ultimate, and a request over the cap returns a 429 that is not billed. You still need your own queue and back-off, but the browsers and the proxy pool are someone else's capacity problem. The trade-off is that cost scales linearly with usage, which is predictable rather than cheap.
Web Scraping API vs Custom Scraper: Comparison at a Glance
| Factor | Custom scraper | Web scraping API |
|---|---|---|
| Upfront cost | High: build time and infrastructure | Low: sign up, call an endpoint |
| Ongoing cost | Engineering hours, proxies, servers | Usage-based fees |
| Time to first clean result | Days to weeks | Minutes to hours |
| Maintenance burden | High and continuous | Low: the provider absorbs it |
| JavaScript rendering | You run and scale the browsers | Built in |
| Proxy rotation | You buy and manage the pool | Handled by the provider |
| CAPTCHA handling | A third-party solver you integrate | Typically built in |
| Control and customisation | Total | Limited to what the API exposes |
| Scaling limit | Your hardware and your team | Plan tier and concurrency cap |
| Cost at very high volume | Can be lower per request | Predictable, but may be higher |
| Fails when | Nobody is watching it | The target beats the provider |
| Best for | Stable targets, huge volumes, unusual workflows | Fast delivery, mixed or protected targets, small teams |
Practical Examples: The Same Job, Both Ways
The task: pull a product title and price from a JavaScript-rendered page, reliably enough to run on a schedule.
Example 1: a custom scraper with Playwright
// scrape-custom.js
import { chromium } from "playwright";
const PROXIES = (process.env.PROXY_LIST ?? "").split(",").filter(Boolean);
if (!PROXIES.length) throw new Error("PROXY_LIST is not set");
let cursor = 0;
function nextProxy() {
// Round-robin is the floor, not the goal. A real pool tracks per-IP
// success rates and retires addresses once they start failing.
cursor = (cursor + 1) % PROXIES.length;
return PROXIES[cursor];
}
export async function scrapeProduct(url, attempt = 1) {
const browser = await chromium.launch({
proxy: { server: nextProxy() },
});
try {
const page = await browser.newPage();
// Images and fonts are most of the page weight and none of the data.
await page.route("**/*.{png,jpg,jpeg,webp,svg,woff2}", (r) => r.abort());
const response = await page.goto(url, {
waitUntil: "domcontentloaded",
timeout: 30000,
});
if ([403, 429, 503].includes(response.status())) {
throw new Error(`Blocked with ${response.status()}`);
}
await page.waitForSelector(".product-price", { timeout: 10000 });
const data = {
title: (await page.textContent("h1.product-title"))?.trim(),
price: (await page.textContent(".product-price"))?.trim(),
};
// Without this guard, a renamed class writes empty rows for weeks.
if (!data.title || !/\d/.test(data.price ?? "")) {
throw new Error("Nothing usable extracted; selectors may have changed");
}
return data;
} catch (error) {
if (attempt >= 3) throw error;
await new Promise((r) => setTimeout(r, 2 ** attempt * 1000));
return scrapeProduct(url, attempt + 1);
} finally {
await browser.close();
}
}
That is the honest minimum for one target, built on Playwright. It is still missing a scheduler, a queue, a concurrency limiter, CAPTCHA handling, per-proxy health tracking, and an alert for when that last error starts firing in volume. Each of those is a component you write, deploy and keep alive.
Example 2: the same job through a web scraping API
// scrape-api.js
// POST /getPageSource, authenticated with the x-scrapeunblocker-key header.
import * as cheerio from "cheerio";
const API_KEY = process.env.SCRAPEUNBLOCKER_KEY;
if (!API_KEY) throw new Error("SCRAPEUNBLOCKER_KEY is not set");
// 429: over the plan's concurrency cap. 503: no render capacity.
// 504: timeout. 523: origin unreachable. None of these are billed.
const RETRYABLE = [429, 503, 504, 523];
export async function scrapeProduct(url, attempt = 1) {
const endpoint =
"https://api.scrapeunblocker.com/getPageSource" +
`?url=${encodeURIComponent(url)}`;
const response = await fetch(endpoint, {
method: "POST",
headers: { "x-scrapeunblocker-key": API_KEY },
});
// Transient and unbilled, so back off and retry.
if (RETRYABLE.includes(response.status)) {
if (attempt >= 3) {
throw new Error(`Retries exhausted (${response.status})`);
}
await new Promise((r) => setTimeout(r, 2 ** attempt * 1000));
return scrapeProduct(url, attempt + 1);
}
if (!response.ok) {
// Read the body: one status code covers several different failures.
throw new Error(
`Scrape failed (${response.status}): ${await response.text()}`
);
}
const $ = cheerio.load(await response.text());
const data = {
title: $("h1.product-title").text().trim(),
price: $(".product-price").text().trim(),
};
if (!data.title || !/\d/.test(data.price)) {
throw new Error("Nothing usable extracted; selectors may have changed");
}
return data;
}
Rendering and rotation are gone from the code because they are gone from your responsibility. What remains is what you always own: a retry path, and a check that the data looks like data.
Two parameters are worth knowing. Adding parsed_data=true returns structured JSON instead of HTML where the page exposes structured data, which can replace the selector step, though you should still validate what comes back. Adding markdown=true returns the rendered page as Markdown, the format you want when the output feeds an LLM pipeline rather than a database.
Example 3: the hybrid approach
Consider a hypothetical price-monitoring team that tracks 50,000 product pages across 30 retailers. Twenty-two of those retailers are server-rendered and barely change, so a lightweight in-house crawler handles roughly 80 percent of the volume in this scenario at near-zero marginal cost. The remaining eight are protected marketplaces where staying ahead of the defences would cost more in engineering time than a year of API fees, so those go through an API.
Engineering effort goes where it earns, and per-request fees are paid where DIY would be a maintenance sink. Many mature setups end up looking like this once the team sorts its real target list into two piles.

When to Build and When to Buy
Build your own scraper if
- Your targets are few, stable and server-rendered.
- Your volume is high and predictable enough that per-request fees would dominate the bill.
- You need behaviour no API exposes, such as long authenticated multi-step sessions.
- You have engineers whose time is genuinely free, not borrowed from the roadmap.
Use a web scraping API if
- You need reliable data this week.
- Your targets are varied, protected, or change often.
- Your team is small and scraping is a means to an end rather than the product.
- You would rather have a budget line than a staffing decision.
Go hybrid if
- Your target list mixes easy and hard sites, as in Example 3. Most real lists do.
One test cuts through the rest: if scraping is not your product, do not build scraping infrastructure. Build the thing the data was for.
Scraping Responsibly: The Part Both Approaches Share
Choosing an API does not move your legal obligations to the provider. Whichever route you take:
- Check robots.txt. A voluntary standard, formalised in RFC 9309, telling crawlers which paths a site would rather they left alone. Google's introduction is a clear primer.
- Read the terms of service. Many sites restrict automated access contractually, whatever robots.txt permits.
- Mind personal data. Names, emails and profiles bring obligations under GDPR and similar regimes, and "it was publicly visible" is not a lawful basis on its own.
- Set your own rate. The speed your provider allows is not the speed the target can comfortably absorb.
This is general information, not legal advice. If you are scraping at scale or collecting personal data, talk to a lawyer.
FAQ
Is a web scraping API cheaper than building your own scraper?
At low to medium volume, usually yes: it removes build time, maintenance, proxy and CAPTCHA costs in one line item. At very high volume against simple targets, a well-run custom scraper can cost less per request. Rerun the model above with your own numbers, because the answer turns on your hourly rate more than on the plan price.
What is the main advantage of a web scraping API?
Reliability without the maintenance burden. Rendering, proxy rotation and challenge handling are maintained by a team that sees failures across thousands of targets, so your engineers spend their time on the data rather than the plumbing.
When should I build a custom scraper instead?
When your targets are few and stable, your volume is very large and predictable, or you need logic no API exposes, such as a long authenticated session across several pages.
Can a web scraping API get blocked?
Yes. It cuts blocking substantially, but fingerprinting and behavioural detection can still flag a session. Validate every response and keep a retry path, whichever route you take.
Is web scraping legal?
Scraping publicly available data is widely practised, but you remain bound by site terms, robots.txt conventions and applicable law, particularly around copyright and personal data. Rules vary by country and by use case, so take legal advice for anything sensitive.
What is scalable web scraping?
A setup that keeps delivering accurate data at a predictable cost as volume grows from thousands to millions of pages. It depends on proxy management, concurrency control, retries with back-off and real monitoring, whether you build those yourself or buy them.
Where to Start
Pick one target you already care about and run it both ways for a week. Build the simplest Playwright version, send the same pages through an API, and compare three numbers: time to first clean result, success rate over seven days, and the hours you spent. Those figures settle the argument faster than any pricing page.
If the API side wins, ScrapeUnblocker gives you 500 requests free on signup with no card required, which is enough to run the comparison properly.
