Name | Typ | Erforderlich | Beschreibung |
---|---|---|---|
type | Zeichenfolge | Ja | RecaptchaV2EnterpriseTask |
websiteURL | Zeichenfolge | Ja | Vollständige URL der Zielseite zum Laden des Captchas |
websiteKey | Zeichenfolge | Ja | reCAPTCHA-Website-Schlüssel. Dieser befindet sich im data-sitekey-Attribut des reCAPTCHA-Div-Elements oder im k-Parameter einer Anfrage an die reCAPTHCHA-API. |
pageAction | Zeichenfolge | NEIN | Für zusätzliche Parameter können Sie grecaptcha.execute durchsuchen, um die Aktionsparameter zu finden |
enterprisePayload | Objekt | NEIN | s-Parameter in grecaptcha.enterprise.render |
isInvisible | Boolescher Wert | NEIN | Für die unsichtbare Version von reCAPTCHA geben Sie true ein. Das Kontrollkästchen wird nicht angezeigt, aber die Abfrage wird angezeigt. Wird hauptsächlich mit Callback-Funktionen verwendet. |
apiDomain | Zeichenfolge | NEIN | Zum Laden des Captchas verwendeter Domänenname: google.com oder recaptcha.net. Standard: google.com |
proxyType | Zeichenfolge | Ja | Proxy-Typ: „http“, „socks4“, „socks5“. |
proxyAddress | Zeichenfolge | Ja | IP-Adresse oder Hostname des Proxyservers |
proxyPort | Ganze Zahl | Ja | Proxy-Port |
proxyLogin | Zeichenfolge | NEIN | Agenten-Login |
proxyPassword | Zeichenfolge | NEIN | Agentenpasswort |
title | Zeichenfolge | NEIN | der Titel der Recaptcha-Trigger-Seite (drücken Sie F12, um die Konsole zu öffnen, und geben Sie dann document.title ein) |
websiteInfo | Zeichenfolge | NEIN | Detaillierte Informationen zu einer Zielwebsite. Das Tutorial erklärt, wie Sie diese Daten erhalten und Ihren Ansatz optimieren, um die reCAPTCHA-Token-Werte zu verbessern. |
API-Endpunkt: https://api.nextcaptcha.com/createTask
Verfahren: POST
Inhaltstyp: application/json
{
"clientKey":"api key",
"task": {
"type":"RecaptchaV2EnterpriseTaskProxyless",
"websiteURL":"https://www.google.com/recaptcha/api2/demo",
"websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"enterprisePayload": { "s": "eyJ0eXAi..." },
"proxyType":"http",
"proxyAddress":"your_proxy_address",
"proxyPort":1234,
"proxyLogin":"your_proxy_login",
"proxyPassword":"your_proxy_password"
}
}
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq26gJ8Yq3z3Zzv"
},
"createTime": 1701234567890,
"endTime": 1701234567890
}
# https://github.com/nextcaptcha/nextcaptcha-python
import os
import sys
from nextcaptcha import NextCaptchaAPI
client_key = os.getenv('NEXTCAPTCHA_KEY', "YOUR_CLIENT_KEY")
api = NextCaptchaAPI(client_key=client_key)
try:
result = api.recaptchav2enterprise(website_url="https://example.com", website_key="SITE_KEY")
except Exception as e:
sys.exit(e)
else:
sys.exit('solved: ' + str(result))
// https://github.com/nextcaptcha/nextcaptcha-go
package main
import (
"fmt"
"log"
"github.com/nextcaptcha/nextcaptcha-go"
)
func main() {
api := nextcaptcha.NewNextCaptchaAPI("API_KEY")
result, err := api.RecaptchaV2Enterprise("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV3Options{})
if err != nil {
log.Fatal(err);
}
fmt.Println("result "+result)
}
// https://github.com/nextcaptcha/nextcaptcha-csharp
string clientKey = "YOUR_CLIENT_KEY";
string solftId = ""; // Optional
string callbackUrl = ""; // Optional
bool openLog = true; // Optional
var nextCaptchaAPI = new NextCaptchaAPI(clientKey, solftId, callbackUrl, openLog);
string websiteUrl = "https://example.com";
string websiteKey = "YOUR_WEBSITE_KEY";
Dictionary<string, object> enterprisePayload = null; // Optional
bool isInvisible = false; // Optional
string apiDomain = ""; // Optional
var result = await nextCaptchaAPI.SolveRecaptchaV2EnterpriseAsync(websiteUrl, websiteKey, enterprisePayload, isInvisible, apiDomain);