ประเภทงาน
reCAPTCHA v2
RecaptchaV2TaskProxylessไม่ใช้พร็อกซี
reCAPTCHA v2 คือช่องทำเครื่องหมาย “ฉันไม่ใช่โปรแกรมอัตโนมัติ” และรูปแบบที่มองไม่เห็น API จะส่งคืนโทเค็น gRecaptchaResponse ที่คุณส่งไปพร้อมฟอร์มของหน้าเว็บ
ไม่ใช้พร็อกซี: เราแก้จากโครงสร้างพื้นฐานของเราเอง เหมาะที่สุดเมื่อเว็บไซต์เป้าหมายไม่ผูกโทเค็นกับ IP
เมตริกแบบเรียลไทม์ (24 ชม.)
เมตริกแบบเรียลไทม์ของประเภทนี้จะแสดงบนหน้าสถานะหลังเปิดตัว
พารามิเตอร์ของงาน
| พารามิเตอร์ | ชนิด | จำเป็น | พารามิเตอร์ของงาน |
|---|---|---|---|
type | string | จำเป็น | RecaptchaV2TaskProxyless |
websiteURL | string | จำเป็น | URL เต็มของหน้าที่มีแคปต์ชา |
websiteKey | string | จำเป็น | คีย์ของเว็บไซต์ (data-sitekey หรือพารามิเตอร์ k ของคำขอ anchor) |
isInvisible | boolean | ไม่บังคับ | true สำหรับ reCAPTCHA v2 แบบมองไม่เห็น (ไม่มีช่องทำเครื่องหมาย) |
recaptchaDataSValue | string | ไม่บังคับ | ค่า data-s หากหน้าเว็บใช้ (บริการบางตัวของ Google) |
userAgent | string | ไม่บังคับ | User-Agent ที่ใช้แก้ และใช้ค่าเดียวกันเมื่อส่งโทเค็น |
cookies | string | ไม่บังคับ | คุกกี้ของเว็บไซต์เป้าหมายในรูปแบบ key1=value1; key2=value2 |
ตัวอย่าง
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": "RecaptchaV2TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "6Le-SITE-KEY",
},
}).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
ประเภทงานอื่น
- reCAPTCHA v2
RecaptchaV2TaskUS$0.60 - reCAPTCHA v2 Enterprise
RecaptchaV2EnterpriseTaskProxylessUS$1.50 - reCAPTCHA v2 Enterprise
RecaptchaV2EnterpriseTaskUS$1.50 - reCAPTCHA v3
RecaptchaV3TaskProxylessUS$0.90 - reCAPTCHA v3 Enterprise
RecaptchaV3EnterpriseTaskProxylessUS$2.00 - reCAPTCHA v3 Enterprise
RecaptchaV3EnterpriseTaskUS$2.00