Proxy

Список всех доступных методов для взаимодействия с API.

POST

Proxy check

/proxy/check

Check proxy

This method allows connect through proxy and check if it's working.

How it works?

It will connect to http://host.stableproxy.com/ip/ through proxy and get IP address, then it will connect to https://ipinfo.io/widget/demo/ip and get location information.

Для этого метода – нужна решенная Captcha!
Некоторые методы нуждаются в капче, для того чтобы ее решить вам нужно создать RecaptchaV3 и вставить ваш секретный ключ в captcha-key, добавить его на свою страницу - пройти ее - и взять ответ из капчи и добавить в параметр g-recaptcha-response.
Создать капчу нужно в панели управления Google Recaptcha.
Также вы можете написать нам в поддержку, и мы сможем выключить капчу для вас на некоторые методы.

Способ запроса

POSThttps://api.stableproxy.com/v2/proxy/check

Параметры запроса

ИдентификаторПравилаПример
protocolrequiredstringin:http, socks5, auto"http"
connect-urlsrequiredarray["md82ldd_0:[email protected]:11001"]
sort-byНе обязательноnullablestringapp\_validators\_ex_in_rule""
sort-orderНе обязательноnullablestringin:asc, desc"asc"
captcha-keyНе обязательноnullablestring"6Le6gTwUAAA ... secret ...tjbYd6IAYN_"
g-recaptcha-responserequiredapp\_rules\_sp_captcha_rule"03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...."
connect-urls.*requiredstring36

Примеры кода

1const baseUrl = "https://api.stableproxy.com/v2";
2const response = await fetch(baseUrl + "/proxy/check", {
3 method: "POST",
4 headers: {
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 "protocol": "\"http\"",
9 "connect-urls": "[\"md82ldd_0:1DjR0xqrlGwh@s-9542.sp4.ovh:11001\"]",
10 "sort-by": "\"\"",
11 "sort-order": "\"asc\"",
12 "captcha-key": "\"6Le6gTwUAAA ... secret ...tjbYd6IAYN_\"",
13 "g-recaptcha-response": "\"03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_....\"",
14 "connect-urls.*": 36
15 })
16});
17const data = await response.json();

Примеры ответов

Success response200application/json
{
  "data": [
    [
      {
        "total_time": 0.29683,
        "connect_time": 0.061185,
        "ip": "45.43.190.148",
        "error": null,
        "auth": true,
        "location": {
          "country_code": "ES",
          "country_name": "Spain",
          "coordinates": {
            "lattitude": "40.4165",
            "longitude": "-3.7026"
          },
          "verified": true
        },
        "protocol": "http"
      }
    ]
  ],
  "good": true,
  "timestamp": 1731317762,
  "cause": {
    "type": "anonymous",
    "user_id": -1
  }
}