How to get a link to change the IP address of a mobile proxy via API
- Aug 19, 2021, 3:45 PM
- 1 minute
In this manual, we will show you step by step how to get a link to change the IP address for a mobile proxy.
IMPORTANT! Changing the IP address via the API is possible only on the Private tariff of mobile proxies.
STEP 1 - Buying a proxy
![](https://onlinesim.io/images_news/1629376859_phpvXOMbS.jpeg)
STEP 2 - Get your API key
API key is located in your account settings
![](https://onlinesim.io/images_news/1629376906_php9QmIVH.jpeg)
STEP 3 - Get our mobile proxy ID
Using the getState API method to get the ID of the purchased proxy
A detailed description of how this method works can be found at the LINK
On the same page there is a ready-made link
![](https://onlinesim.io/images_news/1629376567_phpMfh3S1.jpeg)
STEP 4 - Follow the link
As a result, we get an answer in which we are interested in the tzid parameter, which is the ID of our mobile proxy.
![](https://onlinesim.io/images_news/1629376591_php2ByZqW.jpeg)
STEP 5 - Change IP address
We have done everything necessary to change the IP address of our mobile proxy via the API.
Using the changeIp method to change the IP address
A detailed description of how this method works can be found at the LINK
In this link, we only change the tzid to the one we received earlier, namely 9442.
![](https://onlinesim.io/images_news/1629376604_phpbV8oHr.jpeg)
That's all. This link will change the IP address of our mobile proxy every time we click on it.