Public API
Integrate our SMM services into your own panel or application.
v2
services
Service list
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | services |
Response JSON
[
{
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram",
"rate": "0.5000",
"min": 100,
"max": 10000,
"cancel": false
}
]
add
Add order
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | add |
| servicerequired | Service ID |
| linkrequired | URL to promote |
| quantityrequired | Required quantity |
| runsoptional | Runs (drip-feed) |
| intervaloptional | Interval in minutes (drip-feed) |
| usernameoptional | Username (subscription orders) |
| minoptional | Min posts per run (subscription) |
| maxoptional | Max posts per run (subscription) |
| postsoptional | Posts count (subscription) |
| delayoptional | Delay in minutes (subscription) |
| expiryoptional | Expiry date YYYY-MM-DD (subscription) |
| commentsoptional | Comments list, one per line |
Response JSON
{
"order": 12345
}
status
Order status
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | status |
| orderrequired | Order ID |
Response JSON
{
"charge": "0.2700",
"start_count": 3572,
"status": "Partial",
"remains": 157,
"currency": "USD"
}
status
Multiple orders status
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | status |
| ordersrequired | Order IDs separated by a comma, up to 100 |
Response JSON
{
"1": {
"charge": "0.2700",
"start_count": 3572,
"status": "Partial",
"remains": 157,
"currency": "USD"
},
"2": {
"charge": "1.0800",
"start_count": 500,
"status": "In progress",
"remains": 380,
"currency": "USD"
}
}
refill
Create refill
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | refill |
| orderrequired | Order ID |
Response JSON
{
"refill": 1
}
refill
Create multiple refill
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | refill |
| ordersrequired | Order IDs separated by a comma, up to 50 |
Response JSON
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"error": "Refill is not possible"
}
]
refill_status
Get refill status
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | refill_status |
| refillrequired | Refill ID |
Response JSON
{
"status": "Completed"
}
refill_status
Get multiple refill status
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | refill_status |
| refillsrequired | Refill IDs separated by a comma, up to 100 |
Response JSON
{
"1": { "status": "Completed" },
"2": { "status": "Pending" },
"3": { "status": "Rejected" }
}
cancel
Cancel orders
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | cancel |
| ordersrequired | Order IDs separated by a comma, up to 100 |
Response JSON
[
{ "order": 1, "cancel": true },
{ "order": 2, "cancel": false, "error": "Order cannot be cancelled in its current status." }
]
balance
User balance
| Parameter | Description |
|---|---|
| keyrequired | Your API key |
| actionrequired | balance |
Response JSON
{
"balance": "100.8400",
"currency": "USD"
}
code
PHP Example
PHP
<?php
$api_url = 'https://theskypanel.com/api/v2';
$api_key = 'YOUR_API_KEY';
function smm_call($url, $key, $data) {
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array_merge(['key' => $key], $data)),
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_TIMEOUT => 30,
]);
$result = curl_exec($ch);
curl_close($ch);
return json_decode($result, true);
}
// Get services
$services = smm_call($api_url, $api_key, ['action' => 'services']);
// Check balance
$balance = smm_call($api_url, $api_key, ['action' => 'balance']);
echo 'Balance: $' . $balance['balance'];
// Place order
$order = smm_call($api_url, $api_key, [
'action' => 'add',
'service' => 1,
'link' => 'https://example.com/page',
'quantity' => 100,
]);
echo 'Order ID: ' . $order['order'];
// Check order status
$status = smm_call($api_url, $api_key, [
'action' => 'status',
'order' => $order['order'],
]);
echo 'Status: ' . $status['status'];