https://smm.totalwebx.com/API
Login to get your API key
100 requests per 1 hour
Use your API key in the Authorization
header as follows:
Authorization: Bearer YOUR_API_KEY
Method | Description | Request Type | Example |
---|---|---|---|
get_services |
Fetch a list of available services | GET |
|
get_balance |
Check your account balance | GET |
|
place_order |
Place a new order for services | POST |
|
order_status |
Check the status of an existing order | GET |
|
{
"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
}
}
}
{
"balance": 50.75,
"currency": "MAD"
}
{
"order_id": "123456"
}
{
"order_status": "completed",
"quantity": 100,
"start_count": 500,
"remains": 0
}
<?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"));
?>
https://smm.totalwebx.com/API
100 requests per 1 hour
Waiting for response...