Overview
| Product | How the IP changes |
|---|---|
| Shared pool | Automatically. Each connection can land on a different modem. |
| Dedicated modem | When you renew it, or on the interval you set. |
| Swiss IPv6 pool | Per your address mode: sticky, per session or random. |
Renew on demand
Click Renew IP in the dashboard or call the API. The call returns at once; the proxy's rotation.state then moves from queued to applying and verifying, and ends in succeeded or failed.
A renewal takes 1 to 2 seconds on average, and under 5 seconds at worst.
curl -X POST "https://dengz.io/api/proxies/$PROXY_ID/rotate" \
-H "Authorization: Bearer $DENGZ_API_KEY"
# Follow the rotation
curl "https://dengz.io/api/proxies/$PROXY_ID" -H "Authorization: Bearer $DENGZ_API_KEY"import os, time, requests
API = "https://dengz.io/api"
headers = {"Authorization": f"Bearer {os.environ['DENGZ_API_KEY']}"}
proxy_id = os.environ["PROXY_ID"]
requests.post(f"{API}/proxies/{proxy_id}/rotate", headers=headers, timeout=30).raise_for_status()
while True:
state = requests.get(f"{API}/proxies/{proxy_id}", headers=headers, timeout=30).json()["rotation"]["state"]
if state in ("succeeded", "failed"):
print(state)
break
time.sleep(2)Renew on a schedule
Set an interval between 300 and 43,200 seconds (5 minutes to 12 hours). Renewals are spread by up to 10 % of the interval, at most 5 minutes, so your proxies do not all change at the same moment. The planned time is next_rotate_at on the proxy.
curl -X PATCH "https://dengz.io/api/proxies/$PROXY_ID/rotate-interval" \
-H "Authorization: Bearer $DENGZ_API_KEY" -H "Content-Type: application/json" \
-d '{"rotate_interval_secs": 1800}'
Rules
- Only one rotation runs at a time on a proxy. A second call returns
409. - A paused proxy cannot be rotated (
400). Resume it first. - While a proxy is not healthy, scheduled renewals wait; the next one is planned one interval after it is back.
- A proxy set to never renew keeps its IP and refuses rotation (
409).