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();
}