Documentation

Guides for connecting to ProxyHQ.

Code examples

Replace YOUR_LOGIN and YOUR_PASSWORD with the details from your dashboard.

# Rotating Residential IP, HTTP port 823
curl -x "http://YOUR_LOGIN:[email protected]:823" https://api.ipify.org

# Target a country: add __cr.<code> to the login
curl -x "http://YOUR_LOGIN__cr.de:[email protected]:823" https://api.ipify.org

# SOCKS5 rotating, port 824
curl -x "socks5h://YOUR_LOGIN:[email protected]:824" https://api.ipify.org
import requests

proxy = "http://YOUR_LOGIN__cr.us:[email protected]:823"
r = requests.get("https://api.ipify.org",
                 proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
import { ProxyAgent } from "undici";

const dispatcher = new ProxyAgent(
  "http://YOUR_LOGIN__cr.us:[email protected]:823"
);
const res = await fetch("https://api.ipify.org", { dispatcher });
console.log(await res.text());
<?php
$ch = curl_init("https://api.ipify.org");
curl_setopt_array($ch, [
  CURLOPT_PROXY => "gw.proxyhq.net:823",
  CURLOPT_PROXYUSERPWD => "YOUR_LOGIN__cr.us:YOUR_PASSWORD",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_TIMEOUT => 30,
]);
echo curl_exec($ch);
import { chromium } from "playwright";

const browser = await chromium.launch({
  proxy: {
    server: "http://gw.proxyhq.net:823",
    username: "YOUR_LOGIN__cr.us",
    password: "YOUR_PASSWORD",
  },
});
const page = await browser.newPage();
await page.goto("https://api.ipify.org");
console.log(await page.textContent("body"));
await browser.close();