support@totalwebx.com 06 00 36 14 71

API - Introduction

API Endpoint: https://smm.totalwebx.com/API
Your API Key: Login to get your API key
Requests limit : 100 requests per 1 hour

Use your API key in the Authorization header as follows:

Authorization: Bearer YOUR_API_KEY

API Methods

Method Description Request Type Example
get_services Fetch a list of available services GET
GET /API?action=get_services
get_balance Check your account balance GET
GET /API?action=get_balance
place_order Place a new order for services POST
POST /API?action=place_order
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer YOUR_API_KEY

service_id=3305&link=https://instagram.com/user&quantity=100
order_status Check the status of an existing order GET
GET /API?action=order_status&order_id=123456

Example Response Formats

Get Services Response
{
    "services": {
        "3305": {
            "name": "Instagram Followers",
            "category": "Instagram",
            "description": "[TOP QUALITY] [Refill: 30D] [500K] [Start Time: 0 - 1 Hr] [Speed: 50K/D]",
            "price_per_unit": 0.0741,
            "min": 10,
            "max": 50000
        },
        "1761": {
            "name": "Instagram Likes",
            "category": "Instagram",
            "description": "[TOP QUALITY] [Refill: 30D] [60K] [Start Time: 0 - 1 Hr] [Speed: 60K/D]",
            "price_per_unit": 0.0076,
            "min": 100,
            "max": 10000
        }
    }
}
Get Balance Response
{
    "balance": 50.75,
    "currency": "MAD"
}
Place Order Response
{
    "order_id": "123456"
}
Order Status Response
{
    "order_status": "completed",
    "quantity": 100,
    "start_count": 500,
    "remains": 0
}

Full code example

PHP code
<?php
$api_key = "YOUR_API_KEY"; // REPLACE WITH YOUR API KEY
$api_url = "https://smm.totalwebx.com/API";  // API endpoint

// Function to Send API Requests
function sendRequest($endpoint, $method = "GET", $data = [])
{
    global $api_key, $api_url;
    
    $url = $api_url . "?action=" . $endpoint;
    $headers = ["Authorization: Bearer " . $api_key];

    $ch = curl_init();

    if ($method === "POST") {
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    } elseif ($method === "GET") {
        $url .= "&" . http_build_query($data);
    }

    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

    $response = curl_exec($ch);
    curl_close($ch);

    return json_decode($response, true);
}

// Function to Get Services
function getServices()
{
    $response = sendRequest("get_services");
    return $response ?: ["error" => "Failed to retrieve services"];
}

// Function to Get Balance
function getBalance()
{
    $response = sendRequest("get_balance");
    return $response ?: ["error" => "Failed to retrieve balance"];
}

// Function to Place an Order
function placeOrder($service_id, $link, $quantity)
{
    $data = [
        "service_id" => $service_id,
        "link" => $link,
        "quantity" => $quantity
    ];
    
    $response = sendRequest("place_order", "POST", $data);
    return $response ?: ["error" => "Failed to place order"];
}

// Function to Check Order Status
function getOrderStatus($order_id)
{
    $response = sendRequest("order_status", "GET", ["order_id" => $order_id]);
    return $response ?: ["error" => "Failed to retrieve order status"];
}

// EXAMPLE USAGE:

// Get Services List
print_r(getServices());

// Check Balance
print_r(getBalance());

// Place an Order (Example)
print_r(placeOrder("3305", "https://instagram.com/user", 100));

// Check Order Status (Example)
print_r(getOrderStatus("123456"));
?>

        

API Test Panel


API Endpoint: https://smm.totalwebx.com/API
Requests limit : 100 requests per 1 hour

Place an Order

Check Order Status

Waiting for response...
WhatsApp