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
  }
}