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 | 一分钟内请求过多 |