API Docs

POST
HTTP Method
POST
API URL
https://smmhub.si/api/v2
Response format
JSON

Every 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
ParametersDescription
keyYour API key
actionservices

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
ParametersDescription
keyYour API key
actionadd
serviceService ID
linkLink to the page or post
quantityNeeded quantity
commentsComments list, one per line (only for comment services)

Example response

{
  "order": 23501
}

Order status

Hide/Show
ParametersDescription
keyYour API key
actionstatus
orderOrder ID

Example response

{
  "charge": "0.27819",
  "start_count": "3572",
  "status": "Partial",
  "remains": "157",
  "currency": "INR"
}

Multiple orders status

Hide/Show
ParametersDescription
keyYour API key
actionstatus
ordersOrder 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
ParametersDescription
keyYour API key
actionrefill
orderOrder ID

Example response

{
  "refill": "1"
}

Create multiple refill

Hide/Show
ParametersDescription
keyYour API key
actionrefill
ordersOrder IDs separated by comma (up to 100)

Example response

[
  { "order": 1, "refill": 1 },
  { "order": 2, "refill": { "error": "Incorrect order ID" } }
]

Refill status

Hide/Show
ParametersDescription
keyYour API key
actionrefill_status
refillRefill ID

Example response

{
  "status": "Completed"
}

Multiple refill status

Hide/Show
ParametersDescription
keyYour API key
actionrefill_status
refillsRefill IDs separated by comma (up to 100)

Example response

[
  { "refill": 1, "status": "Completed" },
  { "refill": 2, "status": { "error": "Refill not found" } }
]

Cancel orders

Hide/Show
ParametersDescription
keyYour API key
actioncancel
ordersOrder IDs separated by comma (up to 100)

Example response

[
  { "order": 9, "cancel": { "error": "Incorrect order ID" } },
  { "order": 2, "cancel": 1 }
]

User balance

Hide/Show
ParametersDescription
keyYour API key
actionbalance

Example response

{
  "balance": "100.84292",
  "currency": "INR"
}

PHP example

Hide/Show
<?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"]);