ProxyHive

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.

NetworkHostHTTP(S)SOCKS5
Residential proxiesres.proxyhive.cc70007001
Mobile proxiesmob.proxyhive.cc71007101
Static ISP proxiesisp.proxyhive.cc80008001
Datacenter proxiesdc.proxyhive.cc72007201

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.

KeyWhat it doesNetworks
country-usTwo letter ISO country code.Residential, mobile, datacenter
state-texasA US state or first level region.Residential
city-new_yorkA city, lowercase, spaces as underscores.Residential, mobile
carrier-tmobileOne mobile carrier, lowercase, no spaces.Mobile
session-a1b2c3Keeps one IP for the session, 6 to 10 letters or digits.Residential, mobile, datacenter
ttl-30Minutes 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
Select product

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.

MethodPathWhat it doesKey
GET/plansEvery plan with id, product, size, rate and price.No
GET/locationsCountries with pool sizes, cities and carriers.No
GET/balanceYour credit in USD.Yes
POST/ordersBuy a plan: plan id and country (or any).Yes
GET/ordersYour 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?
A proxy server API is a programmable way to use proxies: your code sends requests through a gateway host with a login, and a REST API lets the same code list plans, buy proxies and read logins and traffic without opening a dashboard. ProxyHive offers both on every account.
Is the ProxyHive proxy server API free to use?
Yes. The REST API and the gateway hosts come with every account at no extra cost. You pay only for the proxy plans you buy, from $0.294 per GB for residential traffic.
Which languages and tools can call the proxy API?
Any language that can send HTTP requests or use an HTTP or SOCKS5 proxy: cURL, Python, Node.js, Go, PHP, Java and C#, plus Scrapy, Puppeteer, Playwright, Selenium and antidetect browsers.
Can I buy proxies through the API?
Yes. POST /orders with a plan id and a country buys a plan with your account credit and returns the gateway host, ports, user name and password in the same answer. GET /plans lists every plan id with its price.
How do I rotate IPs through the proxy API?
Rotation is built into the gateway. Without a session key every request leaves from a new IP; add session-<id> to the user name to keep one IP, and ttl-<minutes> to hold it for up to 24 hours.

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.