API Documentation | Hafiz Panel - Best SMM API Provider | SMM API v2 Documentation 2025

SMM API Documentation v2.0

Complete REST API guide for social media marketing integration

Generate / Change API Key
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
keyYour API key
actionadd
serviceService ID
urlLink to page
quantityNeeded 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
keyYour API key
actionservices

πŸ“‹ 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
keyYour API key
actionstatus
orderOrder ID

πŸ“Š Example response

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

Multiple Order Status

Parameter Description
keyYour API key
actionstatus
ordersOrder 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
keyYour API key
actionbalance

πŸ’° Example response

{
    "balance": 10000,
    "currency": "USD"
}

Refill

Parameter Description
keyYour API key
actionrefill
orderOrder ID

πŸ”„ Example response

{
    "status": "Success",
    "message": "Your order successfully added for refill. Thank you for patience."
}

Cancel

Parameter Description
keyYour API key
actioncancel
orderOrder 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));
Need API Support?

Our technical team is available 24/7 on WhatsApp and Live Chat

Contact Support