如何開始使用?
- 1用使用者名稱註冊並登入控制台。
- 2在「連線」分頁產生 API 金鑰。完整金鑰只會顯示一次,請立即妥善保存。
- 3在每個需要金鑰的請求的 Authorization 標頭中放入金鑰。
- 4先呼叫 /account 確認金鑰可以使用,再用 /orders 下單。
驗證方式
與您帳號相關的請求(account、orders、proxy-user)需要 API 金鑰。請在標頭中以 Authorization: Bearer hpk_... 送出。價格、國家與報價對所有人公開,不需要金鑰。
HiProxy 只保存金鑰的雜湊值,不會保存金鑰本身。如果遺失,請在控制台產生新的金鑰,舊金鑰會在當下停用。請只把金鑰放在伺服器端程式碼中,不要放在瀏覽器執行的程式碼或公開的儲存庫中。
Authorization: Bearer hpk_your_api_key
基本 URL 與資料格式
- 基本 URL
- https://hiproxy.shop/api/v1
- 請求與回應內容
- application/json
- 金額
- 以數字表示的 USD,例如 1036.60
- 時間戳記
- ISO 8601 (UTC)
有請求頻率限制嗎?
每個 API 金鑰每分鐘最多可呼叫 60 次。不帶金鑰呼叫的公開端點,每個 IP 每分鐘可呼叫 60 次。超過限制會收到 HTTP 429,請等待一分鐘後再送出。
錯誤回應長什麼樣子?
您會收到 HTTP 狀態碼,以及含有簡短錯誤代碼與訊息的 JSON 內容。
{
"error": {
"code": "insufficient_balance",
"message": "Your balance is too low for this order. Top up in the dashboard."
}
}| HTTP | code | 意思 |
|---|---|---|
| bad_requestHTTP 400缺少必要的值,或此產品不接受該值。 | 缺少必要的值,或此產品不接受該值。 | |
| unauthorizedHTTP 401沒有送出 API 金鑰,或金鑰錯誤。 | 沒有送出 API 金鑰,或金鑰錯誤。 | |
| insufficient_balanceHTTP 402餘額低於訂單總額。餘額未被扣除。 | 餘額低於訂單總額。餘額未被扣除。 | |
| not_foundHTTP 404您的帳號沒有這個 id 的訂單。 | 您的帳號沒有這個 id 的訂單。 | |
| rate_limitedHTTP 429超過每分鐘的請求上限。 | 超過每分鐘的請求上限。 | |
| server_errorHTTP 500伺服器無法完成請求。餘額未被扣除。 | 伺服器無法完成請求。餘額未被扣除。 |
端點
查詢帳號
GET/api/v1/account需要 API 金鑰
顯示您的餘額、代理主機與連接埠、代理使用者名稱與密碼,以及允許的 IP 清單。
curl https://hiproxy.shop/api/v1/account \ -H "Authorization: Bearer hpk_your_api_key"
{
"username": "hi_user01",
"balance_usd": 1300,
"proxy": {
"host": "gate.hiproxy.shop",
"http_port": 6100,
"socks5_port": 6200,
"username": "hpexample1",
"password": "your_password"
},
"allowed_ips": [
"203.0.113.10"
]
}查詢產品與價格
GET/api/v1/products不需金鑰
顯示各產品的購買限制、各級距價格與期間折扣。使用與價格頁相同的價格表。
curl https://hiproxy.shop/api/v1/products
{
"currency": "USD",
"prices_as_of": "2026-10-31",
"products": [
{
"id": "unlimited",
"unit": "day",
"quantity": {
"meaning": "days",
"min": 1,
"max": 365
},
"...": "..."
},
{
"id": "residential",
"unit": "gb",
"...": "..."
}
]
}列出國家與城市
GET/api/v1/countries不需金鑰
顯示各產品支援的國家,以及在 -city- 使用者名稱選項中使用的城市值。
| 欄位 | 類型 | 意思 |
|---|---|---|
product選填 | string | unlimited、residential、isp、datacenter 其中之一。空白表示 residential。 |
curl "https://hiproxy.shop/api/v1/countries?product=datacenter"
{
"product": "datacenter",
"countries": [
{
"code": "us",
"name": "United States",
"region": "americas",
"datacenter": true,
"cities": [
{
"name": "New York",
"value": "new_york"
},
{
"name": "Los Angeles",
"value": "los_angeles"
}
]
}
]
}取得報價
POST/api/v1/quote不需金鑰
計算訂單總額,不會動到您的餘額。請傳送與下單時相同的內容。
| 欄位 | 類型 | 意思 |
|---|---|---|
product必填 | string | unlimited、residential、isp、datacenter 其中之一。 |
quantity必填 | integer | unlimited 為天數(1~365),residential 為 GB(5~5,000),isp(1~1,000)或 datacenter(5~5,000)為 IP 數量。 |
concurrency選填 | integer | 僅限 unlimited。可選 200、500、1000 或 2000。 |
bandwidth選填 | integer | 僅限 unlimited,單位 Mbps。可選 100、200、500 或 1000。 |
months選填 | integer | 僅限 isp 與 datacenter。可選 1、3、6 或 12。 |
country選填 | string | 僅限 isp 與 datacenter。兩個字母的國家代碼,例如 jp。有效值列在 /countries。 |
curl -X POST https://hiproxy.shop/api/v1/quote \
-H "Content-Type: application/json" \
-d '{"product":"unlimited","quantity":30,"concurrency":1000,"bandwidth":200}'{
"product": "unlimited",
"quantity": 30,
"unit_price_usd": 8.78,
"unit": "day",
"total_usd": 263.4
}下單
POST/api/v1/orders需要 API 金鑰
從餘額扣除總額並建立訂單。訂單一開始為 pending(開通中),準備完成後變為 active。無法開通的訂單會變為 refunded,已付金額全部退回餘額。餘額不足時會收到 402。
| 欄位 | 類型 | 意思 |
|---|---|---|
product必填 | string | unlimited、residential、isp、datacenter 其中之一。 |
quantity必填 | integer | unlimited 為天數(1~365),residential 為 GB(5~5,000),isp(1~1,000)或 datacenter(5~5,000)為 IP 數量。 |
concurrency選填 | integer | 僅限 unlimited。可選 200、500、1000 或 2000。 |
bandwidth選填 | integer | 僅限 unlimited,單位 Mbps。可選 100、200、500 或 1000。 |
months選填 | integer | 僅限 isp 與 datacenter。可選 1、3、6 或 12。 |
country選填 | string | 僅限 isp 與 datacenter。兩個字母的國家代碼,例如 jp。有效值列在 /countries。 |
curl -X POST https://hiproxy.shop/api/v1/orders \
-H "Authorization: Bearer hpk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"product":"unlimited","quantity":30,"concurrency":1000,"bandwidth":200}'{
"order": {
"id": "HP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 8.78,
"total_usd": 263.4,
"status": "pending",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:12:44.120Z"
},
"balance_usd": 1036.6
}列出訂單
GET/api/v1/orders需要 API 金鑰
顯示最多 100 筆訂單,最新的排在最前面。
| 欄位 | 類型 | 意思 |
|---|---|---|
status選填 | string | pending、active、refunded 其中之一。空白會回傳所有狀態的訂單。 |
curl "https://hiproxy.shop/api/v1/orders?status=pending" \ -H "Authorization: Bearer hpk_your_api_key"
{
"orders": [
{
"id": "HP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 8.78,
"total_usd": 263.4,
"status": "pending",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:12:44.120Z"
}
]
}查詢單筆訂單
GET/api/v1/orders/{id}需要 API 金鑰
依 id 顯示單筆訂單。方便確認開通是否完成。
| 欄位 | 類型 | 意思 |
|---|---|---|
id必填 | string | 訂單 id,例如 HP-7KQ2M-X4HTD。 |
curl https://hiproxy.shop/api/v1/orders/HP-7KQ2M-X4HTD \ -H "Authorization: Bearer hpk_your_api_key"
{
"order": {
"id": "HP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 8.78,
"total_usd": 263.4,
"status": "active",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:40:02.511Z"
}
}建立代理使用者名稱
GET/api/v1/proxy-user需要 API 金鑰
提供含有您所選選項的代理使用者名稱,以及可直接貼上使用的 HTTP 與 SOCKS5 網址。不指定 session 時,每個請求都會換 IP。
| 欄位 | 類型 | 意思 |
|---|---|---|
product選填 | string | unlimited、residential、isp、datacenter 其中之一。空白表示 unlimited。 |
country選填 | string | 兩個字母的國家代碼,例如 jp。 |
city選填 | string | /countries 中的城市值,例如 tokyo。只能與 country 一起使用。 |
session選填 | string | 1~32 個字母或數字。相同 session 的請求會使用同一個 IP。 |
ttl選填 | integer | 保持工作階段 IP 的分鐘數,1~60。空白表示 30。 |
curl "https://hiproxy.shop/api/v1/proxy-user?product=residential&country=jp&city=tokyo&session=job42&ttl=30" \ -H "Authorization: Bearer hpk_your_api_key"
{
"username": "hpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30",
"password": "your_password",
"http": "http://hpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30:your_password@gate.hiproxy.shop:6100",
"socks5": "socks5h://hpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30:your_password@gate.hiproxy.shop:6200"
}逐步範例
一個腳本完成確認價格、用餘額下單,以及透過日本 IP 連線。
import requests
API = "https://hiproxy.shop/api/v1"
HEAD = {"Authorization": "Bearer hpk_your_api_key"}
# 1) Check the price first
plan = {"product": "residential", "quantity": 100}
print(requests.post(f"{API}/quote", json=plan).json())
# 2) Order from your balance
r = requests.post(f"{API}/orders", json=plan, headers=HEAD)
order = r.json()["order"]
print(order["id"], order["status"])
# 3) Get a username for Japanese IPs
u = requests.get(f"{API}/proxy-user", headers=HEAD,
params={"product": "residential", "country": "jp"}).json()
proxies = {"http": u["http"], "https": u["http"]}
print(requests.get("https://ipinfo.io/json", proxies=proxies, timeout=30).json())const API = "https://hiproxy.shop/api/v1";
const HEAD = { Authorization: "Bearer hpk_your_api_key", "Content-Type": "application/json" };
// Check the balance
const acc = await fetch(`${API}/account`, { headers: HEAD }).then((r) => r.json());
console.log(acc.balance_usd);
// Order 7 days of unlimited
const res = await fetch(`${API}/orders`, {
method: "POST",
headers: HEAD,
body: JSON.stringify({ product: "unlimited", quantity: 7, concurrency: 500, bandwidth: 100 }),
});
if (res.status === 402) console.log("Top up first");
else console.log((await res.json()).order.id);透過 API 下的訂單與控制台訂單處理方式相同,也會顯示在「紀錄」分頁中。請把範例中的 hpk_your_api_key 換成您自己的 API 金鑰。