Basics
- Base URL:
https://dengz.io/api - Authentication:
Authorization: Bearer dzk_…. See API keys. - Requests and responses are JSON. Responses are never cached.
curl "https://dengz.io/api/proxies" -H "Authorization: Bearer $DENGZ_API_KEY"import os, requests
r = requests.get("https://dengz.io/api/proxies",
headers={"Authorization": f"Bearer {os.environ['DENGZ_API_KEY']}"}, timeout=30)
r.raise_for_status()
print(r.json())const res = await fetch("https://dengz.io/api/proxies", {
headers: { Authorization: `Bearer ${process.env.DENGZ_API_KEY}` },
});
console.log(await res.json());Proxies
| Method | Path | Does |
|---|---|---|
| GET | /proxies | Your dedicated proxies and the shared proxies you can use |
| GET | /proxies/{id} | One proxy, with its rotation state |
| POST | /proxies/{id}/rotate | Renew the IP of a dedicated mobile proxy |
| PATCH | /proxies/{id}/rotate-interval | Set automatic renewal, rotate_interval_secs 300–43200 |
| POST | /proxies/{id}/pause | Refuse connections until resumed |
| POST | /proxies/{id}/resume | Accept connections again |
| POST | /proxies/{id}/reboot | Restart the listener and close open connections |
Pools and usage
| Method | Path | Does |
|---|---|---|
| GET | /pools | Your IPv6 pools: prefix, speed, period, status |
| GET | /usage | Upload and download per port, and your bandwidth periods |
Proxy logins
| Method | Path | Does |
|---|---|---|
| GET | /access | List logins. Passwords are never returned |
| POST | /access | Create a login. The password is in this response only |
| PATCH | /access/{id} | Replace a login. A new username issues a new password |
| DELETE | /access/{id} | Delete a login |
| POST | /access/{id}/reset | Set or generate a new password (12–128 characters) |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid input, or an action the proxy does not support in its current state |
| 401 | Missing, expired or revoked API key |
| 403 | Not your proxy, or the key's scope does not allow it |
| 404 | Unknown resource |
| 409 | A rotation is already running, the proxy never renews, or it is not healthy (RENEWAL_UNAVAILABLE) |
| 503 | Proxy control is temporarily unavailable (PROXY_UNAVAILABLE). Retry with backoff |