Endpoint Format
Full reference for the Alienproxies.com username parameter syntax — country, state, city, ASN, session, and protocol.
On this page
All proxy traffic goes through a single gateway. Targeting options are encoded in the username.
Base format
gate.alienproxies.com:PORT
| Port | Protocol |
|---|---|
| 7777 | HTTP / HTTPS |
| 7778 | SOCKS5 |
Full URL form:
http://USERNAME:[email protected]:7777
Username parameters
Parameters are appended to user with hyphens. Order does not matter except that session must come before sesstime if both are present.
Country
user-country-XX
ISO 3166-1 alpha-2 code (lowercase). Examples: us, gb, de, jp, br.
curl -x "http://user-country-de:[email protected]:7777" https://httpbin.org/ip
State (US only)
user-country-us-state-XX
Two-letter US state code (lowercase): ca, ny, tx, fl, etc.
user-country-us-state-ny
City
user-country-XX-city-CITYNAME
City name, lowercase, no spaces or hyphens.
user-country-us-state-ca-city-losangeles
user-country-gb-city-london
user-country-de-city-berlin
ASN (carrier / ISP targeting)
user-country-XX-asn-NNNNN
Numeric ASN. Useful for targeting a specific carrier (e.g. T-Mobile, Comcast, Vodafone).
user-country-us-asn-7922 # Comcast
user-country-gb-asn-5607 # BT
Sticky session
user-session-ID
Replace ID with any alphanumeric string (max 32 chars). Requests with the same session ID are routed to the same exit IP.
Session TTL
user-session-ID-sesstime-N
N is the TTL in minutes (1–60). Defaults to 10 if omitted when a session ID is set.
# 30-minute sticky session, US exit
user-country-us-session-myjob01-sesstime-30
Full examples
# Rotating US residential
user-country-us:[email protected]:7777
# Sticky UK session, 15 min TTL
user-country-gb-session-flow1-sesstime-15:[email protected]:7777
# Los Angeles, California
user-country-us-state-ca-city-losangeles:[email protected]:7777
# SOCKS5, rotating German IP
user-country-de:[email protected]:7778
Code examples
Python
proxies = {
"http": "http://user-country-us:[email protected]:7777",
"https": "http://user-country-us:[email protected]:7777",
}
import requests
r = requests.get("https://httpbin.org/ip", proxies=proxies)
Node.js
import { HttpsProxyAgent } from "https-proxy-agent";
const agent = new HttpsProxyAgent(
"http://user-country-us:[email protected]:7777"
);
const res = await fetch("https://httpbin.org/ip", { agent });
Go
proxyURL, _ := url.Parse("http://user-country-us:[email protected]:7777")
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)}}
resp, _ := client.Get("https://httpbin.org/ip")