NeuroCaptcha

タスクタイプ

reCAPTCHA v2

RecaptchaV2Task自前プロキシ

reCAPTCHA v2は「私はロボットではありません」チェックボックスと、その非表示版です。APIはgRecaptchaResponseトークンを返すので、ページのフォームと一緒に送信してください。

自前プロキシ:指定したプロキシ経由で解決するため、トークンがお客様のIPと一致します。プロキシの認証情報は解決後に削除されます。

料金

$0.601,000件あたり

1件あたり$0.0006

APIキーを取得

リアルタイムメトリクス(24時間)

このタイプのリアルタイムメトリクスは、ローンチ後にステータスページに表示されます。

タスクパラメータ

パラメータ型必須タスクパラメータ
typestring必須RecaptchaV2Task
websiteURLstring必須CAPTCHAが表示されるページの完全なURL。
websiteKeystring必須サイトキー(data-sitekey、またはanchorリクエストのkパラメータ)。
isInvisibleboolean任意非表示のreCAPTCHA v2(チェックボックスなし)の場合はtrue。
recaptchaDataSValuestring任意ページがdata-sを使用している場合のその値(一部のGoogleサービス)。
userAgentstring任意解決に使うUser-Agent。トークンを送信する際も同じものを使ってください。
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": "RecaptchaV2Task",
        "websiteURL": "https://example.com/login",
        "websiteKey": "6Le-SITE-KEY",
        "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

その他のタスクタイプ