跳至主要內容

SMM Panel API v2

SMMSupport API 採用 SMM Panel 常用的 v2 格式。所有請求都以 POST 傳送至同一端點,並以 action 值指定操作。

基本資料

端點
POST https://smmsupport.com/api/v2
格式
form (application/x-www-form-urlencoded) 或 JSON
金鑰
在 key 欄位填入 API 金鑰。可在帳戶設定中建立
回應
JSON。失敗時 error 欄位會列明原因
限制
每個金鑰每分鐘 300 次請求

操作

POSTservices服務清單

每項服務的編號、名稱、分類、每 1K 價格、最少及最多數量,以及是否設有補量。

參數

key
API 金鑰
action
services

回應

[
  {
    "service": 257090,
    "name": "Instagram Followers, 60 day refill",
    "type": "Default",
    "category": "Instagram Followers",
    "rate": "2.2600",
    "min": 50,
    "max": 75000,
    "refill": true,
    "cancel": true
  }
]

POSTadd新增訂單

傳送服務編號、連結及數量;費用會從結餘扣除,並回傳訂單編號。

參數

key
API 金鑰
action
add
service
服務編號
link
公開連結
quantity
數量

回應

{
  "order": "SU4K8Q2MX"
}

POSTstatus訂單狀態

查詢一個訂單編號 (order) 或最多 100 個以逗號分隔的編號 (orders) 的費用、起始數量、狀態及餘下數量。

參數

key
API 金鑰
action
status
order
訂單編號
orders
多個訂單編號

回應

{
  "charge": "2.2600",
  "start_count": 0,
  "status": "Pending",
  "remains": 1000,
  "currency": "USD"
}

POSTbalance結餘

目前結餘及貨幣。

參數

key
API 金鑰
action
balance

回應

{
  "balance": "120.0000",
  "currency": "USD"
}

POSTcancel取消

取消未開始的訂單,費用會退回結餘。

參數

key
API 金鑰
action
cancel
orders
訂單編號(以逗號分隔,最多 100 個)

回應

[
  {
    "order": "SU4K8Q2MX",
    "cancel": 1
  }
]

POSTrefill申請補量

在補量期內,為已完成或部分完成的補量級別訂單申請補量。

參數

key
API 金鑰
action
refill
order
訂單編號

回應

{
  "refill": "RQ7HM2QX"
}

錯誤名稱

Invalid API key
金鑰錯誤或已被更換
Invalid service
沒有該編號的服務
Invalid link
並非以 https:// 開頭的公開網址
Quantity out of range
數量超出服務範圍
Not enough funds on balance
結餘不足
Refill is not available for this order
屬經濟級別,或補量期已過
Too many requests
已達上限,請稍後再試