Web scraping
CAPTCHAs in e-commerce scraping
Online stores defend different pages for different reasons, so a catalogue crawl and a daily price check meet different challenges. Designing the two jobs separately keeps CAPTCHAs rare and cheap to handle.
Why stores challenge crawlers
Retailers face a lot of automated traffic, and much of it is hostile: inventory hoarding bots, card testing on checkout, fake account creation and price scraping by aggressive competitors that slows the site down. Their protection layers are tuned for those threats and do not always distinguish them from a well-behaved monitor. Understanding where the store applies pressure helps you stay out of the way.
Price and availability monitoring for price intelligence, catalogue research, MAP compliance checks and marketplace audits are legitimate and common. They only need public product information, and they are the uses this article has in mind.
Where CAPTCHAs appear on a store
- Search and filter pages. Search is expensive for the store's back end and is a favorite target of bots, so it is often challenged first.
- Deep pagination. Category pages beyond the first few are rarely visited by people. Page 80 of a category at machine speed stands out.
- Product detail pages at volume. Single pages are usually fine; thousands per hour from one address are not.
- Stock and price APIs. Internal endpoints that return availability per store or per size are popular with resale bots and often protected harder than pages.
- Account, cart and checkout. Login, sign-up and checkout carry the strictest checks because fraud concentrates there. Monitoring public prices should not need these at all.
Across large stores you will meet Cloudflare Turnstile, full Cloudflare check pages, AWS WAF, DataDome Slider and reCAPTCHA in its several forms. Identify the vendor before writing code; each needs a different task type and a different way of using the answer.
Two jobs, two designs
The catalogue crawl
A catalogue crawl discovers products: it walks categories, follows pagination and records product URLs and stable attributes like brand, title and identifiers. It is broad, happens rarely, and touches many pages once.
- Start from sitemaps. Most stores publish product sitemaps with modification dates. They give you the URL list without walking category pages at all.
- Crawl slowly and widely. Spread the crawl over hours or days with a low per-host rate. Speed matters little for data that changes weekly.
- Prefer structured data. Product pages often embed structured data in JSON-LD with name, price, availability and identifiers. Parsing it is more stable than parsing layout.
- Cache aggressively. Store raw pages so attribute extraction can be rerun without another crawl.
The price and stock check
A price check revisits known product URLs on a schedule to read the current price and availability. It is narrow, frequent and time sensitive.
- Visit only what changes. Check high-priority products often and the long tail less often.
- Use the lightest endpoint. If the product page loads price from a small JSON call, request that call directly with the right cookies instead of rendering the whole page.
- Match the region. Prices, taxes and stock depend on location. Use an address and locale in the target market, and set the store's own region or postcode selection when it has one.
- Keep sessions short and consistent. One address, one user agent and one cookie jar per session, retired after a modest number of products.
Handling challenges inside each job
For a catalogue crawl, a challenge is usually a signal to slow down. Solve it to continue, but reduce the per-host rate for the rest of the run. For a price check, the deadline matters more, so solving promptly keeps the data fresh; still, track the challenge rate and adjust pacing between runs.
The mechanics depend on the challenge:
- Turnstile or reCAPTCHA widgets on a search or product page: create a token task with the page URL and site key, then submit the token with the request the page would send.
- Cloudflare check pages: use an Cloudflare Challenge task with your proxy, then send every later request with the returned
cf_clearancecookie, the same user agent and the same address. - AWS WAF: solve with an AWS WAF task and set the returned value as the
aws-waf-tokencookie before retrying. - DataDome slider: pass the blocked URL and the slider page URL with your proxy, and use the returned cookie from the same address and user agent.
Clearance cookies last for a while, so one solve can cover many product pages within a session. That makes cookie-based challenges cheaper per page than they first appear, provided the session stays on one address.
Cost per tracked product
Express CAPTCHA cost per product per month rather than per solve. Measure how many solves a typical run needs, divide by the products it covers, and multiply by the price per 1,000 for that challenge type, such as $0.84 for Cloudflare check pages or $1.40 for AWS WAF. Because only solved tasks are charged, the number tracks real challenges, not attempts. If the cost per product climbs, it usually means sessions are too short, addresses are flagged, or the pace crept up. The cost guide has the full method.
Variants, sizes and hidden prices
Product pages often show one default price while variants such as size, color or pack quantity carry their own. The variant data usually sits in a JSON object embedded in the page or in a small call made when a visitor picks an option. Read that object instead of clicking through every variant in a browser; it saves dozens of requests per product and the CAPTCHAs that come with them. Some stores also show a price only after a region or postcode is set, or only inside the cart. Set the region through the store's own selector once per session, and leave products with cart-only prices out of scope unless you are testing your own store.
Data quality traps
Stores sometimes serve degraded pages to suspected bots: prices removed, stock shown as unavailable, or a generic layout. That is worse than a CAPTCHA, because your data looks plausible but is wrong. Guard against it:
- Compare a sample of scraped prices against a manual check from a normal browser now and then.
- Alert when a large share of products suddenly goes out of stock or loses prices in one run.
- Record which address and session produced each record, so you can discard data from a flagged session.
Stay out of the fraud lanes
Stores fight inventory hoarding, card testing and account abuse, and those uses are forbidden on GateSolver. Keep monitoring jobs away from carts, checkout and account pages unless you are testing your own store. Public product data, collected at a pace that does not burden the site, is all a price intelligence project needs.
Common questions
Which store pages are most likely to show a CAPTCHA?
Search results, deep category pagination, stock APIs and anything around login and checkout. Product pages at a moderate pace are usually the least challenged.
How can I collect product URLs without crawling categories?
Read the store's product sitemaps. They list URLs, often with modification dates, so you can fetch only new or changed products.
Does one Cloudflare clearance cover many product pages?
Yes, within a session on the same address and user agent. That is why keeping sessions consistent lowers the cost per product.
Why do my scraped prices sometimes look wrong?
Some stores serve altered pages to suspected bots. Spot check against a normal browser and alert on sudden mass changes in a run.
Should price monitoring ever touch the checkout?
No. Public product pages contain the data you need. Cart and checkout automation on stores you do not own belongs to the fraud patterns stores block.
Keep reading
- Price monitoringTracking public prices across many shops on a schedule, matching the same product between them and spotting changes.
- Competitive intelligenceCollecting public information about competitors, such as prices, catalog changes and ads, and turning it into decisions.
- Solving CAPTCHAs in web scraping pipelinesAn architecture for scrapers that meet CAPTCHAs: detect challenges as their own outcome, solve in a separate stage, retry with clear limits.
- DataDome Slider solver$1.75 per 1,000 tasks, answers under 10 seconds.