Proxy connection guide and balance API

Connect ProxyCloud residential proxies to cURL, Python, Node.js and any HTTP or SOCKS5 tool, then read your balance from scripts with the balance API.

Residential proxy quick start

After purchasing residential proxies, your member page displays proxy credentials. Use a single endpoint with username parameters for country/city/session control. Test connectivity instantly with this one-line command:

  • Purchase: Select Desired GBs on the Member Screen to Buy Residential Proxies.
  • Check: Verify the proxy username (USERNAME) and password (PASSWORD) on the member screen.
  • Connection: Send requests to gw.proxycloud.fit using HTTP port 7000 or SOCKS5 port 7100.
curl -x http://USERNAME:PASSWORD@gw.proxycloud.fit:7000 https://example.com/

Proxy Connection Details Format

All residential proxy connections use the same address. Send HTTP/HTTPS requests to port 7000, SOCKS5 to port 7100. Append parameters with hyphens to the username, use only the parameters you need.

ItemPriceDescription
Addressgw.proxycloud.fitConnection details for all residential proxies
HTTP, HTTPS port7000Connect to HTTP and HTTPS sites via HTTP proxy
SOCKS5 Port7100Connect using tools and apps that support SOCKS5
ccTwo-letter country code (lowercase)Example: cc-us, cc-gb, cc-de
cityCity name (lowercase, no spaces)Example: city-newyork, city-london
sessAlphanumeric Session NameMaintain same IP while using identical values
ttl1-1,440 (minutes)Duration to maintain sticky session
USERNAME-cc-us-city-newyork-sess-a1b2c3-ttl-30:PASSWORD@gw.proxycloud.fit:7000

Examples of rotating proxies and sticky sessions

Without sess in your username, you'll get rotating proxies (new IP per request). Add sess and ttl for sticky sessions (same IP for 1-1,440 minutes). Change sess value when you need a new IP.

curl -x http://USERNAME:PASSWORD@gw.proxycloud.fit:7000 https://example.com/
curl -x http://USERNAME:PASSWORD@gw.proxycloud.fit:7000 https://example.com/

Example of country and city targeting

Use the cc parameter to select from 174 countries/regions and the city parameter to narrow down to major cities. Country and city targeting works with both rotating and sticky sessions.

curl -x http://USERNAME-cc-de:PASSWORD@gw.proxycloud.fit:7000 https://example.com/

Python Requests Proxy Example

In Python requests, use the same proxy address for both HTTP and HTTPS in the proxies value. For SOCKS5, install requests[socks] and change the address to socks5h://.

import requests

proxy = "http://USERNAME-cc-us-sess-a1b2c3-ttl-30:PASSWORD@gw.proxycloud.fit:7000"
proxies = {"http": proxy, "https": proxy}

r = requests.get("https://example.com/", proxies=proxies, timeout=30)
print(r.status_code)

Node.js Proxy Example

In Node.js, connect using undici’s ProxyAgent or the https-proxy-agent package. Both methods require just one line of proxy address.

import { ProxyAgent, fetch } from "undici";

const agent = new ProxyAgent("http://USERNAME-cc-de:PASSWORD@gw.proxycloud.fit:7000");
const res = await fetch("https://example.com/", { dispatcher: agent });
console.log(res.status);

Balance API: key and base URL

Besides the proxy gateway, ProxyCloud offers a small HTTPS API for reading your account balance from scripts and monitoring tools. Create a key on the API page of your account; keys start with vn_live_ and are shown in full only once, so store the key in an environment variable or a secret manager right away. Reissuing a key turns the old one off.

  • Base URL: https://proxycloud.fit/api/v1
  • Auth header: Authorization: Bearer <API key>
  • Rate limit: 120 calls per minute per account
  • Format: JSON over HTTPS
cURL, read balance
curl https://proxycloud.fit/api/v1/balance \
  -H "Authorization: Bearer vn_live_YOUR_API_KEY"

Balance endpoint

GET /balance returns the prepaid balance in US dollars as a string with two decimals. A common pattern is to poll it once a minute from your scraper and top up before a long run, so traffic never stops halfway through a job.

MethodPathReturns
GET/balancebalance, currency
Response
{"balance":"25.00","currency":"USD"}
Python, low-balance alert
import os, requests
r = requests.get("https://proxycloud.fit/api/v1/balance",
                 headers={"Authorization": "Bearer " + os.environ["PROXYCLOUD_KEY"]}, timeout=15)
if float(r.json()["balance"]) < 20:
    print("Balance below $20, top up before the next run")

API errors and rate limits

Errors come back as JSON with a code and a readable message. A missing header answers 401 missing_api_key, a wrong or reissued key answers 401 invalid_api_key, and more than 120 calls in a minute answers 429 rate_limited with a Retry-After header. Check the header name, the space after Bearer and that the whole key was copied.

401 response
{"error":{"code":"invalid_api_key","message":"This API key is not valid. It may have been reissued or deleted."}}