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"
}

错误响应

若请求失败,错误原因将通过single 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;