nom | taper | Requis | Description |
---|---|---|---|
type | Chaîne | Oui | RecaptchaV2EnterpriseTask |
websiteURL | Chaîne | Oui | URL complète de la page cible pour le chargement du Captcha |
websiteKey | Chaîne | Oui | Clé du site Web reCAPTCHA. Vous pouvez la trouver dans l'attribut data-sitekey de l'élément div reCAPTCHA ou dans le paramètre k d'une requête à l'API reCAPTHCHA. |
pageAction | Chaîne | Non | Pour des paramètres supplémentaires, vous pouvez rechercher grecaptcha.execute pour trouver les paramètres d'action |
enterprisePayload | Objet | Non | paramètre s dans grecaptcha.enterprise.render |
isInvisible | Booléen | Non | Pour la version invisible de reCAPTCHA, passez true - vous ne verrez pas la case à cocher, mais le défi apparaîtra. Principalement utilisé avec les fonctions de rappel |
apiDomain | Chaîne | Non | Nom de domaine utilisé pour charger le Captcha : google.com ou recaptcha.net. Par défaut : google.com |
proxyType | Chaîne | Oui | Type de proxy : `http`, `socks4`, `socks5` |
proxyAddress | Chaîne | Oui | Adresse IP ou nom d'hôte du serveur proxy |
proxyPort | Entier | Oui | port proxy |
proxyLogin | Chaîne | Non | Connexion de l'agent |
proxyPassword | Chaîne | Non | Mot de passe de l'agent |
title | Chaîne | Non | le titre de la page de déclenchement du recaptcha (appuyez sur f12 pour ouvrir la console, puis entrez document.title) |
websiteInfo | Chaîne | Non | Informations détaillées sur un site Web cible le didacticiel explique comment obtenir ces données et optimiser votre approche pour augmenter les scores des jetons reCAPTCHA |
Point de terminaison de l'API: https://api.nextcaptcha.com/createTask
méthode: POST
Type de contenu: 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);