GET/balance餘額
返回當前可用餘額,以美元計。
curl https://cheapmobileproxy.com/api/v1/balance \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "balance": "125.40", "currency": "USD" }餘額、產品、訂單、代理及IP更改均可通過REST API處理。你能在自建工具和腳本中執行控制台的所有操作。
基本連接參數
https://cheapmobileproxy.com/api/v1 Authorization: Bearer YOUR_API_KEY
/balance餘額返回當前可用餘額,以美元計。
curl https://cheapmobileproxy.com/api/v1/balance \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "balance": "125.40", "currency": "USD" }/products產品和價格每個產品銷售的國家、每個國家可選擇的期限和代理價格、旋轉移動代理的每GB價格都會顯示。
curl https://cheapmobileproxy.com/api/v1/products \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "currency": "USD", "products": [ { "id": "dedicated", "unit": "proxy", "countries": [ { "country": "us", "periods": [ { "period": "1m", "days": 30, "price": "83.40" } ] } ] }, { "id": "rotating", "unit": "gb", "price_per_gb": "3.59" } ] }/orders購買使用餘額購買。靜態流動代理需提交product、country、period、quantity(1~100);輪轉流動代理需提交product、gb(1~1000)、country(可選,默認any)。
curl -X POST https://cheapmobileproxy.com/api/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "product": "dedicated", "country": "us", "period": "1m", "quantity": 2 }'{ "ok": true, "order": "P-7K2M-Q9XD-4HTA", "charged": "166.80", "balance": "58.60" }/orders訂單列表返回訂單代碼、產品、國家、期限、數量、金額、狀態和到期日。
curl https://cheapmobileproxy.com/api/v1/orders \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "orders": [ { "code": "P-7K2M-Q9XD-4HTA", "product": "dedicated", "country": "us", "period": "1m", "quantity": 2, "status": "ACTIVE" } ] }/proxies代理列表返回當前使用代理的主機地址、HTTP/SOCKS5端口、用戶名、密碼、當前IP及IP變更連結。
curl https://cheapmobileproxy.com/api/v1/proxies \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "proxies": [ { "id": "pxk3m9q2wt7a", "country": "us", "host": "198.51.100.24", "http_port": 20418, "socks5_port": 30418, "username": "cmpk3m9q2wt", "password": "...", "ip": "203.0.113.57", "ip_change_url": "https://cheapmobileproxy.com/api/rotate/..." } ] }/proxies/{id}/rotate更改IP為固定移動代理獲取新IP。每個代理每10秒可更換一次。
curl -X POST https://cheapmobileproxy.com/api/v1/proxies/pxk3m9q2wt7a/rotate \ -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "ip": "203.0.113.91", "changed_at": "2026-10-23T09:30:00.000Z" }| HTTP | code | 含義 |
|---|---|---|
| 401 | auth | API密鑰不存在或不正確 |
| 402 | balance | 餘額不足(款項未扣除) |
| 400 | bad_country, bad_period, bad_qty, bad_gb | 請求值與產品不符(不會扣款) |
| 429 | rate, too_fast | 每分鐘300次,IP更改最快10秒一次 |
| 503 | network | 網絡錯誤,請稍後再試(款項不會扣除) |
首次充值確認後,您可以在控制台的API頁面創建API密鑰。密鑰將在每次請求時發送,必要時可以在控制台更換新密鑰。
API訂單亦從與控制台相同的餘額中支付。固定線路一次可訂購1至100個,旋轉移動代理則以GB為單位訂購。