Recaptcha v3
The object contains data for Google ReCaptcha3 solving task
ReCaptcha3, unlike ReCaptcha2, does not require any action from the site visitor, it works invisibly in the background of the page, collecting and analyzing data about the user to determine whether he is a human or a bot. Based on this analytics, the site receives a trust rating (from 0.1 to 0.9).
Object structure
Parameter
Type
Required
Value
api_token
string
yes
Your api key
type_job
string
yes
recaptcha_v3
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
minScore
decimal
no
value from 0.1-0.9
pageAction
string
no
Your actions on this site are by default "verify"
Code example (Python)
import time
import requests
# Creat job
json_data = {
"api_token": "YOUR_API_KEY",
"data": {
"type_job": "recaptcha_v3",
"sitekey": "site-key",
"siteurl": "website url",
"isEnterprise" : False,
"minScore" : 0.7,
"pageAction": "verify"
}
}
createJob = requests.post("https://betacaptcha.com/api/createJob", json=json_data)
# Get job result
for _ in range(10):
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(1)
print(">> Result:", result)
Last updated