nome | tipo | Necessario | Descrizione |
---|---|---|---|
type | Corda | SÌ | RecaptchaV2TaskProxyless |
websiteURL | Corda | SÌ | URL completo della pagina di destinazione per il caricamento del Captcha |
websiteKey | Corda | SÌ | Chiave del sito web reCAPTCHA. Può essere trovata nell'attributo data-sitekey dell'elemento div reCAPTCHA o nel parametro k di una richiesta all'API reCAPTCHA. |
recaptchaDataSValue | Corda | NO | Il valore del parametro data-s. Potrebbe essere necessario bypassare il Captcha su Google Service |
isInvisible | Booleano | NO | Per la versione invisibile di reCAPTCHA, passa true: non vedrai la casella di controllo, ma la sfida apparirà. Utilizzato principalmente con funzioni di callback |
apiDomain | Corda | NO | Nome di dominio utilizzato per caricare Captcha: google.com o recaptcha.net. Predefinito: google.com |
websiteInfo | Corda | NO | Informazioni dettagliate su un sito web di destinazione il tutorial spiega come ottenere questi dati e ottimizzare il tuo approccio per aumentare i punteggi dei token reCAPTCHA |
Punto finale dell'API: https://api.nextcaptcha.com/createTask
metodo: POST
Tipo di contenuto: application/json
{
"clientKey":"api key",
"task": {
"type":"RecaptchaV2TaskProxyless",
"websiteURL":"https://www.google.com/recaptcha/api2/demo",
"websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
}
{
"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.recaptchav2(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() {
client := nextcaptcha.NewNextCaptchaAPI("API_KEY")
result, err := client.RecaptchaV2("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV2Options{})
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";
string recaptchaDataSValue = ""; // Optional
bool isInvisible = false; // Optional
string apiDomain = ""; // Optional
var result = await nextCaptchaAPI.SolveRecaptchaV2Async(websiteUrl, websiteKey, recaptchaDataSValue, isInvisible, apiDomain);