SMM面板API v2文件

與其他SMM面板通用的API v2相同請求格式。在控制台的API頁面創建API密鑰;首次充值到賬後即可使用。

HTTP方法POST (GET)
API網址https://bropanel2.com/api/v2
請求格式application/x-www-form-urlencoded, JSON
回應格式JSON
請求限制每個密鑰每分鐘120次請求

服務列表

參數描述
keyAPI密鑰
actionservices

回應示例

[
  {
    "service": 1,
    "name": "Instagram Followers",
    "type": "Default",
    "category": "Instagram Followers",
    "rate": "0.1234",
    "min": "10",
    "max": "100000",
    "refill": true,
    "cancel": false
  }
]

下單

參數描述
keyAPI密鑰
actionadd
service服務ID
link下單頁面連結
quantity數量(需在服務規定的最小和最大範圍內)

回應示例

{
  "order": 100231
}

訂單狀態

參數描述
keyAPI密鑰
actionstatus
order訂單ID

回應示例

{
  "charge": "0.27819",
  "start_count": "3572",
  "status": "Partial",
  "remains": "157",
  "currency": "USD"
}

多個訂單狀態

參數描述
keyAPI密鑰
actionstatus
orders訂單ID,以逗號分隔(最多100個)

回應示例

{
  "100231": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "USD" },
  "100232": { "error": "Incorrect order ID" }
}

申請補量

參數描述
keyAPI密鑰
actionrefill
order訂單ID(多個:訂單)

回應示例

{
  "refill": "1"
}

補量狀態

參數描述
keyAPI密鑰
actionrefill_status
refill補量 ID (multiple: refills)

回應示例

{
  "status": "Completed"
}

取消訂單

參數描述
keyAPI密鑰
actioncancel
orders訂單ID,以逗號分隔(最多100個)

回應示例

[
  { "order": 100231, "cancel": 1 },
  { "order": 100232, "cancel": { "error": "Incorrect order ID" } }
]

餘額

參數描述
keyAPI密鑰
actionbalance

回應示例

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

錯誤回應

如請求失敗,原因將在單一error欄位中返回。

{ "error": "Invalid API key" }
{ "error": "Incorrect service ID" }
{ "error": "Quantity is out of the service range" }
{ "error": "Not enough funds on balance" }

PHP示例

<?php
$post = ['key' => 'YOUR_API_KEY', 'action' => 'add', 'service' => 1,
         'link' => 'https://instagram.com/yourname', 'quantity' => 1000];
$ch = curl_init('https://bropanel2.com/api/v2');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = json_decode(curl_exec($ch));
echo $result->order;