Dev.to
7/21/2026

The original title is "Your scraper probably doesn't need a browser. It needs the right request."
Original: Your scraper probably doesn't need a browser. It needs the right request.
Short summary
Most JavaScript-heavy sites don't need a headless browser for scraping — they need the right API call. Modern sites load HTML shells then fetch JSON via XHR, so you can skip the browser entirely by finding and calling that API directly. The method: inspect the Network tab, find the data endpoint, test with cURL, and check the mobile site for simpler APIs. This approach saves RAM, time, and proxy costs at scale.
- •Skip headless Chrome: find the JSON API the frontend already calls
- •Use devtools Network tab to identify data endpoints, then reproduce with cURL
- •Mobile site APIs are often simpler and less defended than desktop equivalents
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



