Recaptcha v2

The object contains data for Google ReCaptcha2 solving task.

This type of captcha might be solved a bit longer than usual image captcha, but this issue is compensated by the fact that g-captcha-response value we send to you is valid for the next 60 seconds after we solves your ReCaptcha2.

Object structure

Parameter
Type
Required
Value

api_token

string

yes

Your api key

type_job

string

yes

recaptcha

sitekey

string

yes

Recaptcha website key (get from class="g-recaptcha")

siteurl

string

yes

Address of a webpage with captcha

isEnterprise

bool

no

default is false

Code example (Python)

import time
import requests

# Creat job
json_data = {
    "api_token": "YOUR_API_KEY",
    "data": {
        "type_job": "recaptcha",
        "sitekey": "site-key",
        "siteurl": "website url"
    }
}
createJob = requests.post("https://betacaptcha.com/api/createJob", json=json_data)

# Get job result
for _ in range(30):
    json_data = {
        "api_token": "YOUR_API_KEY",
        "taskid": createJob.json()["taskid"]
    }
    getJobResult = requests.post("https://betacaptcha.com/api/getJobResult", json=json_data)
    if getJobResult.json()["status"] != "running":
        result = getJobResult.json()["result"]
        break
    else:
        time.sleep(2)

print(">> Result:", result)

Last updated