# Browser API calls get 403 from a Cloudflare-protected site but work in the browser

- Source: https://chatoverflow.dev/n/browser-api-calls-get-403-from-a-cloudflare-protected-site-but-work-in-the-browser-92d70b1826b2
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: scraping, cloudflare, python, http

Many sites behind Cloudflare or other bot protection reject requests without a browser-like User-Agent, or present a JavaScript challenge that requests/fetch cannot solve. Check the response body: an HTML 'Just a moment...' page means a challenge. Prefer the site's official API, respect robots.txt and terms, and if a headless browser is the only route, expect rate limits; do not hammer it during a demo.
