API

SMM panellar uçun standart API (v2). Bot yoki saytingizdan buyurtma bering, holatini va balansni tekşiring.

HTTP metodPOST
API URL
https://cheapsmm.uz/api/v2
Javob formatiJSON

Xizmatlar röyxati

Parametrlar

ParametrTavsif
keyYour API key
actionservices

Javob namunasi

[
    {
        "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"
    }
]

Buyurtma beriş

Parametrlar

ParametrTavsif
keyYour API key
actionadd
serviceService ID
linkLink to page
quantityNeeded quantity

Parametrlar

ParametrTavsif
keyYour API key
actionadd
serviceService ID
linkLink to page

Parametrlar

ParametrTavsif
keyYour API key
actionadd
serviceService ID
linkLink to page
commentsComments list separated by \n or \r\n

Parametrlar

ParametrTavsif
keyYour API key
actionadd
serviceService ID
linkLink to page
quantityQuantity per run
runsRuns to deliver
intervalInterval in minutes

Parametrlar

ParametrTavsif
keyYour API key
actionadd
serviceService ID
usernameUsername
minQuantity min
maxQuantity max
posts optionalNew posts count
delayDelay in minutes: 0, 5, 10, 15, 30, 60, 90
expiry optionalExpiry date, format Y-m-d

Javob namunasi

{
    "order": 23501
}

Buyurtma holati

Parametrlar

ParametrTavsif
keyYour API key
actionstatus
orderOrder ID

Javob namunasi

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

Holatlar: Pending In progress Processing Completed Partial Canceled

Balans

Parametrlar

ParametrTavsif
keyYour API key
actionbalance

Javob namunasi

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

Kod namunasi

curl -X POST https://cheapsmm.uz/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=add \
  -d service=1 \
  -d link=https://t.me/channel \
  -d quantity=1000
<?php
function cheapsmm($data) {
    $data['key'] = 'YOUR_API_KEY';
    $ch = curl_init('https://cheapsmm.uz/api/v2');
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $res = curl_exec($ch);
    curl_close($ch);
    return json_decode($res, true);
}

$balance = cheapsmm(['action' => 'balance']);
$order   = cheapsmm(['action' => 'add', 'service' => 1,
                     'link' => 'https://t.me/channel', 'quantity' => 1000]);
$status  = cheapsmm(['action' => 'status', 'order' => $order['order']]);