SMMProxy
登入開始使用

代理 API 文件,訂單與連線資訊自動化

SMMProxy開發者API透過HTTPS REST提供餘額查詢、價格查詢、代理訂單與連線資訊列表。於儀表板API密鑰頁面建立密鑰後,透過Authorization標頭以Bearer密鑰發送請求。

開始使用

  1. 創建帳號並完成首次儲值。API金鑰需在完成至少一次儲值的帳號中生成。
  2. 在儀表板的API金鑰選單生成新金鑰。金鑰僅在生成時顯示一次,請立即保存。
  3. 所有請求需包含Authorization: Bearer金鑰。回應為JSON格式且必含ok欄位。

基本地址: https://smmproxy.io/api/v1

curl -H "Authorization: Bearer smpk_YOUR_KEY" https://smmproxy.io/api/v1/balance

GET/api/v1/balance

查詢餘額

回應範例
{ "ok": true, "balance": "48.20", "currency": "USD" }

GET/api/v1/products

查詢商品、國家、價格

回應範例
{ "ok": true, "periods": ["1w","2w","1m","2m","3m","6m","9m","12m"],
  "products": [{ "product": "isp", "unit": "ip", "countries": [{ "country": "us", "monthly": "1.29" }] }] }

POST/api/v1/orders

代理訂單 (從餘額支付)

請求正文
{ "product": "isp", "country": "us", "quantity": 5, "period": "1m" }
回應範例
{ "ok": true, "order": { "id": "OR-7K2M-Q8XD4P", "product": "isp", "country": "us",
  "quantity": 5, "period": "1m", "total": "6.45", "expires_at": "2026-11-21T09:00:00.000Z" } }

GET/api/v1/orders

訂單清單 (最近 100 筆)

回應範例
{ "ok": true, "orders": [{ "id": "OR-7K2M-Q8XD4P", "status": "active", "total": "6.45" }] }

GET/api/v1/proxies?order=OR-7K2M-Q8XD4P

連線資訊清單

回應範例
{ "ok": true, "proxies": [{ "host": "198.51.100.24", "http_port": 10842, "socks5_port": 20842,
  "username": "u7kq2m", "password": "Xc81pLq0Zr", "country": "us", "expires_at": "..." }] }

訂單金額

名稱格式說明
productstringisp, mobile, ipv4, residential
countrystring國家代碼2位小寫字母 (us, gb, de ...)
quantityintegerIP·端口數,住宅代理按GB
periodstring1w 2w 1m 2m 3m 6m 9m 12m (不含住宅型)
protocolstringHTTP或SOCKS5,預設HTTP(兩種端口皆可取得)

錯誤

HTTPerror說明
401unauthorized金鑰不存在或不正確。款項不會被扣除。
400invalid_request請再次確認商品、國家、數量、期限的值。款項不會被扣除。
402insufficient_balance餘額不足支付金額。請充值後再試。款項不會被扣除。
503network_error訂單傳送時發生網路錯誤。款項不會被扣除,稍後可再試。
429rate_limited每分鐘可發送 300 次請求。

Python範例

import requests

API = "https://smmproxy.io/api/v1"
H = {"Authorization": "Bearer smpk_YOUR_KEY"}

order = requests.post(f"{API}/orders", headers=H, json={
    "product": "isp", "country": "us", "quantity": 5, "period": "1m"}).json()
if order["ok"]:
    proxies = requests.get(f"{API}/proxies", headers=H, params={"order": order["order"]["id"]}).json()
    for p in proxies["proxies"]:
        print(f'{p["host"]}:{p["http_port"]}:{p["username"]}:{p["password"]}')

Node.js範例

const API = "https://smmproxy.io/api/v1";
const H = { Authorization: "Bearer smpk_YOUR_KEY", "Content-Type": "application/json" };

const r = await fetch(API + "/orders", { method: "POST", headers: H,
  body: JSON.stringify({ product: "mobile", country: "gb", quantity: 1, period: "1m" }) });
const j = await r.json();
console.log(j.ok ? j.order.id : j.error);
代理 API 文件,餘額·價格·訂單·代理列表 | SMMProxy