A proxy rotation link is a URL that tells one mobile proxy to reconnect and request a new IP. You can open it from a browser or call it from curl, Python, or another HTTP client, then confirm the change from the response before continuing your job.
What a proxy rotation link does
A rotation link is a control URL for one proxy. In ProxyKite, it looks like this:
https://proxykite.com/r/<rotation_token>
The token identifies the proxy, so the link does not need an API bearer token. It does not replace your normal proxy endpoint or credentials. Your application still sends traffic through the HTTP or SOCKS5 proxy; it calls the rotation link separately when it needs that proxy to change IP.
The rotation request is synchronous: the response arrives after ProxyKite has finished the rotation or returned an error. Plan for a longer HTTP timeout than you would use for an ordinary API call. A successful response is flat JSON, with the previous and current address:
{
"ok": true,
"old_ip": "100.64.1.2",
"new_ip": "100.64.9.8"
}
The old address is useful for logging and the new address is the value to verify. Do not assume that a request was successful just because your HTTP client connected: check the status and the ok field.
What you need before you start
You need an active ProxyKite proxy, its rotation link, and a client that can make an HTTPS request. If you are building the box first, follow the ProxyKite getting started guide, the guide to building a mobile proxy with 4G and Raspberry Pi, and the 4G proxy farm setup guide for hardware and power planning.
Keep these values separate:
- Rotation URL: controls IP rotation for one proxy.
- Proxy endpoint: the host and port your application uses for HTTP or SOCKS5 traffic.
- Proxy credentials: the username and password, or the IP allowlist, used to authenticate traffic.
You do not need a static public IP or an inbound port on the Raspberry Pi. ProxyKite’s cloud routing is designed to work when the box only has outbound internet access, including behind CGNAT.
Step 1: Find the rotation link
Why: you must use the link for the specific proxy whose mobile IP you want to change.
Open that proxy’s page in the ProxyKite panel and copy its rotation URL. You can also get the rotation_url field from the proxy object when using the API. Store the value in a local secret or environment variable instead of pasting it into source code.
The link is shown in the ProxyKite rotation-link documentation. It is scoped to one proxy, not to your whole account.

Success looks like a URL with this shape, where the token is unique to your proxy:
https://proxykite.com/r/<rotation_token>
Do not replace <rotation_token> with a made-up value. Copy the complete URL from the panel or API response.
Step 2: Rotate from a browser or GET-only tool
Why: a browser is convenient for a manual rotation, while confirm=1 supports tools that can send only GET requests.
Paste the complete rotation URL into a browser. A plain GET does not rotate the proxy immediately. The browser shows a small confirmation page with a Rotate now button; clicking that button sends the POST request.
For a GET-only tool, add the confirmation query parameter:
https://proxykite.com/r/<rotation_token>?confirm=1
confirm=true and confirm=yes are also accepted. The confirmation parameter matters because chat applications, mail scanners, and link previewers may fetch URLs automatically. A plain GET protects you from accidentally rotating a proxy just because someone viewed a link preview.
Success means the tool receives a 200 response with "ok": true, old_ip, and new_ip. A plain GET without confirmation instead returns a 400 response with the confirm_required error and leaves the proxy unchanged.
Step 3: Call the link with curl
Why: curl gives you a repeatable command for shell scripts, cron jobs, and reseller workflows.
Put the link in an environment variable for the current shell session:
export ROTATE_URL='https://proxykite.com/r/<rotation_token>'
Use POST for the normal case:
curl --fail --show-error --max-time 90 \
-X POST "$ROTATE_URL"
If the calling system only supports GET, use the explicit confirmation parameter:
curl --fail --show-error --max-time 90 \
"$ROTATE_URL?confirm=1"
--fail makes curl return a non-zero status for HTTP errors, while --show-error still displays an error message when silent output is enabled. The official curl man page documents both behaviors. --max-time 90 prevents a shell job from waiting forever; choose a larger value if your job’s network policy requires it.
To save the JSON response for another command, use --output:
curl --fail --show-error --max-time 90 \
--output rotation-response.json \
-X POST "$ROTATE_URL"
Success looks like exit status 0 and a response similar to:
{"ok":true,"old_ip":"100.64.1.2","new_ip":"100.64.9.8"}
Never print ROTATE_URL in a shared build log. Shell history, process inspection, and verbose HTTP logging can expose the token.
Step 4: Call it from Python
Why: Python lets you check the structured response and decide when the next proxy request should begin.
The following example uses requests, a 90-second timeout, and explicit checks for HTTP and application-level failure:
import os
import requests
rotation_url = os.environ["ROTATE_URL"]
response = requests.post(rotation_url, timeout=90)
response.raise_for_status()
result = response.json()
if not result.get("ok"):
raise RuntimeError(result.get("message", "rotation failed"))
print(f"IP changed from {result['old_ip']} to {result['new_ip']}")
Set the URL before running the script:
export ROTATE_URL='https://proxykite.com/r/<rotation_token>'
python rotate.py
If your automation platform only exposes GET, change the request line to requests.get(rotation_url + "?confirm=1", timeout=90). Keep the same status and ok checks. Do not send the rotation request through the proxy you are rotating; call the HTTPS control URL directly from the worker that coordinates the job.
Success means the script prints both values from the response and only then proceeds to the next task. If you need to rotate several proxies, give each worker its own URL and avoid firing repeated rotations for the same proxy while the first one is still running.
Step 5: Read the old and new IP
Why: checking the response gives your application a clear hand-off between the old mobile session and the new one.
The response fields have simple meanings:
| Field | Meaning | How to use it |
|---|---|---|
ok | Whether the rotation completed successfully | Stop the workflow when it is false |
old_ip | The address used before the rotation | Record it for an audit trail or comparison |
new_ip | The address returned after the rotation | Associate it with the next proxy task |
The IP change belongs to that dongle’s proxy. If several browser profiles or jobs share the same proxy endpoint, they all see the effect of the rotation. Give separate jobs separate dongles when they need independent IP changes.
For a stronger end-to-end check, make a small test request through the proxy after the rotation and compare the observed exit address with new_ip. Do this before a sensitive multi-step workflow, not in the middle of an upload or login sequence. Rotation can interrupt open connections, so finish the current request first and start the next logical session after the response succeeds.
Step 6: Keep the rotation token secret
Why: anyone holding the full URL can rotate that one proxy, even though the link is not your account API token.
Treat a rotation URL like a password with a narrow scope:
- Store it in an environment variable, secret manager, or encrypted reseller configuration.
- Keep it out of Git, public dashboards, screenshots, support tickets, and customer-facing documentation.
- Redact the path after
/r/from application logs and error reports. - Give a customer only the rotation link for the proxy they are allowed to control.
- If the link is exposed, reset or regenerate it in the panel and update every worker that used the old value.
The link can rotate the assigned proxy, but it is not a replacement for proxy authentication. Keep proxy usernames and passwords protected as well, and follow the ProxyKite authentication guide for traffic access controls.
Step 7: Choose a rotation link, API call, or timer
Why: the simplest trigger is usually the safest one for the job, but resellers and larger fleets may need central API control.
| Method | Best fit | Authentication | Response and control |
|---|---|---|---|
| Rotation link | A bookmark, customer tool, cron job, or GET-only integration | Secret in the URL | Controls one proxy; returns ok, old_ip, and new_ip |
| REST API | A central worker managing several proxies | Bearer token with the rotate ability | POST /api/v1/proxies/{id}/rotate; also returns method and duration |
| Timer | A proxy that should rotate on a schedule | Panel or API configuration | Set 60 seconds to 7 days; use the sticky option when the current IP should be kept during auto-rotation |
The API is a better fit when you do not want a long-lived control token embedded in a customer workflow. The ProxyKite rotation API reference shows the POST /proxies/{id}/rotate request, bearer-token header, response shape, auto-rotation settings, and rotation history.

