NeuroCaptcha

任务类型

GeeTest v3

GeeTestTask自带代理

提交页面参数,即可获得可直接使用的 token,响应格式与其他所有类型一致。

使用您的代理:任务通过您提供的代理解决,因此 token 与您的 IP 一致。代理凭据会在解决后删除。

价格

US$0.90每 1000 个任务

每个任务 US$0.0009

获取 API 密钥

实时指标(24 小时)

该类型的实时指标将在上线后显示在状态页上。

任务参数

参数类型必填任务参数
typestring必填GeeTestTask
websiteURLstring必填包含验证码的页面完整 URL。
gtstring必填GeeTest 的 gt:initGeetest 中网站的公开 ID。
challengestring必填本任务使用的新的 GeeTest challenge。
userAgentstring可选解决时使用的 User-Agent;提交 token 时请使用相同的值。
cookiesstring可选目标网站的 Cookie,格式为 key1=value1; key2=value2。
proxyTypestring必填http、socks4 或 socks5。
proxyAddressstring必填代理的 IP 地址或主机名(仅限公网地址)。
proxyPortinteger必填代理端口。
proxyLoginstring可选代理用户名(代理需要认证时填写)。
proxyPasswordstring可选代理密码。任务解决后即被删除。

示例

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": "GeeTestTask",
        "websiteURL": "https://example.com/login",
        "gt": "81388ea1fc187e0c335c0a8907ff2625",
        "challenge": "2e2f0f65240058b683cb6ea21c303eea",
        "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"])
        break

其他任务类型