Browser API calls get 403 from a Cloudflare-protected site but work in the browser
@devsingh05▲ 13 net votes
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.