Proxies

A list of all publicly available methods for interacting with the API.

GET

Proxies list -/package/proxy-list/{id}

Query method

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

Query parameters

IdentifierRegulationsExample
with-hiddenNot necessarilynullableex-booleanfalse
countriesNot necessarilynullablearray{"UA": 10, "PL": 20}
searchNot necessarilynullablestring49
per-pageNot necessarilynullableinteger40
pageNot necessarilynullableinteger94
sort-byNot necessarilynullablestringapp\_validators\_ex_in_rule""
sort-orderNot necessarilynullablestringin:asc, desc"asc"
countries.*Not necessarilydistinctstringcountry_code{"UA": 10, "PL": 20}
id1required97

Code examples

1async function getPackageProxyList() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy-list/{id}'
4      .replace("{id}", 97) + '?' + Object.entries({
5         "with-hidden": false,
6         "countries[UA]": 10,
7         "countries[PL]": 20,
8         "search": 49,
9         "per-page": 40,
10         "page": 94,
11         "sort-by": "",
12         "sort-order": "asc",
13         "countries.*[UA]": 10,
14         "countries.*[PL]": 20
15      }).map(([key, value]) => key + "=" + value).join('&'), {
16         method: 'GET',
17         headers: {
18            'Authorization': 'API-Token [YOUR TOKEN]',
19            'Content-Type': 'application/json'
20         }
21      }
22   );
23   
24   const res = await req.json();
25}

Examples of answers

GET

Get available country cities -/package/proxy/{id}/cities

Query method

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

Query parameters

IdentifierRegulationsExample
regionsNot necessarilyarraydistinct[]
countrystringrequiredcountry_code""
regions.*Not necessarilystring""
id1required93

Code examples

1async function getPackageProxyCities() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy/{id}/cities'
4      .replace("{id}", 93) + '?' + Object.entries({
5         "regions": [],
6         "country": "",
7         "regions.*": ""
8      }).map(([key, value]) => key + "=" + value).join('&'), {
9         method: 'GET',
10         headers: {
11            'Authorization': 'API-Token [YOUR TOKEN]',
12            'Content-Type': 'application/json'
13         }
14      }
15   );
16   
17   const res = await req.json();
18}

Examples of answers

GET

Get available country regions -/package/proxy/{id}/regions

Query method

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

Query parameters

IdentifierRegulationsExample
countrystringrequiredcountry_code""
id1required16

Code examples

1async function getPackageProxyRegions() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy/{id}/regions'
4      .replace("{id}", 16) + '?' + Object.entries({
5         "country": ""
6      }).map(([key, value]) => key + "=" + value).join('&'), {
7         method: 'GET',
8         headers: {
9            'Authorization': 'API-Token [YOUR TOKEN]',
10            'Content-Type': 'application/json'
11         }
12      }
13   );
14   
15   const res = await req.json();
16}

Examples of answers

GET

Get proxy -/package/proxy/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
id1required56
proxyIndex1required46

Code examples

1async function getPackageProxy() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy/{id}/{proxyIndex}'
4      .replace("{id}", 56)
5      .replace("{proxyIndex}", 46), {
6         method: 'GET',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         }
11      }
12   );
13   
14   const res = await req.json();
15}

Examples of answers

PUT

Hide proxy -/package/hide/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
id1required58
proxyIndex1required72

Code examples

1async function putPackageHide() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/hide/{id}/{proxyIndex}'
4      .replace("{id}", 58)
5      .replace("{proxyIndex}", 72), {
6         method: 'PUT',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         }
11      }
12   );
13   
14   const res = await req.json();
15}

Examples of answers

GET

Get note -/package/note/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
noteNot necessarilynullablestring98
id1required6
proxyIndex1required95

Code examples

1async function getPackageNote() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/note/{id}/{proxyIndex}'
4      .replace("{id}", 6)
5      .replace("{proxyIndex}", 95) + '?' + Object.entries({
6         "note": 98
7      }).map(([key, value]) => key + "=" + value).join('&'), {
8         method: 'GET',
9         headers: {
10            'Authorization': 'API-Token [YOUR TOKEN]',
11            'Content-Type': 'application/json'
12         }
13      }
14   );
15   
16   const res = await req.json();
17}

Examples of answers

PUT

Change note -/package/note/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
noteNot necessarilynullablestring98
id1required6
proxyIndex1required95

Code examples

1async function putPackageNote() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/note/{id}/{proxyIndex}'
4      .replace("{id}", 6)
5      .replace("{proxyIndex}", 95), {
6         method: 'PUT',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         },
11         body: JSON.stringify({
12            "note": 98
13         }),
14      }
15   );
16   
17   const res = await req.json();
18}

Examples of answers

GETPUT

Rotate proxy -/package/proxy-rotate/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
id1required82
proxyIndex1required72

Code examples

1async function getPackageProxyRotate() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy-rotate/{id}/{proxyIndex}'
4      .replace("{id}", 82)
5      .replace("{proxyIndex}", 72), {
6         method: 'GET',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         }
11      }
12   );
13   
14   const res = await req.json();
15}

Examples of answers

POST

Add proxy -/package/proxy/{id}

Query method

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

Query parameters

IdentifierRegulationsExample
fixedrequiredex-booleanfalse
intervalrequiredinteger49
countrequiredinteger30
countriesNot necessarilynullablearray{"UA": 10, "PL": 20}
countries.*Not necessarilydistinctstringcountry_code{"UA": 10, "PL": 20}
id1required99

Code examples

1async function postPackageProxy() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy/{id}'
4      .replace("{id}", 99), {
5         method: 'POST',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         },
10         body: JSON.stringify({
11            "fixed": false,
12            "interval": 49,
13            "count": 30,
14            "countries": {"UA": 10, "PL": 20},
15            "countries.*": {"UA": 10, "PL": 20}
16         }),
17      }
18   );
19   
20   const res = await req.json();
21}

Examples of answers

DELETE

Remove proxy -/package/proxy/{id}/{proxyIndex}

Query method

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

Query parameters

IdentifierRegulationsExample
id1required56
proxyIndex1required46

Code examples

1async function deletePackageProxy() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/proxy/{id}/{proxyIndex}'
4      .replace("{id}", 56)
5      .replace("{proxyIndex}", 46), {
6         method: 'DELETE',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         }
11      }
12   );
13   
14   const res = await req.json();
15}

Examples of answers

PUT

Replace proxies -/package/replace/{id}/{type}

Query method

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

Query parameters

IdentifierRegulationsExample
type1in:non-workingrequired"non-working"
id1required56

Code examples

1async function putPackageReplace() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/replace/{id}/{type}'
4      .replace("{id}", 56)
5      .replace("{type}", "non-working"), {
6         method: 'PUT',
7         headers: {
8            'Authorization': 'API-Token [YOUR TOKEN]',
9            'Content-Type': 'application/json'
10         }
11      }
12   );
13   
14   const res = await req.json();
15}

Examples of answers

StableProxy

StableProxy

© StableProxy – 2021 - 2025 – Ukraine

Payment methods