API Base
API bilan ishlash uchun asosiy URL va ma’lumotlar.
Service list
Barcha mavjud xizmatlar ro‘yxatini olish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
services |
[
{
"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
}
]
Add order
Tanlangan xizmat uchun yangi buyurtma yaratish.
| 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 |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
comments
|
Comments list separated by \r\n or \n |
| 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 |
| 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 |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
quantity
|
Needed quantity |
hashtag
|
Hashtag to scrape usernames from |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
quantity
|
Needed quantity |
username
|
URL to scrape followers from |
| 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 |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
comments
|
Comments list separated by \r\n or \n |
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
add |
service
|
Service ID |
link
|
Link to page |
quantity
|
Needed quantity |
username
|
Username of the comment owner |
| 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 |
| 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 |
| 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 |
{
"order": 23501
}
Order status
Bitta buyurtmaning holatini tekshirish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
status |
order
|
Order ID |
{
"charge": "0.27819",
"status": "Partial",
"currency": "UZS"
}
All orders
Foydalanuvchiga tegishli barcha buyurtmalarni olish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
orders |
[
{
"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"
}
]
Multiple orders status
Bir nechta buyurtma holatini bitta so‘rovda tekshirish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
status |
orders
|
Order IDs separated by comma (1,65,885,56,46,56) |
{
"1": {
"charge": "0.27819",
"status": "Partial",
"currency": "UZS"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"status": "In progress",
"currency": "UZS"
}
}
Create refill
Buyurtma uchun refill so‘rovi yaratish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
refill |
order
|
Order ID |
{
"refill": "1"
}
Get refill status
Refill so‘rovining holatini tekshirish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
refill_status |
refill
|
Refill ID |
{
"status": "Completed"
}
User balance
API hisobingizdagi mavjud balansni olish.
| Parametr | Tavsif |
|---|---|
key
|
Your API key |
action
|
balance |
{
"balance": "2182.66",
"currency": "UZS"
}
PHP integration
API'ni PHP orqali chaqirish uchun oddiy misol.
<?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);