cheapmobileproxy

流動代理開發者API

餘額、產品、訂單、代理及IP更改均可通過REST API處理。你能在自建工具和腳本中執行控制台的所有操作。

基本連接參數

https://cheapmobileproxy.com/api/v1
Authorization: Bearer YOUR_API_KEY

GET/balance餘額

返回當前可用餘額,以美元計。

curl https://cheapmobileproxy.com/api/v1/balance \
  -H "Authorization: Bearer YOUR_API_KEY"
{ "ok": true, "balance": "125.40", "currency": "USD" }

GET/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" } ] }

POST/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" }

GET/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" } ] }

GET/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/..." } ] }

POST/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" }

錯誤回應

HTTPcode含義
401authAPI密鑰不存在或不正確
402balance餘額不足(款項未扣除)
400bad_country, bad_period, bad_qty, bad_gb請求值與產品不符(不會扣款)
429rate, too_fast每分鐘300次,IP更改最快10秒一次
503network網絡錯誤,請稍後再試(款項不會扣除)

創建API密鑰

首次充值確認後,您可以在控制台的API頁面創建API密鑰。密鑰將在每次請求時發送,必要時可以在控制台更換新密鑰。

適用場景

  • 查詢餘額
  • 查看產品、國家、期限和價格列表
  • 下單和訂單狀態查詢
  • 查看我的代理列表及連接資料
  • 固定線路IP變更(每10秒一次)

訂單和付款

API訂單亦從與控制台相同的餘額中支付。固定線路一次可訂購1至100個,旋轉移動代理則以GB為單位訂購。