Mobile proxy API: change the IP from your code
There is no SDK to install. Rotation is one GET request to a URL that belongs to your line.
See plans from $75/mo ♡ Read the docs
The change-IP URL
Each line is delivered with a private link. Calling it tells the phone to reconnect to the carrier, which assigns a new address. Treat the link like a password, because anyone who has it can rotate your line.
curl -s "https://YOUR-CHANGE-IP-LINK"
Python example
import requests, time
PROXY = 'socks5h://USER:PASS@HOST:PORT'
ROTATE = 'https://YOUR-CHANGE-IP-LINK'
def new_ip():
requests.get(ROTATE, timeout=30) # not sent through the proxy
time.sleep(15) # give the phone time to reconnect
r = requests.get('https://api.ipify.org', proxies={'https': PROXY}, timeout=30)
return r.text
print(new_ip())
Timing rules that keep a line healthy
- Call the rotation URL directly, not through the proxy you are rotating
- Wait about 10 to 20 seconds before sending traffic again
- Retry failed requests once after a rotation instead of rotating again immediately
- Avoid rotating more often than every couple of minutes
Questions
Is there an API to order lines?
Not a public one. For bulk or automated provisioning, talk to @nekoproxiesxx.
Can a cron job rotate on a schedule?
Yes. Any scheduler that can make an HTTP request works.
Related guides
Ready for your own dedicated private mobile proxy? 🎀
Real AT&T, Verizon and T-Mobile SIMs · unlimited data · one-tap IP rotation · delivered by email or Telegram.