Skip to content

Choosing an engine and a proxy

The same website can be cheap to scrape or almost impossible, depending on two choices: the engine (/scrape or /scrape-js) and the proxy pool. This is how we make those choices. The matrix on the home page replays one such run.

Send one request with /scrape and read the response before writing any extractor:

  • Status and size. A 403 of a few KB, or a 200 that is much smaller than the real page, is a block.
  • Protection vendor, from headers, cookies and the body:
Vendor Markers
Cloudflare server: cloudflare, cf-ray; body “Just a moment…” or “Attention Required”
Akamai Bot Manager cookies _abck, bm_sz; body “Oops! Something went wrong” or a behavioral challenge
PerimeterX cookies _px3, _pxvid; “Press & Hold” captcha
DataDome cookie datadome; iframe from captcha-delivery.com
DDoS-Guard server: ddos-guard, cookies __ddg1_, __ddg2_
  • Where the data is. Many sites put it into the HTML as JSON (__NEXT_DATA__, ng-state). Then you need no JS rendering. Also check the Network tab in Chrome DevTools: a hidden JSON API is often cheaper than pages (video).

Run every engine on every proxy pool you can use, 10 pages per combination, not 1. Protections often let the first pages through and block later: with PerimeterX, a stock browser got a captcha from page 5.

Count a page as good only if it has the content you need. Look for a string that is always on a real page, and pass the strings of the block page to textNotExpected so that ScrapeNinja retries them (API reference).

  • Keep the combinations that pass at least 90 % of pages.
  • Compare the cost per 1,000 pages with content, not per request. A route that is twice as cheap but fails half of the time costs the same and is slower.
  • Among close prices, take the faster one. Our default: the fastest route that costs at most 25 % more than the cheapest one.
  • Cookies. Some protections (DDoS-Guard, Akamai, DataDome) set a cookie after a check. Reusing it with the same IP saves challenges; it needs a sticky proxy session.
  • Captcha. Avoid it rather than solve it: a cleaner IP or a less detectable browser usually removes it.
  • Hidden API. If the site has one, test it as a separate “page” in the matrix.
  • The site. The same job costs very different money on different sites: an unprotected page goes through /scrape and a datacenter proxy for cents per 1,000 pages, a page behind Cloudflare or DataDome may need a real browser and residential traffic and cost tens of times more.
  • Pages per site. A challenge, a captcha or a warm-up is paid per session, and its cost is spread over the pages that follow. 1,000 pages from one site pay for it a few times; 10 pages from 10 different protected sites pay for it 10 times, plus a probe for each site. Small jobs on many protected sites are the most expensive per page.
  • Page weight. A browser also downloads scripts, images and fonts. On residential proxies, billed per GB, that traffic is often most of the bill.

Our lab tests hundreds of sites through many proxy vendors. Below is one run from 2026-11-27 on a sample of 7 sites, one per protection type (1152 page loads); it matches what we see on the rest:

  • No protection, DDoS-Guard: /scrape with datacenter proxies passes. The cheapest route; a browser only adds cost.
  • PerimeterX: the IP decides. /scrape with premium residential proxies passed 9 of 9 pages; with datacenter proxies 0–1 of 9, and browsers did not help.
  • Cloudflare managed challenge: the browser decides. /scrape and /scrape-js stayed on the challenge with every proxy; a browser without automation leaks and with a real window passed, even on datacenter IPs.
  • DataDome: only that browser with one sticky session passed: the first page is a device check, later pages are fine.
  • Akamai: nothing passed that day, although the same site had passed in the morning. Akamai remembers IPs; such sites need fresh IPs and slow, warm sessions.

The “stealth” browser in the matrix is our lab engine, not a public API option yet. Contact us if your target needs it.

  • Engine: /scrape (fast, Chrome TLS fingerprint, no JS) or /scrape-js (real browser).
  • Proxy: geo for the built-in rotating pools, or proxy with premium residential or datacenter proxies (proxy setup).
  • Retries: retryNum, textNotExpected, statusNotExpected.