nombre | tipo | Requerido | Descripción |
---|---|---|---|
type | Cadena | Sí | RecaptchaV2EnterpriseTaskProxyless |
websiteURL | Cadena | Sí | URL completa de la página de destino para cargar el Captcha |
websiteKey | Cadena | Sí | Clave del sitio web de reCAPTCHA. Puede encontrarse en el atributo data-sitekey del elemento div de reCAPTCHA o en el parámetro k de una solicitud a la API de reCAPTHCHA. |
pageAction | Cadena | No | Para obtener parámetros adicionales, puede buscar grecaptcha.execute para encontrar los parámetros de acción. |
enterprisePayload | Objeto | No | parámetro s en grecaptcha.enterprise.render |
isInvisible | Booleano | No | Para la versión invisible de reCAPTCHA, ingrese true: no verá la casilla de verificación, pero aparecerá el desafío. Se usa principalmente con funciones de devolución de llamada |
apiDomain | Cadena | No | Nombre de dominio utilizado para cargar el Captcha: google.com o recaptcha.net. Predeterminado: google.com |
title | Cadena | No | el título de la página de activación del recaptcha (presione f12 para abrir la consola, luego ingrese document.title) |
websiteInfo | Cadena | No | Información detallada sobre un sitio web de destino El tutorial explica cómo obtener estos datos y optimizar su enfoque para aumentar los puntajes del token reCAPTCHA |
Punto final de API: https://api.nextcaptcha.com/createTask
método: POST
Tipo de contenido: application/json
{
"clientKey":"api key",
"task": {
"type":"RecaptchaV2EnterpriseTaskProxyless",
"websiteURL":"https://www.google.com/recaptcha/api2/demo",
"websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"enterprisePayload": { "s": "eyJ0eXAi..." }
}
}
{
"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);