NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Web scraping

How do I reduce scraping costs at scale?

Most scraping spend comes from four things: requests you did not need, browsers you did not need, bandwidth through paid proxies, and challenges your traffic triggered. Reduce each one at the source.

The answer

Costs grow with the number of fetches, the weight of each fetch, and the work needed to get past checks. So the biggest savings come from not fetching (caching, change detection, smarter scheduling), then fetching lighter (APIs instead of rendered pages, blocked assets, compression), then getting blocked less (good pacing and IP choice, which reduces both proxy waste and CAPTCHA solves). Measure cost per site first, because one or two targets usually account for most of the bill.

Fetch less

  • Schedule by change rate. Pages that change daily do not need hourly fetches. Track how often each page's data really changes and set its interval from that.
  • Send conditional requests. Send If-None-Match or If-Modified-Since when the site provides ETag or Last-Modified headers; a 304 reply costs almost nothing.
  • Use sitemaps and feeds. Sitemaps with lastmod dates tell you which pages changed without visiting them.
  • Read list pages, not detail pages. Category pages often contain price and stock for dozens of items at once.

Fetch lighter

A headless browser can cost many times more than an HTTP request in CPU, memory and bandwidth. Look for the site's JSON endpoints or embedded state before rendering, as shown in scraping JavaScript-heavy sites. When you must render, block images, media and fonts, reuse browser instances, and close pages promptly. For HTTP clients, accept gzip or brotli encoding, which cuts transfer on text-heavy pages substantially.

Spend less on proxies

Residential and mobile proxies are often billed per gigabyte, so every unnecessary image or script you download through them costs money. Route only the requests that need a residential IP through those proxies; static assets, sitemaps and permissive endpoints can go through cheaper datacenter IPs or directly. Measure bytes per successful page per site, and investigate outliers. The page on proxy setups for large-scale scraping discusses splitting traffic this way.

Trigger fewer challenges

Every CAPTCHA you see is a sign your traffic looked risky. Reducing the trigger rate saves solve costs and the time each solve adds:

  • Keep request rates per IP modest and spread over time.
  • Keep sessions sticky where a flow spans several pages, so one solve covers many requests.
  • Reuse clearance cookies (such as cf_clearance or aws-waf-token) until they expire, with the same user agent and IP that earned them.
  • Send consistent, realistic headers and fingerprints.

The question on seeing fewer CAPTCHAs goes into detail.

Make solving efficient when you need it

With GateSolver you pay only for solved tasks, at the moment they are solved, priced per 1,000 by type; failed, unsolvable and expired tasks cost nothing. A few habits keep that spend tight:

  • Solve just in time. Create the task right before you need the token. Pre-solved tokens that expire unused are wasted, since they were solved and charged.
  • Pick the right type. A Turnstile widget needs a token task at $0.84 per 1,000, while a full challenge page needs a Cloudflare Challenge task. Sending the cheaper type to the wrong widget wastes time on rejections.
  • Get parameters right the first time. Wrong site keys or missing actions produce tokens the site rejects. Rejected tokens were still solved, so they are charged.
  • Track cost per site. The cost field in each result lets you attribute spend exactly.

See pricing for current rates, and the article on CAPTCHA solving costs at scale for budgeting.

Cut compute waste

Async HTTP clients handle many requests per core; size worker counts to keep CPUs busy without overloading memory. Run parsers on stored raw pages in batch rather than inline if fetching is the bottleneck. Turn off workers when queues are empty instead of keeping them idle.

Know when to stop scraping

Sometimes the cheapest option is an official API, a data feed or a licensed dataset. If a target needs a browser, a residential proxy and a solve for every page, compare that cost with buying access. The comparison of scraping and official APIs helps frame the decision.

Common questions

What usually costs the most in a scraping operation?

It varies, but browser rendering and per-gigabyte proxy bandwidth are common leaders, followed by challenge solving on protected sites.

Are failed CAPTCHA tasks charged?

No. GateSolver charges only solved tasks; failed, unsolvable and expired tasks are free.

Is it cheaper to solve CAPTCHAs in advance?

No. Tokens expire within minutes, and every solved token is charged whether you use it or not.

How do conditional requests save money?

A 304 Not Modified reply has no body, so you skip both transfer and parsing for unchanged pages.

Should all traffic go through residential proxies?

No. Route only the requests that need them, and send assets and permissive endpoints through cheaper paths.

Keep reading