Docs
Proxy server API and integration docs
Connect any HTTP or SOCKS5 client with one host and one login per network, choose locations and sessions with keys in the user name, and manage plans with the REST API. Residential, mobile, static ISP and datacenter proxies all work the same way, so one integration covers every network and every country you buy.
How the proxy server API works
The ProxyHive developer API has two parts. The proxy gateway is where your traffic goes: point your HTTP client, scraper or headless browser at a host and port, log in with the user name and password of your plan, and every request leaves the internet from a residential, mobile, ISP or datacenter IP in the country you chose. The REST API is where your account lives: it lists plans and locations, reads your credit, buys new plans and returns their logins as JSON.
Together they let a script go from no proxy to a working, geo targeted proxy in a few lines of code, and let a team plug proxies into its own dashboard, scheduler or reseller panel. Targeting, rotation and sticky sessions are all set in the user name, so there are no extra endpoints to learn and no per feature charges.
Hosts and ports
Each network has one host. HTTP and HTTPS share the first port, SOCKS5 uses the second. The user name and password come from the plan in your dashboard and are the same for both protocols.
| Network | Host | HTTP(S) | SOCKS5 |
|---|---|---|---|
| Residential proxies | res.proxyhive.cc | 7000 | 7001 |
| Mobile proxies | mob.proxyhive.cc | 7100 | 7101 |
| Static ISP proxies | isp.proxyhive.cc | 8000 | 8001 |
| Datacenter proxies | dc.proxyhive.cc | 7200 | 7201 |
Static ISP plans list every address with its own port instead of a shared host: connect to ip:port with the plan's user name and password.
User name keys
Keys are appended to your user name with hyphens and can be combined in any order. Without keys a rotating plan returns a random address in any country.
| Key | What it does | Networks |
|---|---|---|
| country-us | Two letter ISO country code. | Residential, mobile, datacenter |
| state-texas | A US state or first level region. | Residential |
| city-new_york | A city, lowercase, spaces as underscores. | Residential, mobile |
| carrier-tmobile | One mobile carrier, lowercase, no spaces. | Mobile |
| session-a1b2c3 | Keeps one IP for the session, 6 to 10 letters or digits. | Residential, mobile, datacenter |
| ttl-30 | Minutes a session holds its IP, 1 to 1,440. Default 10. | Residential, mobile, datacenter |
USER-country-de-city-berlin-session-k7p2x9-ttl-60:PASS@res.proxyhive.cc:7000
Code samples
Replace USER and PASS with the login of your plan. The samples send one request through the gateway and print the answer.
curl -x res.proxyhive.cc:7000 -U "USER-country-us:PASS" \ https://example.com
REST API
Base address https://proxyhive.cc/api/v1. Answers are JSON and always carry ok. Public endpoints need no key; account endpoints need the header Authorization: Bearer with the API key from your account page.
| Method | Path | What it does | Key |
|---|---|---|---|
| GET | /plans | Every plan with id, product, size, rate and price. | No |
| GET | /locations | Countries with pool sizes, cities and carriers. | No |
| GET | /balance | Your credit in USD. | Yes |
| POST | /orders | Buy a plan: plan id and country (or any). | Yes |
| GET | /orders | Your plans with logins, traffic left and expiry. | Yes |
| GET | /orders/{id} | One plan by its code. | Yes |
curl -X POST https://proxyhive.cc/api/v1/orders \
-H "Authorization: Bearer phk_..." \
-H "Content-Type: application/json" \
-d '{"plan": "res-100", "country": "any"}'{
"ok": true,
"order": {
"id": "HO-7K2M9QXR4T",
"product": "resi",
"plan": "res-100",
"quantity": 100,
"unit": "GB",
"status": "active",
"gateway": { "host": "res.proxyhive.cc", "http_port": 7000, "socks5_port": 7001, "username": "...", "password": "..." }
}
}Errors and limits
Failed calls answer ok: false with an error code and a message: unauthorized (401), bad_plan or bad_country (400), funds (402, with the amount still needed), network (503, nothing was charged) and rate_limited (429). Each API key may send 300 requests per minute.
Proxy server API questions
What is a proxy server API?
Is the ProxyHive proxy server API free to use?
Which languages and tools can call the proxy API?
Can I buy proxies through the API?
How do I rotate IPs through the proxy API?
Get started with ProxyHive
Create an account in seconds, pay for a plan with crypto and copy your first proxy login. Every plan starts at $40.