API Documentation
Integrate our SMM panel services into your own platform using our REST API.
REST API v2
Base endpoint and connection details
Service List
Get all available services with pricing
| Parameter | Value / Explanation |
|---|---|
| key | Your API Key |
| action | services |
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000"
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500"
}
]
New Order
Place a new order via API
| Parameter | Explanation |
|---|---|
| key | Your API Key |
| action | add |
| service | Service ID |
| link | Link to the page |
| quantity | Quantity to order |
| runs (optional) | Runs to deliver |
| interval (optional) | Interval in minutes |
{
"order": 23501
}
Order Status
Check the status of an existing order
| Parameter | Explanation |
|---|---|
| key | Your API Key |
| action | status |
| order | Order ID |
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
User Balance
Check account balance via API
| Parameter | Explanation |
|---|---|
| key | Your API Key |
| action | balance |
{
"balance": "100.84292",
"currency": "USD"
}
Sample PHP Integration Code
Full working PHP cURL integration code
PHP API Integration Class<?php
class HaiderSMMAPI
{
private $api_url = 'https://haidersmmserver.online/api/v2';
private $api_key;
public function __construct($api_key)
{
$this->api_key = $api_key;
}
private function connect($data)
{
$data['key'] = $this->api_key;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->api_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
curl_close($ch);
return json_decode($result, true);
}
public function services()
{
return $this->connect([
'action' => 'services'
]);
}
public function balance()
{
return $this->connect([
'action' => 'balance'
]);
}
public function status($id)
{
return $this->connect([
'action' => 'status',
'order' => $id
]);
}
public function order($data)
{
return $this->connect(
array_merge(
['action' => 'add'],
$data
)
);
}
}
$api = new HaiderSMMAPI('YOUR_API_KEY_HERE');
print_r($api->balance());
?>