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次請求 |
服務列表
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | services |
回應範例
[
{
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.1234",
"min": "10",
"max": "100000",
"refill": true,
"cancel": false
}
]下訂單
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | add |
service | 服務ID |
link | 訂單頁面連結 |
quantity | 數量(需在服務最小與最大範圍內) |
回應範例
{
"order": 100231
}訂單狀態
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | status |
order | 訂單ID |
回應範例
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}多重訂單狀態
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | status |
orders | 訂單ID,以逗號分隔(最多100個) |
回應範例
{
"100231": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "USD" },
"100232": { "error": "Incorrect order ID" }
}申請補量
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | refill |
order | 訂單ID(multiple: orders) |
回應範例
{
"refill": "1"
}補量狀態
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | refill_status |
refill | 補量ID (multiple: refills) |
回應範例
{
"status": "Completed"
}取消訂單
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | cancel |
orders | 訂單ID,以逗號分隔(最多100個) |
回應範例
[
{ "order": 100231, "cancel": 1 },
{ "order": 100232, "cancel": { "error": "Incorrect order ID" } }
]餘額
| 參數 | 說明 |
|---|---|
key | API金鑰 |
action | balance |
回應範例
{
"balance": "100.84292",
"currency": "USD"
}錯誤回應
若請求失敗,將於single error field回傳原因。
{ "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;