Developer Documentation

CheapSMM API Documentation

CheapSMM API orqali xizmatlar ro‘yxatini olish, buyurtma yaratish, buyurtmalar holatini tekshirish, refill va balans ma’lumotlarini dasturingiz bilan avtomatlashtirishingiz mumkin.

POST API
GET API
/api/v2 Base URL
JSON Response
01

API Base

API bilan ishlash uchun asosiy URL va ma’lumotlar.

POST / GET
API URL https://cheap-smm.uz/api/v2
🔐
API so‘rovlarida key parametridan foydalaning. API key hisobingiz uchun maxfiy bo‘lishi kerak.
02

Service list

Barcha mavjud xizmatlar ro‘yxatini olish.

GET / POST
GET
https://cheap-smm.uz/api/v2
Parameters
Parametr Tavsif
key Your API key
action services
Example response
[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true,
        "cancel": true
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500",
        "refill": false,
        "cancel": true
    }
]
03

Add order

Tanlangan xizmat uchun yangi buyurtma yaratish.

POST
POST
https://cheap-smm.uz/api/v2
Default parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
runs (optional) Runs to deliver
interval (optional) Interval in minutes
Package parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
Custom Comments parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
comments Comments list separated by \r\n or \n
Usernames parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
usernames Usernames list separated by \r\n or \n
Usernames + Hashtags parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
usernames Usernames list separated by \r\n or \n
hashtags Hashtags list separated by \r\n or \n
Hashtag parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
hashtag Hashtag to scrape usernames from
Username parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
username URL to scrape followers from
Subscription parameters
Parametr Tavsif
key Your API key
action add
service Service ID
username Username
min Quantity min
max Quantity max
posts (optional) Use this parameter if you want to limit the number of new (future) posts that will be parsed and for which orders will be created. If posts parameter is not set, the subscription will be created for an unlimited number of posts.
old_posts (optional) Number of existing posts that will be parsed and for which orders will be created, can be used if this option is available for the service.
delay Delay in minutes. Possible values: 0, 5, 10, 15, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 360, 420, 480, 540, 600
expiry (optional) Expiry date. Format d/m/Y
Custom Comments parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
comments Comments list separated by \r\n or \n
Comments Owner parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
username Username of the comment owner
Poll parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
answer_number Answer number of the poll
Username + Comments parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
username Username
comments Comments list separated by \r\n or \n
Groups parameters
Parametr Tavsif
key Your API key
action add
service Service ID
link Link to page
quantity Needed quantity
groups Groups list separated by \r\n or \n
Example response
{
    "order": 23501
}
04

Order status

Bitta buyurtmaning holatini tekshirish.

GET / POST
GET
https://cheap-smm.uz/api/v2
Parameters
Parametr Tavsif
key Your API key
action status
order Order ID
Example response
{
    "charge": "0.27819",
    "status": "Partial",
    "currency": "UZS"
}
05

All orders

Foydalanuvchiga tegishli barcha buyurtmalarni olish.

GET / POST
GET
https://cheap-smm.uz/api/v2
Parameters
Parametr Tavsif
key Your API key
action orders
Example response
[
    {
        "customer": "125632728",
        "service": "15",
        "order": "6291",
        "status": "Completed",
        "charge": "2627.622",
        "currency": "UZS"
    },
    {
        "customer": "125632728",
        "service": "15",
        "order": "8643",
        "status": "In progress",
        "charge": "2627.622",
        "currency": "UZS"
    }
]
06

Multiple orders status

Bir nechta buyurtma holatini bitta so‘rovda tekshirish.

GET / POST
Parametr Tavsif
key Your API key
action status
orders Order IDs separated by comma (1,65,885,56,46,56)
Example response
{
    "1": {
        "charge": "0.27819",
        "status": "Partial",
        "currency": "UZS"
    },
    "10": {
        "error": "Incorrect order ID"
    },
    "100": {
        "charge": "1.44219",
        "status": "In progress",
        "currency": "UZS"
    }
}
07

Create refill

Buyurtma uchun refill so‘rovi yaratish.

POST
Parametr Tavsif
key Your API key
action refill
order Order ID
Example response
{
    "refill": "1"
}
08

Get refill status

Refill so‘rovining holatini tekshirish.

GET / POST
Parametr Tavsif
key Your API key
action refill_status
refill Refill ID
Example response
{
    "status": "Completed"
}
09

User balance

API hisobingizdagi mavjud balansni olish.

GET / POST
Parametr Tavsif
key Your API key
action balance
Example response
{
    "balance": "2182.66",
    "currency": "UZS"
}
10

PHP integration

API'ni PHP orqali chaqirish uchun oddiy misol.

PHP
Example PHP code
<?php

$api_url = "https://cheap-smm.uz/api/v2";

$api_key = "YOUR_API_KEY";

$params = [
    "key"    => $api_key,
    "action" => "services"
];

$ch = curl_init($api_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));

$response = curl_exec($ch);

if ($response === false) {
    die(curl_error($ch));
}

curl_close($ch);

$data = json_decode($response, true);

print_r($data);
↗ To‘liq PHP example
💡
Barcha API javoblari JSON formatida qaytariladi. So‘rov yuborishda key, action va tegishli parametrlarni yuboring.