Integrations
.Manage
on the 2Captcha card.
Save
.
js_instructions
parameter. ZenRows handles all communication between your script and 2Captcha.
The js_instructions
parameter accepts a solve_captcha
option that specifies which CAPTCHA type you want to solve.
ZenRows’s Universal Scraper API supports these CAPTCHA types for 2Captcha integration:
recaptcha
: Google reCAPTCHA series, including invisible CAPTCHAs that don’t require user interaction.cloudflare_turnstile
: Cloudflare Turnstile CAPTCHAs are typically found on forms and interactive elements.js_instructions
in your ZenRows request. In this example, the script waits for 3 seconds, solves the reCAPTCHA challenge using 2Captcha, waits 3 seconds for processing, clicks the submit button, and then waits for the success message to be present:
._successMessage_1ndnh_1
, button[type='submit']
) are specific to the page used in this guide. Selectors may vary across websites. For guidance on customizing selectors, refer to the CSS Extractor documentation. If you’re having trouble, the Advanced CSS Selectors Troubleshooting Guide can help resolve common issues.js_instructions
and css_extractor
:
json_response
parameter is used here for debugging purposes. For production use, you can parse the response.text
with a parser like BeautifulSoup since the request returns the HTML content that was previously locked behind the CAPTCHA.._successMessage_1ndnh_1
, ._alertBody_bl73y_16
) are specific to the page used in this guide. Selectors may vary across websites. For guidance on customizing selectors, refer to the CSS Extractor documentation. If you’re having trouble, the Advanced CSS Selectors Troubleshooting Guide can help resolve common issues.asyncio
:
Why Use 2Captcha With ZenRows?
Does the Universal Scraper API Integration Support All CAPTCHA Types?
Does ZenRows return CAPTCHA tokens?