browser_detect_captcha

Summary: Browser Detect CaptchaPOST /api/execute/browser_detect_captcha

Executes fast, non-visual DOM and script heuristics to determine whether the loaded document presents an anti-bot verification challenge. Rather than invoking heavy vision models, the detector scans frame URLs, script sources, shadow roots, widget container attributes, and known global variables associated with reCAPTCHA, Cloudflare Turnstile, H-Type CAPTCHA, and custom challenge forms. Because analysis operates purely on structural DOM markers and frame trees in memory, detection finishes in milliseconds with negligible CPU cost. The response supplies a boolean presence flag, a normalized confidence score between zero and one, and matched indicator metadata explaining which heuristic triggered. Workflows run this lightweight check after navigation to branch conditionally into challenge mitigation only when an obstacle actually blocks access to protected target content.

Parameters

NameTypeRequiredDescription
context_idstringyesSession handle whose DOM tree and embedded frames will be scanned for challenge markers.

Usage

result = await browser.detect_captcha(context_id=context_id)

See Also