#Google reCAPTCHA V2

Examples of reCAPTCHA V2
Examples of reCAPTCHA V2


reCAPTCHA V2 Widget looks like the following:

reCAPTCHA V2 Widget
reCAPTCHA V2 Widget

If you see this widget on the webpage you wish to bypass, you are on the correct page. Keep on reading!


#Submit the CAPTCHA to NopeCHA

API Endpoint
POST https://api.nopecha.com/token/
ParameterTypeRequiredDescription
keyStringRequiredNopeCHA subscription key.
typeStringRequiredrecaptcha2
sitekeyStringRequiredreCAPTCHA data-sitekey.
urlStringRequiredURL where the reCAPTCHA is found.
enterpriseBooleanOptionaltrue if reCAPTCHA is an enterprise version.
dataDictOptionalExtra parameters used to solve the challenge. See reCAPTCHA enterprise for more information.
proxyDictOptionalThe proxy used to solve the challenge. See using proxies for formatting guide.
cookieArray of DictOptionalCookies used to solve the challenge. See using cookies for formatting guide.
useragentStringOptionalThe user-agent used to solve the challenge. A user-agent of a modern browser is required.
Request Example
{ 'key': 'MY_NOPECHA_KEY', 'type': 'recaptcha2', 'sitekey': '6Ld8NA8jAAAAAPJ_ahIPVIMc0C4q58rntFkopFiA', 'url': 'https://nopecha.com/demo/recaptcha#easy' }
Reponse Example
Retrieve solution with the data value
{ 'data': 'PHN2ZyB3aWR0aD0' }

#Get the token from NopeCHA

API Endpoint
GET https://api.nopecha.com/token/
Parameter Type Required Value
keyStringNopeCHA subscription key.
idStringThe value of data from POST response.
Request Example
{ 'key': 'MY_NOPECHA_KEY', 'id': 'PHN2ZyB3aWR0aD0' }
Response Example
AI has generated the token
AI has not yet generated the token
{ 'data': '03AEkXODDX8VLP-TmomOFDLEd33JLQDrVqb4Lb1lMeuvlCUjrYzIasAk-YQ...' }
{ 'error': 14, 'message': 'Incomplete job' }

#Example code using client libraries

# Install the client using the following command: # pip install --upgrade nopecha import nopecha nopecha.api_key = 'YOUR_API_KEY' # Call the Token API token = nopecha.Token.solve( type='recaptcha2', sitekey='6Ld8NA8jAAAAAPJ_ahIPVIMc0C4q58rntFkopFiA', url='https://nopecha.com/demo/recaptcha#easy' ) # Print the token print(token)