Proxies Package
A list of all publicly available methods for interacting with the API.
Proxies list -/package/proxy-list/{id}
Query method
GEThttp://apilocal.stableproxy.com/v2/package/proxy-list/{id}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| with-hiddenNot necessarily | nullableex-boolean | false |
| countriesNot necessarily | nullablearray | {"UA": 10, "PL": 20} |
| searchNot necessarily | nullablestring | 49 |
| per-pageNot necessarily | nullableinteger | 40 |
| pageNot necessarily | nullableinteger | 94 |
| sort-byNot necessarily | nullablestringapp\_validators\_ex_in_rule | "" |
| sort-orderNot necessarily | nullablestringin:asc, desc | "asc" |
| countries.*Not necessarily | distinctstringcountry_code | {"UA": 10, "PL": 20} |
| id | 1required | 97 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Get available country cities Get available city in residential country or regions -/package/proxy/{id}/cities
Query method
GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/cities
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| regionsNot necessarily | arraydistinct | [] |
| country | stringrequiredcountry_code | "" |
| regions.*Not necessarily | string | "" |
| id | 1required | 93 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Get available country regions Get available regions in residential country -/package/proxy/{id}/regions
Query method
GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/regions
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| country | stringrequiredcountry_code | "" |
| id | 1required | 16 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Get proxy Get proxy bfrom list by index. -/package/proxy/{id}/{proxyIndex}
Query method
GEThttp://apilocal.stableproxy.com/v2/package/proxy/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 56 |
| proxyIndex | 1required | 46 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Hide proxy Hide selected proxy from list (but it will work, only visual)) -/package/hide/{id}/{proxyIndex}
Query method
PUThttp://apilocal.stableproxy.com/v2/package/hide/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 58 |
| proxyIndex | 1required | 72 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Get note You can read note for proxy. -/package/note/{id}/{proxyIndex}
Query method
GEThttp://apilocal.stableproxy.com/v2/package/note/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| noteNot necessarily | nullablestring | 98 |
| id | 1required | 6 |
| proxyIndex | 1required | 95 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Change note Add personal note for proxy in package. -/package/note/{id}/{proxyIndex}
Query method
PUThttp://apilocal.stableproxy.com/v2/package/note/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| noteNot necessarily | nullablestring | 98 |
| id | 1required | 6 |
| proxyIndex | 1required | 95 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Rotate proxy Rotate proxy, residential, mobile - change ip. -/package/proxy-rotate/{id}/{proxyIndex}
Query method
GEThttp://apilocal.stableproxy.com/v2/package/proxy-rotate/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 82 |
| proxyIndex | 1required | 72 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Add proxy Add custom user proxy, like for residential constructor. -/package/proxy/{id}
Query method
POSThttp://apilocal.stableproxy.com/v2/package/proxy/{id}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| fixed | requiredex-boolean | false |
| interval | requiredinteger | 49 |
| count | requiredinteger | 30 |
| countriesNot necessarily | nullablearray | {"UA": 10, "PL": 20} |
| countries.*Not necessarily | distinctstringcountry_code | {"UA": 10, "PL": 20} |
| id | 1required | 99 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Remove proxy Proxies Package -/package/proxy/{id}/{proxyIndex}
Query method
DELETEhttp://apilocal.stableproxy.com/v2/package/proxy/{id}/{proxyIndex}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 56 |
| proxyIndex | 1required | 46 |
Code examples
JavaScript
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();
}Examples of answers
Success response
Replace proxies -/package/replace/{id}/{type}
Query method
PUThttp://apilocal.stableproxy.com/v2/package/replace/{id}/{type}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| type | 1in:non-workingrequired | "non-working" |
| id | 1required | 56 |
Code examples
JavaScript
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();
}