API
基於 HTTPS 的 JSON。在 Authorization 標頭中傳送你的 API 金鑰。每分鐘最多 300 次請求。
基礎網址
https://wingproxy.com/api/v1
認證
標頭 Authorization: Bearer YOUR_API_KEY。首次儲值後在「API 金鑰」頁面建立金鑰。
curl https://wingproxy.com/api/v1/account \ -H "Authorization: Bearer YOUR_API_KEY"
GET /account
餘額和流量。
回應範例
{
"balance": "42.50",
"traffic_left_gb": "8.73",
"traffic_used_gb": "1.27"
}GET /prices
各流量包規格的每 GB 價格。
回應範例
[
{ "from_gb": 1, "per_gb": "4.00" },
{ "from_gb": 10, "per_gb": "3.50" }
]POST /traffic {"gb": 10}
用餘額購買流量。
回應範例
{
"id": 311,
"gb": 10,
"price": "35.00",
"status": "added"
}GET /list?country=de&session=sticky&minutes=10&count=5&format=hostport
產生代理行。country:國家代碼,留空表示任意國家。session:rotating(預設)或 sticky。minutes:1 至 120(預設 10,僅 sticky)。count:1 至 1000(預設 10)。format:hostport(host:port:user:pass,預設)或 url(user:pass@host:port)。protocol:http(預設)或 socks5。
回應範例
{
"lines": [ "gate.example:8000:user-country-de-session-a1b2-time-10:pass" ]
}GET /usage
最近 30 天的每日流量。
回應範例
[
{ "day": "2026-10-13", "gb": "0.84" }
]錯誤
出錯時傳回非 2xx 狀態碼,以及帶錯誤代碼的 JSON 內文。
| unauthorized | API 金鑰缺失或錯誤 |
| not_allowed | 首次儲值後開放 API |
| bad_request | 欄位缺失或錯誤 |
| not_enough_balance | 請先儲值 |
| not_added | 流量無法新增,款項已退回你的餘額 |
| checking | 供應方尚未確認;我們會核實後新增流量或退回款項 |
| no_login | 請先購買流量,屆時會建立你的代理帳號 |
| rate_limited | 一分鐘內請求過多 |
