Docs
How to send traffic through Proxys, and how to manage logins and traffic from your own code or agents.
Connect
Every login works on every network you've bought. Use the username and password of a sub-user from your dashboard.
| Host | gw.proxys.co |
| HTTP and HTTPS | port 8000 |
| SOCKS5 | port 1080 (TCP only; UDP isn't supported) |
| Authentication | username and password (each sub-user has its own) |
curl -x http://USERNAME:PASSWORD@gw.proxys.co:8000 https://ipinfo.io/json
Traffic is TCP only: UDP, QUIC (HTTP/3) and the email-sending ports 25, 465, 587 and 2525 aren't available. Government websites and adult content are blocked by the network. See the acceptable use policy for everything that's blocked or not allowed.
Targeting and sessions
Options go in the username, separated by dashes. Leave them out for a random IP on every request.
| Option | Example | Effect |
|---|---|---|
| Country | -country-us | Two-letter country code. |
| State or region | -state-california | Where the network supports it. |
| City | -city-london | Lowercase, no spaces. |
| ASN | -asn-7922 | A specific internet provider. |
| Sticky session | -session-job42 | Keeps the same IP for requests with the same session id. |
| Session length | -ttl-30 | Minutes a sticky IP is kept. |
USERNAME-country-de-city-berlin-session-cart7-ttl-20
Code examples
import requests
proxy = "http://USERNAME-country-us:PASSWORD@gw.proxys.co:8000"
r = requests.get("https://ipinfo.io/json", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json())import { ProxyAgent, fetch } from "undici";
const agent = new ProxyAgent("http://USERNAME-country-us:PASSWORD@gw.proxys.co:8000");
const res = await fetch("https://ipinfo.io/json", { dispatcher: agent });
console.log(await res.json());const browser = await chromium.launch({
proxy: { server: "http://gw.proxys.co:8000", username: "USERNAME-country-us-session-s1", password: "PASSWORD" },
});# meta={"proxy": "http://USERNAME-country-us:PASSWORD@gw.proxys.co:8000"} on each Request
DOWNLOADER_MIDDLEWARES = {"scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware": 750}Proxy errors
| Code | Meaning | What to do |
|---|---|---|
| 407 | Username or password not accepted. | Copy them again from Sub-users. Check the login isn't paused or out of traffic. |
| 403 | Destination not allowed. | Government, banking and payment sites are blocked under the acceptable use policy. |
| 429 | Too many connections or failed logins from your IP. | Slow down. A block for failed logins lifts after 15 minutes. |
| 502 / 504 | The target or exit IP didn't answer in time. | Retry. With a sticky session, change the session id to get a new IP. |
Allowed IPs
If a tool can't send a proxy username and password, allow your server's public IP under Sub-users → Allowed IPs. Connections from that IP can then use the gateway with no credentials, as the sub-user you picked. You can fix a country per IP. Changes reach the gateway within a minute.
curl -x http://gw.proxys.co:8000 https://ipinfo.io/json
MCP server
AI agents can manage Proxys themselves through our remote MCP server. They can check balances, create a login per task, and build proxy URLs with the country and session they need. Use an API key from Settings → API keys.
| URL | https://proxys.co/mcp (Streamable HTTP) |
| Header | Authorization: Bearer pxk_YOUR_KEY |
| Tools | get_account, list_subusers, create_subuser, build_proxy_url, set_subuser_status, rotate_subuser_password, transfer_traffic, get_usage, allow_ip, list_allowed_ips, get_pricing |
{
"mcpServers": {
"proxys": {
"url": "https://proxys.co/mcp",
"headers": { "Authorization": "Bearer pxk_YOUR_KEY" }
}
}
}Clients that only run local servers can bridge with npx mcp-remote https://proxys.co/mcp --header "Authorization: Bearer pxk_YOUR_KEY".
SDKs
Small, dependency-free clients for the API, with helpers that build proxy URLs with targeting.
import { Proxys } from "./proxys";
const px = new Proxys(process.env.PROXYS_API_KEY!);
const sub = await px.createSubuser("Price agent", "residential", 2);
const proxy = px.proxyUrl(sub, { country: "us", session: "job1", ttlMinutes: 10 });from proxys import Proxys
import requests
px = Proxys("pxk_YOUR_KEY")
sub = px.create_subuser("Price agent", "residential", gb=2)
requests.get("https://ipinfo.io/json", proxies=px.requests_proxies(sub, country="us", session="job1"))Download: proxys.ts · proxys.py
Agent skill file
A short instruction file your agents can read to use Proxys correctly: connection details, targeting syntax, MCP tools and the rules. Put it in your agent's skills folder or paste it into its instructions.
proxys.co/agents/SKILL.md · llms.txt
API authentication
Create a key under Settings → API keys in the dashboard. Send it as a bearer token. Keys have full access to the account, so keep them out of client-side code.
curl https://proxys.co/api/v1/account \ -H "Authorization: Bearer pxk_YOUR_KEY"
Limits and errors
Each key can make 120 requests a minute. Amounts of traffic are in GB with up to three decimals. Errors use HTTP status codes and a JSON body:
{ "error": { "code": "invalid_network", "message": "network must be residential, mobile or datacenter." } }| Status | When |
|---|---|
| 400 | The request couldn't be completed, for example not enough traffic to move. |
| 401 | Missing, invalid or revoked key. |
| 403 | The account is suspended. |
| 404 | No such sub-user on this account. |
| 422 | A field is missing or has the wrong value. |
| 429 | Over the rate limit. |
Account
GET/api/v1/account
Traffic balances per network: unassigned traffic, traffic held by sub-users, and the total.
{
"id": "acc_x8k2m4n6p9q1",
"email": "you@company.com",
"balances": {
"residential": { "unassigned_gb": 1, "in_subusers_gb": 24.73, "total_gb": 25.73 },
"mobile": { "unassigned_gb": 0, "in_subusers_gb": 0, "total_gb": 0 },
"datacenter": { "unassigned_gb": 0, "in_subusers_gb": 0, "total_gb": 0 }
}
}Sub-users
A sub-user is a login with its own traffic budget. Give one to every agent, script or client so their usage stays separate.
GET/api/v1/subusers
{ "data": [ {
"id": "su_4hd8s2k1m9za", "label": "Price agent", "network": "residential", "main": false,
"status": "active", "username": "px6iqbxij7", "password": "wbv6mvx52suwzh",
"allocated_gb": 5, "used_gb": 1.284, "left_gb": 3.716, "created_at": "2026-11-21T22:41:07.000Z"
} ] }POST/api/v1/subusers
Create a login. gb is taken from unassigned traffic first, then from your Main sub-user.
curl -X POST https://proxys.co/api/v1/subusers \
-H "Authorization: Bearer pxk_YOUR_KEY" -H "Content-Type: application/json" \
-d '{ "label": "Price agent", "network": "residential", "gb": 5 }'GET/api/v1/subusers/:id
PATCH/api/v1/subusers/:id
Rename with label, or pause and resume with status: "paused" or "active".
{ "status": "paused" }POST/api/v1/subusers/:id/password
Issues a new password for the login and returns the updated sub-user. The old password stops working straight away.
GET/api/v1/subusers/:id/endpoints
Returns up to 10,000 endpoints for the login. Each line is its own sticky session, so each line holds its own IP. Query options: count (1 to 10,000, default 10), country (two-letter code), ttl (1, 10, 30, 60 or 120 minutes), protocol (http or socks5), format (hpup for host:port:user:pass, uphp for user:pass@host:port, or url) and seed. The same seed always returns the same list; leave it out for fresh sessions. Add as=text for a plain list, one per line.
curl -H "Authorization: Bearer $PROXYS_KEY" \ "https://proxys.co/api/v1/subusers/su_4hd8s2k1m9za/endpoints?count=1000&country=us&format=hpup&as=text"
Transfers
POST/api/v1/transfers
Move traffic between sub-users, or between a sub-user and unassigned traffic (use null). Returns the updated balances.
{ "network": "residential", "from": null, "to": "su_4hd8s2k1m9za", "gb": 2.5 }Usage
GET/api/v1/usage?days=30
Daily usage per sub-user for up to 90 days.
{ "days": 30, "data": [ { "day": "2026-11-21", "subuser_id": "su_4hd8s2k1m9za", "network": "residential", "gb": 0.412 } ] }Allowed IPs
GET/api/v1/allowlist
POST/api/v1/allowlist
{ "subuser_id": "su_4hd8s2k1m9za", "ip": "203.0.113.7", "country": "us" }DELETE/api/v1/allowlist/:id
Up to 50 IPs per account. Private and reserved addresses aren't accepted.
Pricing
GET/api/pricing
Current price per GB for every volume tier. No key needed.
Buying traffic happens in the dashboard. Questions about the API: support@proxys.co.