Change proxy location
/package/proxy/{id}/{proxyIndex}/locationMove already generated per-GB proxies to another country, region or city in place.
The proxies keep their host, port, login and password; only where they exit changes.
proxyIndex takes one index, a comma-separated list or all. Send cities: []
(and regions: []) to drop the city from a batch.
You can also find a list of permissions in our documentation.
Query method
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| countriesNot necessarily | nullablearray | {"UA": 10, "PL": 20} |
| regionsNot necessarily | nullablearraydistinct | 7 |
| citiesNot necessarily | nullablearraydistinct | 10 |
| countries.*Not necessarily | distinctstringcountry_code | {"UA": 10, "PL": 20} |
| regions.* | stringrequired | 101 |
| cities.* | stringrequired | 92 |
| id | 1required | 19 |
| proxyIndex | 1required | 65 |
Code examples
1const baseUrl = "https://api.stableproxy.com/v2";2const response = await fetch(baseUrl + "/package/proxy/{id}/{proxyIndex}/location", {3 method: "PUT",4 headers: {5 "Authorization": "API-Token [YOUR TOKEN]",6 "Content-Type": "application/json"7 },8 body: JSON.stringify({9 "countries": "{\"UA\": 10, \"PL\": 20}",10 "regions": 7,11 "cities": 10,12 "countries.*": "{\"UA\": 10, \"PL\": 20}",13 "regions.*": 101,14 "cities.*": 9215 })16});17const data = await response.json();