โก REST API โข POST yoki GET โข JSON
API integratsiya
Buyurtmalar, xizmatlar, statuslar, refill va balansni bitta qulay API orqali boshqaring. Har bir blokda kerakli parametrlar va tayyor javob namunasi bor.
API Base
Asosiy ulanish manzili va ishlash usuli.
Service list
Barcha xizmatlar ro'yxatini olish.
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
}
]Add order
Xizmat turini tanlang, kerakli parametrlarni yuboring va buyurtma yarating.
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
key
Your API key
action
add
service
Service ID
link
Link to page
key
Your API key
action
add
service
Service ID
link
Link to page
comments
Comments list separated by \r\n or \n
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
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
key
Your API key
action
add
service
Service ID
link
Link to page
quantity
Needed quantity
hashtag
Hashtag to scrape usernames from
key
Your API key
action
add
service
Service ID
link
Link to page
quantity
Needed quantity
username
URL to scrape followers from
key
Your API key
action
add
service
Service ID
username
Username
min
Quantity min
max
Quantity max
posts (optional)
Limit number of future posts. If empty, unlimited posts.
old_posts (optional)
Number of existing posts to parse.
delay
Delay in minutes: 0, 5, 10, 15, 30, 60...
expiry (optional)
Expiry date. Format d/m/Y
key
Your API key
action
add
service
Service ID
link
Link to page
comments
Comments list separated by \r\n or \n
key
Your API key
action
add
service
Service ID
link
Link to page
quantity
Needed quantity
username
Username of the comment owner
key
Your API key
action
add
service
Service ID
link
Link to page
quantity
Needed quantity
answer_number
Answer number of the poll
key
Your API key
action
add
service
Service ID
link
Link to page
username
Username
comments
Comments list separated by \r\n or \n
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
}Order status
Bitta buyurtma holatini tekshirish.
key
Your API key
action
status
order
Order ID
Example response
{
"charge": "0.27819",
"status": "Partial",
"currency": "UZS"
}All orders
Barcha buyurtmalar ro'yxatini olish.
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"
}
]Multiple status
action=status, orders=1,65,885,56
Multiple status response
{
"1": {
"charge": "0.27819",
"status": "Partial",
"currency": "UZS"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"status": "In progress",
"currency": "UZS"
}
}Refill
Refill yaratish va refill holatini tekshirish.
Create refill
key, action=refill, order=Order ID
Get refill status
key, action=refill_status, refill=Refill ID
Create refill response
{
"refill": "1"
}Refill status response
{
"status": "Completed"
}User balance
API kalit egasining balansini ko'rish.
key
Your API key
action
balance
Example response
{
"balance": "2182.66",
"currency": "UZS"
}PHP example
PHP orqali APIga so'rov yuborish uchun tayyor boshlang'ich kod.
Example of PHP code
<?php
$api_url = "https://uzbek-seen.uz/api/v2";
$api_key = "YOUR_API_KEY";
$post = [
"key" => $api_key,
"action" => "services"
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>