SMM 平台 API v2
SMMSupport API 採用 SMM 平台常見的 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
- 已達上限,請稍後再試