Quickstart
Account, top-up, first city request in five minutes.
Docs
Everything you need to send city-targeted requests: connection details, the username format, code samples and the API.
Quick answer
How do I connect to MetroProxies?
Connect to gw.metroproxies.com on port 7777 (HTTP/HTTPS) or 7778 (SOCKS5) with your proxy username and password, and add targeting segments such as -country-us-state-ca-city-sacramento. MetroProxies plans start at $1.50 for 1 GB (October 2026), and every code sample here is syntax-checked. No KYC; crypto.
Account, top-up, first city request in five minutes.
Every segment: country, state, city, zip, asn, session, ttl.
Test cities, ZIPs and sessions from the command line; measure page size.
requests examples, sticky sessions and a ZIP → city → state fallback.
undici fetch, a loop over cities, Playwright with a city IP.
Account, top-ups, orders and API keys over HTTPS.
| Gateway | gw.metroproxies.com |
|---|---|
| Ports | 7777 (HTTP and HTTPS via CONNECT), 7778 (SOCKS5) |
| Username format | USERNAME-country-{cc}-state-{state}-city-{city}-zip-{zip}-asn-{asn}-session-{id}-ttl-{minutes} |
| Authentication | 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 |
| Rotation | Each 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) |
| Sticky sessions | up to 30 minutes, set per session with the ttl parameter; the IP can change earlier |
| Traffic counting | Usage 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 |
| Blocked targets | Banking, government and payment-portal sites, plus SMTP (email-sending) ports 25, 465 and 587 |
Every Python sample on this site is compiled with python -I -m py_compile and every JavaScript sample is checked with node --check before publication, with USERNAME and PASSWORD as placeholders. They target IP lookup services (ipinfo.io, api.ipify.org) or YOUR-SITE.example, never search engine result pages, and they set timeouts and stop on errors.
If a sample fails with your credentials, write to [email protected] with the error message and the username you used (never your password).
Yes. The API reference covers the account, top-ups, orders and API keys, with curl, Python and Node.js examples. API keys can be revoked at any time.
No. The proxy works with any HTTP or SOCKS5 client, and the API is plain HTTPS with JSON, so the standard libraries in the examples are enough.
On each city page, in the data table and the username section.
1 GB $1.50 · no KYC
Get started