No KYC — no ID, no selfie, no documents · City, state and ZIP targeting on every plan
Language: English
Get started

Docs · reference

Proxy username format for city, state and ZIP targeting

Every targeting option is a segment of the username. This page lists them all, in order, with the format each one expects.

Last updated: · 3 min read

Quick answer

What is the MetroProxies username format?

The full format is USERNAME-country-{cc}-state-{state}-city-{city}-zip-{zip}-asn-{asn}-session-{id}-ttl-{minutes}. Start with your username, then add only the segments you need, from the widest place to the narrowest; city names are lower case with underscores. MetroProxies includes every segment on every plan from $0.50/GB (October 2026), with no surcharge. No KYC; crypto payments.

Which segments exist, and in what order?

SegmentFormatExampleNotes
country-ISO 3166 code, lower casecountry-usRequired for any targeting
state-USPS code, lower casestate-txUnited States only; 50 states and dc
city-lower case, underscores for spaces, no punctuationcity-fort_worthCity availability varies; the checkout shows what is online
zip-five digitszip-76102United States only; keep leading zeros
asn-AS number without "AS"asn-20115Narrows to one provider's network
session-letters and digitssession-ftw01Same ID = same IP while the session lasts
ttl-minutesttl-20Sticky time, up to 30 minutes, set per session with the ttl parameter; the IP can change earlier

How do the segments combine?

Each segment narrows the previous one. Write them in the order of the table and leave out what you do not need.

  • USERNAME-country-us — any US residential IP, new IP per connection.
  • USERNAME-country-us-state-tx-city-fort_worth — Fort Worth.
  • USERNAME-country-us-state-tx-city-fort_worth-zip-76102 — downtown Fort Worth.
  • USERNAME-country-us-state-tx-city-fort_worth-asn-20115 — a Spectrum IP in Fort Worth.
  • USERNAME-country-us-state-tx-city-fort_worth-session-ftw01-ttl-20 — one Fort Worth IP kept for up to 20 minutes.

The password never changes. Username and password on every plan, or an IP allowlist (up to 10 IPs). Sub-users with their own credentials and traffic cap. API keys you can revoke at any time.

What are the connection details?

Gateway hostgw.metroproxies.com
HTTP / HTTPS port7777
SOCKS5 port7778
ProtocolsHTTP, HTTPS (CONNECT) and SOCKS5
RotationEach new connection gets an IP from the pool, usually a different one; to get a new IP on every request, send one request per connection (turn off keep-alive)
Traffic countingUsage counts all data sent and received through the proxy (upload and download, headers included). 1 GB = 1,000,000,000 bytes. Connection attempts that fail before reaching the target are not counted

What are the common mistakes?

  • Upper case or spaces in a city: city-Fort Worth will not match; write city-fort_worth.
  • City without state: names repeat across states (two Aurora, two Columbus, two Glendale, two Kansas City and two Springfield pages on this site alone). Always add state-.
  • A ZIP outside the city: city-austin-zip-75201 asks for Austin and a Dallas ZIP at once, and is likely to find nothing.
  • Reusing a session ID across cities: use one ID per city and per run.
  • SOCKS5 in a browser: browsers do not send a username to SOCKS5 proxies; use port 7777.
  • Special characters in the password: URL-encode them when you put credentials in a proxy URL (@ becomes %40).

Where should I go next?

Try the format with the curl commands, the five-minute setup or the Python examples; each level is explained on city-level proxies, state-level proxies and proxy by ZIP code.

What else do people ask about the format?

Is the API the same format?

No. The username is for the proxy gateway. The API documentation uses JSON fields, and country codes there are upper case (US), while the username uses lower case (country-us).

How do I write cities like St. Louis or Winston-Salem?

Drop the punctuation and replace spaces and hyphens with underscores: city-st_louis, city-winston_salem. Each city page prints the exact segment.

Can sub-users use different targeting?

Yes. Targeting lives in the username, so every sub-user can request any city. Sub-users have their own credentials and traffic cap, which is useful to separate projects or clients.

1 GB $1.50 · no KYC

Get started