API Docs
POSTEvery request needs key and action. Our API uses the standard v2 format, so it works with other SMM panels and scripts.
Service list
Hide/Show
Service list
| Parameters | Description |
|---|---|
| key | Your API key |
| action | services |
Example response
[
{
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram",
"rate": "45.5",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
}
]Add order
Hide/Show
Add order
| Parameters | Description |
|---|---|
| key | Your API key |
| action | add |
| service | Service ID |
| link | Link to the page or post |
| quantity | Needed quantity |
| comments | Comments list, one per line (only for comment services) |
Example response
{
"order": 23501
}Order status
Hide/Show
Order status
| Parameters | Description |
|---|---|
| key | Your API key |
| action | status |
| order | Order ID |
Example response
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "INR"
}Multiple orders status
Hide/Show
Multiple orders status
| Parameters | Description |
|---|---|
| key | Your API key |
| action | status |
| orders | Order IDs separated by comma (up to 100) |
Example response
{
"1": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "INR" },
"10": { "error": "Incorrect order ID" }
}Create refill
Hide/Show
Create refill
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill |
| order | Order ID |
Example response
{
"refill": "1"
}Create multiple refill
Hide/Show
Create multiple refill
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill |
| orders | Order IDs separated by comma (up to 100) |
Example response
[
{ "order": 1, "refill": 1 },
{ "order": 2, "refill": { "error": "Incorrect order ID" } }
]Refill status
Hide/Show
Refill status
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill_status |
| refill | Refill ID |
Example response
{
"status": "Completed"
}Multiple refill status
Hide/Show
Multiple refill status
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill_status |
| refills | Refill IDs separated by comma (up to 100) |
Example response
[
{ "refill": 1, "status": "Completed" },
{ "refill": 2, "status": { "error": "Refill not found" } }
]Cancel orders
Hide/Show
Cancel orders
| Parameters | Description |
|---|---|
| key | Your API key |
| action | cancel |
| orders | Order IDs separated by comma (up to 100) |
Example response
[
{ "order": 9, "cancel": { "error": "Incorrect order ID" } },
{ "order": 2, "cancel": 1 }
]User balance
Hide/Show
User balance
| Parameters | Description |
|---|---|
| key | Your API key |
| action | balance |
Example response
{
"balance": "100.84292",
"currency": "INR"
}PHP example
Hide/Show
PHP example
<?php
$api = "https://smmhub.si/api/v2";
$key = "YOUR_API_KEY";
function smm($api, $data) {
$ch = curl_init($api);
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($data), CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30]);
$res = curl_exec($ch);
curl_close($ch);
return json_decode($res, true);
}
$services = smm($api, ["key" => $key, "action" => "services"]);
$order = smm($api, ["key" => $key, "action" => "add", "service" => 1, "link" => "https://instagram.com/p/xyz", "quantity" => 1000]);
$status = smm($api, ["key" => $key, "action" => "status", "order" => $order["order"]]);
$balance = smm($api, ["key" => $key, "action" => "balance"]);