REST API reference

Read balance and usage, list and create proxy users, and build connection strings over HTTPS.

Authentication

Create a key under API in the dashboard. It is shown once; keep it secret. Send it as a bearer token. One key per account is active; making a new one replaces the old one. Limit: 120 requests a minute.

curl https://rotatingproxy.cc/api/v1/balance -H "Authorization: Bearer rxk_YOUR_KEY"

Endpoints

Method and pathReturns
GET /api/v1/balanceBalance in USD (6 decimals)
GET /api/v1/usage?days=30Bytes and cost per day and network (1 to 90 days), plus this month per network with the current rate
GET /api/v1/usersProxy users: login, label, networks, cap, state, bytes this month
POST /api/v1/usersCreates a proxy user from {"label", "networks": ["res","dc"], "cap_gb"}
GET /api/v1/endpoint?login=..&network=res&country=us&city=..&state=..&session=..&ttl=..Host, ports, the full username and the password
GET /api/v1/locationsCountries with networks and city tokens, US states (no key needed)
GET /api/v1/ratesBands and rates per network (no key needed)

Example: build an endpoint

curl "https://rotatingproxy.cc/api/v1/endpoint?login=zq4k8m2tva&network=mob&country=de&session=a7k2m9q4&ttl=20" \
  -H "Authorization: Bearer rxk_YOUR_KEY"
{"ok":true,"host":"gw.rotatingproxy.cc","http_port":7070,"socks5_port":7071,
 "username":"zq4k8m2tva_net.mob_cc.de_sid.a7k2m9q4_ttl.20","password":"..."}

Python example

import requests

API = "https://rotatingproxy.cc/api/v1"
H = {"Authorization": "Bearer rxk_YOUR_KEY"}

print(requests.get(API + "/balance", headers=H, timeout=20).json()["balance"])
ep = requests.get(API + "/endpoint", headers=H, timeout=20,
                  params={"login": "zq4k8m2tva", "network": "res", "country": "us"}).json()
proxy = f"http://{ep['username']}:{ep['password']}@{ep['host']}:{ep['http_port']}"

A common pattern is a nightly job that reads /usage, stores the per-network totals in your own monitoring, and alerts when the balance falls under a threshold you choose. Another is a crawler that asks /endpoint for a fresh sticky username per worker at start-up, so session ids never collide.

Errors

Every answer is JSON with ok. Errors carry error: unauthorized (401), rate_limited (429), unknown_login (404), network_not_allowed, bad_cc, bad_city, bad_st, bad_sid, bad_ttl (400) with a readable message.