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(多选:订单) |
响应示例
{
"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字段返回。
{ "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;