For a reseller, a practical pattern is to keep API control in your own backend and expose only the single-proxy rotation action that each customer needs. ProxyKite supports sub-users, quotas, white-label settings, and a flat per-dongle licence, so the same rotation model works from a small Raspberry Pi setup to a larger fleet.
Troubleshooting rotation requests
Start with the HTTP status and JSON error value rather than retrying blindly.
400 confirm_required: you sent a plain GET. Use POST or append?confirm=1.403 dongle_disabled: the proxy is disabled. Check its state in the panel before trying again.404 not_found: the link is unknown, often because it was reset. Copy the current link from the panel.409 rotation_in_progress: another rotation is already running for that proxy. Wait for it to finish, then retry once.429 rate_limited: slow down. A rotation link allows up to 6 requests per minute per link and 30 per minute per client IP; the API has a separate per-login limit.501 not_implemented: that dongle cannot use the requested rotation method. Check the device and network mode support.502 rotation_failed: the dongle did not obtain a new IP. Read the message, confirm the dongle has service, and inspect the old address before deciding whether to retry.
Do not put a rapid retry loop around a failed rotation. Log the status and machine-readable error, wait according to any retry guidance, and keep the job tied to the same proxy until you have a confirmed new_ip.
FAQ
What is a proxy rotation link?
A proxy rotation link is a secret URL that asks one mobile proxy to reconnect and obtain a new IP. It is separate from the proxy URL used for HTTP or SOCKS5 traffic and does not require an API bearer token.
Does opening a rotation link in a browser change the IP?
A plain browser GET shows a confirmation page and does not rotate the proxy by itself. Click Rotate now, or use ?confirm=1 for a GET-only integration that explicitly confirms the action.
Can I call a proxy rotation link with curl?
Yes. Use curl -X POST with the complete link, or call the link with ?confirm=1 when POST is unavailable. Set a client timeout of at least 90 seconds and check the JSON response for "ok": true.
What is the difference between a rotation link and the rotation API?
A rotation link controls one proxy and carries its secret in the URL. The REST API uses a bearer token, lets an authorised worker rotate proxies by ID, and returns additional operation details such as the rotation method and duration.
How often can I use a ProxyKite rotation link?
A link is limited to 6 requests per minute, with an additional limit of 30 requests per minute from one client IP. Use a timer or the API for a coordinated fleet, and avoid rotating a proxy while an important connection is still open.