Możesz przeczytać notatkę dla pełnomocnika.

Lista wszystkich publicznie dostępnych metod interakcji z API.

GET

Pakiet pełnomocnictw -/package/proxy-list/{id}

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/proxy-list/{id}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
with-hiddenNie koniecznienullableex-booleanfalse
countriesNie koniecznienullablearray{"UA": 10, "PL": 20}
searchNie koniecznienullablestring49
per-pageNie koniecznienullableinteger40
pageNie koniecznienullableinteger94
sort-byNie koniecznienullablestringapp\_validators\_ex_in_rule""
sort-orderNie koniecznienullablestringin:asc, desc"asc"
countries.*Nie konieczniedistinctstringcountry_code{"UA": 10, "PL": 20}
id1required97

Przykłady kodu

async function getPackageProxyList() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy-list/{id}'
      .replace("{id}", 97) + '?' + Object.entries({
         "with-hidden": false,
         "countries[UA]": 10,
         "countries[PL]": 20,
         "search": 49,
         "per-page": 40,
         "page": 94,
         "sort-by": "",
         "sort-order": "asc",
         "countries.*[UA]": 10,
         "countries.*[PL]": 20
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

GET

Pakiet pełnomocnictw -/package/proxy/{id}/cities

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/cities

Parametry zapytania

IdentyfikatorRegulaminPrzykład
regionsNie konieczniearraydistinct[]
countrystringrequiredcountry_code""
regions.*Nie konieczniestring""
id1required93

Przykłady kodu

async function getPackageProxyCities() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy/{id}/cities'
      .replace("{id}", 93) + '?' + Object.entries({
         "regions": [],
         "country": "",
         "regions.*": ""
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

GET

Pakiet pełnomocnictw -/package/proxy/{id}/regions

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/regions

Parametry zapytania

IdentyfikatorRegulaminPrzykład
countrystringrequiredcountry_code""
id1required16

Przykłady kodu

async function getPackageProxyRegions() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy/{id}/regions'
      .replace("{id}", 16) + '?' + Object.entries({
         "country": ""
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

GET

Pakiet pełnomocnictw -/package/proxy/{id}/{proxyIndex}

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
id1required56
proxyIndex1required46

Przykłady kodu

async function getPackageProxy() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy/{id}/{proxyIndex}'
      .replace("{id}", 56)
      .replace("{proxyIndex}", 46), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

PUT

Pakiet pełnomocnictw -/package/hide/{id}/{proxyIndex}

Metoda zapytania

PUThttp://apilocal.stableproxy.com/v2/package/hide/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
id1required58
proxyIndex1required72

Przykłady kodu

async function putPackageHide() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/hide/{id}/{proxyIndex}'
      .replace("{id}", 58)
      .replace("{proxyIndex}", 72), {
         method: 'PUT',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

GET

Pakiet pełnomocnictw -/package/note/{id}/{proxyIndex}

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/note/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
noteNie koniecznienullablestring98
id1required6
proxyIndex1required95

Przykłady kodu

async function getPackageNote() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/note/{id}/{proxyIndex}'
      .replace("{id}", 6)
      .replace("{proxyIndex}", 95) + '?' + Object.entries({
         "note": 98
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

PUT

Pakiet pełnomocnictw -/package/note/{id}/{proxyIndex}

Metoda zapytania

PUThttp://apilocal.stableproxy.com/v2/package/note/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
noteNie koniecznienullablestring98
id1required6
proxyIndex1required95

Przykłady kodu

async function putPackageNote() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/note/{id}/{proxyIndex}'
      .replace("{id}", 6)
      .replace("{proxyIndex}", 95), {
         method: 'PUT',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         },
         body: JSON.stringify({
            "note": 98
         }),
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

GETPUT

Pakiet pełnomocnictw -/package/proxy-rotate/{id}/{proxyIndex}

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/package/proxy-rotate/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
id1required82
proxyIndex1required72

Przykłady kodu

async function getPackageProxyRotate() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy-rotate/{id}/{proxyIndex}'
      .replace("{id}", 82)
      .replace("{proxyIndex}", 72), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

POST

Pakiet pełnomocnictw -/package/proxy/{id}

Metoda zapytania

POSThttp://apilocal.stableproxy.com/v2/package/proxy/{id}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
fixedrequiredex-booleanfalse
intervalrequiredinteger49
countrequiredinteger30
countriesNie koniecznienullablearray{"UA": 10, "PL": 20}
countries.*Nie konieczniedistinctstringcountry_code{"UA": 10, "PL": 20}
id1required99

Przykłady kodu

async function postPackageProxy() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy/{id}'
      .replace("{id}", 99), {
         method: 'POST',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         },
         body: JSON.stringify({
            "fixed": false,
            "interval": 49,
            "count": 30,
            "countries": {"UA": 10, "PL": 20},
            "countries.*": {"UA": 10, "PL": 20}
         }),
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

DELETE

Usuń pakiet proxy Proxies -/package/proxy/{id}/{proxyIndex}

Metoda zapytania

DELETEhttp://apilocal.stableproxy.com/v2/package/proxy/{id}/{proxyIndex}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
id1required56
proxyIndex1required46

Przykłady kodu

async function deletePackageProxy() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/proxy/{id}/{proxyIndex}'
      .replace("{id}", 56)
      .replace("{proxyIndex}", 46), {
         method: 'DELETE',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi

PUT

Pakiet pełnomocnictw -/package/replace/{id}/{type}

Metoda zapytania

PUThttp://apilocal.stableproxy.com/v2/package/replace/{id}/{type}

Parametry zapytania

IdentyfikatorRegulaminPrzykład
type1in:non-workingrequired"non-working"
id1required56

Przykłady kodu

async function putPackageReplace() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/replace/{id}/{type}'
      .replace("{id}", 56)
      .replace("{type}", "non-working"), {
         method: 'PUT',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Przykłady odpowiedzi