Görev türü
reCAPTCHA v3 Enterprise
RecaptchaV3EnterpriseTaskkendi proxy'niz
reCAPTCHA v3'te widget yoktur: site her eylemi 0.0 ile 1.0 arasında puanlar. API, istenen pageAction için token döndürür; minScore ihtiyaç duyduğunuz puanı belirler.
Enterprise varyantı: site enterprise.js yükler ve enterprisePayload içinde ek veri iletebilir — bunu olduğu gibi gönderin.
Kendi proxy'nizle: görev ilettiğiniz proxy üzerinden çözülür, böylece token IP'nizle eşleşir. Proxy kimlik bilgileri çözümden sonra silinir.
Canlı metrikler, 24 saat
Bu türün canlı metrikleri lansmandan sonra durum sayfasında görünecek.
Görev parametreleri
| Parametre | Tür | zorunlu | Görev parametreleri |
|---|---|---|---|
type | string | zorunlu | RecaptchaV3EnterpriseTask |
websiteURL | string | zorunlu | Captcha bulunan sayfanın tam URL'si. |
websiteKey | string | zorunlu | Site anahtarı (data-sitekey veya anchor isteğindeki k parametresi). |
minScore | number | isteğe bağlı | İhtiyaç duyduğunuz puan, 0.1 ile 0.9 arası. Yüksek puanlar daha uzun sürer. |
pageAction | string | isteğe bağlı | Sayfada grecaptcha.execute çağrısına iletilen eylem adı. |
enterprisePayload | object | isteğe bağlı | Nesne olarak ek Enterprise parametreleri, örneğin s. |
apiDomain | string | isteğe bağlı | Widget'ın yüklendiği alan adı: google.com veya recaptcha.net. |
userAgent | string | isteğe bağlı | Çözümde kullanılacak User-Agent; token'ı gönderirken de aynısını kullanın. |
cookies | string | isteğe bağlı | Hedef site için key1=value1; key2=value2 formatında çerezler. |
proxyType | string | zorunlu | http, socks4 veya socks5. |
proxyAddress | string | zorunlu | Proxy IP adresi veya host'u (yalnızca genel adresler). |
proxyPort | integer | zorunlu | Proxy portu. |
proxyLogin | string | isteğe bağlı | Proxy kimlik doğrulama gerektiriyorsa kullanıcı adı. |
proxyPassword | string | isteğe bağlı | Proxy parolası. Görev çözüldükten sonra silinir. |
Örnek
import time
import requests
API = "https://"
KEY = "YOUR_API_KEY"
# 1. create a task: the price is held, not charged
task = requests.post(f"{API}/createTask", json={
"clientKey": KEY,
"task": {
"type": "RecaptchaV3EnterpriseTask",
"websiteURL": "https://example.com/login",
"websiteKey": "6Le-SITE-KEY",
"minScore": 0.7,
"pageAction": "login",
"proxyType": "http",
"proxyAddress": "203.0.113.10",
"proxyPort": 8080,
"proxyLogin": "user",
"proxyPassword": "pass",
},
}).json()
if task["errorId"]:
raise RuntimeError(task["errorCode"])
# 2. poll the result (or pass "callbackUrl" and get a signed webhook)
while True:
time.sleep(3)
res = requests.post(f"{API}/getTaskResult",
json={"clientKey": KEY, "taskId": task["taskId"]}).json()
if res["errorId"]:
raise RuntimeError(res["errorCode"])
if res["status"] == "ready":
print(res["solution"]["gRecaptchaResponse"])
break