SMM API Documentation v2.0
Complete REST API guide for social media marketing integration
POST
https://hafizpanel.com/api/v2
Response Format: JSON | 99.9% Uptime | Instant Processing
| HTTP Method | POST |
| API URL | https://hafizpanel.com/api/v2 |
| Return format | JSON |
Add Order
| Parameter | Description |
|---|---|
| key | Your API key |
| action | add |
| service | Service ID |
| url | Link to page |
| quantity | Needed quantity |
| comments (optional) | Comments list (encoded) |
| order_refference / runs (optional) | Runs to deliver |
| interval (optional) | Interval in minutes |
β Example success response
{
"order": 23501
}
β Example error response
{
"error": "incorrect service type"
}
Services List
| Parameter | Description |
|---|---|
| key | Your API key |
| action | services |
π Example response
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "Instagram",
"rate": "0.90",
"min": "50",
"max": "10000"
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "TikTok",
"rate": "8",
"min": "10",
"max": "1500"
}
]
Order Status
| Parameter | Description |
|---|---|
| key | Your API key |
| action | status |
| order | Order ID |
π Example response
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
Multiple Order Status
| Parameter | Description |
|---|---|
| key | Your API key |
| action | status |
| orders | Order IDs separated by comma (100 orders at once) |
π Example response
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
}
}
Balance
| Parameter | Description |
|---|---|
| key | Your API key |
| action | balance |
π° Example response
{
"balance": 10000,
"currency": "USD"
}
Refill
| Parameter | Description |
|---|---|
| key | Your API key |
| action | refill |
| order | Order ID |
π Example response
{
"status": "Success",
"message": "Your order successfully added for refill. Thank you for patience."
}
Cancel
| Parameter | Description |
|---|---|
| key | Your API key |
| action | cancel |
| order | Order ID |
β Example response
{
"status": "Success",
"message": "Your order was successfully marked for cancellation. Thank you for patience."
}
Integration Examples
cURL Example:
curl -X POST https://hafizpanel.com/api/v2 \ -d 'key=YOUR_API_KEY' \ -d 'action=add' \ -d 'service=1' \ -d 'url=https://instagram.com/username' \ -d 'quantity=100'
PHP Example:
<?php
$api_url = 'https://hafizpanel.com/api/v2';
$data = [
'key' => 'YOUR_API_KEY',
'action' => 'add',
'service' => 1,
'url' => 'https://instagram.com/username',
'quantity' => 100
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
Python Example:
import requests
api_url = 'https://hafizpanel.com/api/v2'
data = {
'key': 'YOUR_API_KEY',
'action': 'add',
'service': 1,
'url': 'https://instagram.com/username',
'quantity': 100
}
response = requests.post(api_url, data=data)
print(response.json())
JavaScript (Node.js) Example:
const axios = require('axios');
const data = new URLSearchParams({
key: 'YOUR_API_KEY',
action: 'add',
service: 1,
url: 'https://instagram.com/username',
quantity: 100
});
axios.post('https://hafizpanel.com/api/v2', data)
.then(response => console.log(response.data))
.catch(error => console.error(error));