Captcha
Список всіх публично доступних методів для взаємодії з API.
POST
Captcha demo protected -/captcha/demo-protected
Метод запита
POSThttps://api.stableproxy.com/v2/captcha/demo-protected
Параметри запиту
| Ідентифікатор | Правила | Приклад |
|---|---|---|
| captcha-keyНе обов'язково | nullablestring | "6Le6gTwUAAA ... secret ...tjbYd6IAYN_" |
| g-recaptcha-response | requiredapp\_rules\_sp_captcha_rule | "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...." |
Приклади коду
JavaScript
async function postCaptchaDemoProtected() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/captcha/demo-protected', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"captcha-key": "6Le6gTwUAAA ... secret ...tjbYd6IAYN_",
"g-recaptcha-response": "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...."
}),
}
);
const res = await req.json();
}