Quality Service Always 10% Bonus 24x7 Bot Support Fast & Stable Add Funds & Get Bonus | Buy More Get More Save More
🔔

Connect With VIPPROSMM!

Get instant support, latest updates and exclusive offers from our official channels.

💬
Admin Support WhatsApp Live Chat
🤖
Support Bot Order Related Help only
✈️
Telegram Channel Join For Updates
📢
WhatsApp Channel Daily Offers & Announcements

SMM Panel API in PHP and Python: Add, Status & Balance Code

Quick answer: To use the SMM panel API in PHP and Python, send a POST request to https://vipprosmm.com/api/v2 with your API key and an action. Use balance to check funds, add with a service ID, link and quantity to place an order, and status with an order ID to track it. Every response comes back as JSON.

  • There is one endpoint, https://vipprosmm.com/api/v2, and every call is a POST request that returns JSON.
  • Three actions cover most reseller work: balance, add and status. Batch status checks take up to 100 order IDs.
  • Below you'll find copy-ready code for PHP (cURL) and Python (requests), with error handling built in.
  • Run your first test order on a cheap, low-minimum service before you automate anything big.
  • Keep your API key on the server. Never put it in JavaScript, a mobile app or a public repo.

Most resellers I talk to don't need a big SDK. They need three calls that work: check the balance, place an order, and see where that order is. This guide gives you exactly that for the SMM panel API in PHP and Python, using the real parameters from the VIPPROSMM API documentation. Nothing is made up.

What is an SMM panel API, and what do add, status and balance do?

An SMM panel API is an HTTP interface that lets your own website, bot or script place and track orders on a panel without you logging in. You send it a request with your key and an action, and it answers in JSON.

If you're new to the concept, our full SMM panel API guide for resellers covers the business side. This post sticks to the code.

Here are the three actions we'll use, plus the batch status call that saves you a lot of requests:

ActionRequired parametersWhat you get back
balancekey, action{"balance": "100.84292", "currency": "USD"}
addkey, action, service, link, quantity{"order": 23501}
status (single)key, action, ordercharge, start_count, status, remains, currency
status (multiple)key, action, orders (comma-separated, up to 100)An object keyed by order ID

The default add call also takes two optional parameters, runs and interval (in minutes). These are for spreading delivery over time. If that sounds unfamiliar, read how drip-feed works on an SMM panel first.

⚡ What do you need before writing any code?

You need three things: an account with a funded balance, your API key, and a server that can make outbound HTTPS requests.

  1. Get your API key. Log in at vipprosmm.com and open the API page in your account. Copy the key.
  2. Store it as an environment variable. In this guide the variable is called VIPPROSMM_API_KEY. Don't hard-code it in files you commit.
  3. Check your runtime. For PHP you need the cURL extension, which most hosts enable by default. For Python you need the requests library (pip install requests).
  4. Pick a service ID. Every service on the services page has a numeric ID. That's the number you pass as service.

🚀 SMM Panel API in PHP: Balance, Add and Status Code

The easiest way to call the API from PHP is one small helper function that handles the POST, decodes the JSON and throws on errors. Every other call reuses it.

The PHP helper function

<?php
define('API_URL', 'https://vipprosmm.com/api/v2');
define('API_KEY', getenv('VIPPROSMM_API_KEY'));

function smm_api(string $action, array $params = []): array
{
    $post = array_merge(['key' => API_KEY, 'action' => $action], $params);

    $ch = curl_init(API_URL);
    curl_setopt_array($ch, [
        CURLOPT_POST           => true,
        CURLOPT_POSTFIELDS     => http_build_query($post),
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT        => 30,
    ]);

    $body = curl_exec($ch);
    if ($body === false) {
        $error = curl_error($ch);
        curl_close($ch);
        throw new RuntimeException('Connection error: ' . $error);
    }
    curl_close($ch);

    $data = json_decode($body, true);
    if (!is_array($data)) {
        throw new RuntimeException('Unexpected response: ' . $body);
    }
    if (isset($data['error'])) {
        throw new RuntimeException('API error: ' . $data['error']);
    }
    return $data;
}

Check your balance in PHP

$balance = smm_api('balance');
echo 'Balance: ' . $balance['balance'] . ' ' . $balance['currency'] . PHP_EOL;

Read the currency field instead of assuming one. The docs example shows USD, but the response tells you what your own account actually uses.

Place an order in PHP (action=add)

$order = smm_api('add', [
    'service'  => 13124,
    'link'     => 'https://t.me/yourchannel/123',
    'quantity' => 100,
]);

$orderId = $order['order'];
echo 'Order placed: #' . $orderId . PHP_EOL;

Save $orderId to your database right away. If you lose it, you can't check the status, request a refill or cancel through the API.

Check order status in PHP

// Single order
$status = smm_api('status', ['order' => $orderId]);
echo $status['status'] . ' | remains: ' . $status['remains'] . PHP_EOL;

// Up to 100 orders in one request
$many = smm_api('status', ['orders' => '23501,23502,23503']);
foreach ($many as $id => $info) {
    if (isset($info['error'])) {
        echo "#$id error: " . $info['error'] . PHP_EOL;
        continue;
    }
    echo "#$id " . $info['status'] . ' (remains ' . $info['remains'] . ')' . PHP_EOL;
}

Watch for one thing in the batch call. A bad ID doesn't fail the whole request. It comes back as {"error": "Incorrect order ID"} inside that order's entry, so check each item on its own.

SMM Panel API in Python: The Same Three Calls

In Python, requests.post with form data does the same job. Here's the whole thing in one script.

import os
import requests

API_URL = "https://vipprosmm.com/api/v2"
API_KEY = os.environ["VIPPROSMM_API_KEY"]


def smm_api(action, **params):
    payload = {"key": API_KEY, "action": action, **params}
    response = requests.post(API_URL, data=payload, timeout=30)
    response.raise_for_status()
    data = response.json()
    if isinstance(data, dict) and "error" in data:
        raise RuntimeError(f"API error: {data['error']}")
    return data


# 1. Balance
balance = smm_api("balance")
print("Balance:", balance["balance"], balance["currency"])

# 2. Add order
order = smm_api(
    "add",
    service=13124,
    link="https://t.me/yourchannel/123",
    quantity=100,
)
order_id = order["order"]
print("Order placed:", order_id)

# 3. Single status
status = smm_api("status", order=order_id)
print(status["status"], "remains:", status["remains"])

# 4. Multiple status (up to 100 IDs)
many = smm_api("status", orders="23501,23502,23503")
for oid, info in many.items():
    if "error" in info:
        print(oid, "error:", info["error"])
    else:
        print(oid, info["status"], "remains:", info["remains"])

How do you send drip-feed or custom comments from Python?

You pass the extra parameters the docs list for that service type. For a default service with drip-feed, add runs and interval. For a Custom Comments service, send comments as one string with each comment on a new line. That service type takes no quantity.

# Drip-feed: 5 runs, 30 minutes apart
smm_api("add", service=13124, link="https://t.me/yourchannel/123",
        quantity=100, runs=5, interval=30)

# Custom comments (only for services of type "Custom Comments")
comments = "\n".join(["Great post!", "Love this", "Saved for later"])
smm_api("add", service=YOUR_COMMENTS_SERVICE_ID,
        link="https://www.instagram.com/p/POST_ID/", comments=comments)

To find a service's type, call action=services. Each item in the list includes type, min, max, refill and cancel, so your code can check those before it submits.

📈 What do the fields in a status response mean?

A status response tells you what you were charged, where the count started, what state the order is in and how much is left to deliver. Here's the documented example:

{ "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "USD" }
  • charge: what the order cost from your balance.
  • start_count: the count on the link when delivery started. It's useful when a customer says "nothing arrived."
  • status: the current state, for example "In progress" or "Partial".
  • remains: how many units are still to be delivered.
  • currency: the currency of the charge.

If you want to know what each state means for refunds and customer messages, see SMM panel order statuses explained. Map those states to your own site's labels so customers see clear wording.

✅ Which service should you use for your first API test order?

Use a cheap service with a low minimum. Then a bug in your code costs you a few paise, not a real budget. These rows come from our live price list at the time of writing:

Service IDService (short name)Rate per 1000Min
13124Telegram post views, last 1 post, cancel enabled₹0.2210
11319Telegram 1 post views, instant₹0.14410
13513Telegram posts views, never stuck₹0.31710
2321Instagram likes, mix Indian, 30 days refill, cancel enabled₹6.95350
11940TikTok views, cancel enabled, instant₹3.259100

Prices change, so check the live rates on the services page or call action=services before you hard-code anything. For a fuller testing routine, follow our guide on testing a new SMM supplier with small orders.

Here's a quick scenario. You run a Telegram bot that sells views. Point your staging bot at service 13124 with a quantity of 10, place one order, poll its status, and confirm your database updates the way you expect. Only after that works should you switch the bot to real customer orders.

🔒 How do you keep your API integration safe and stable?

Keep the key secret, validate input before you send it, and poll status at a sensible pace. Most integration problems come from skipping one of those three.

  • Server-side only. Your API key spends real money. If it ends up in browser JavaScript or an app bundle, anyone can drain your balance. If you think it has leaked, generate a new one from your account.
  • Check balance before add. Compare the order cost (rate × quantity ÷ 1000) with your balance first. That way you can show the customer a clean message instead of a raw error.
  • Respect min and max. Read them from action=services and reject out-of-range quantities on your side.
  • Batch your status checks. One request with 100 IDs beats 100 separate requests. A cron job that runs every few minutes is plenty for most panels.
  • Log raw responses. When something looks wrong, the exact JSON you received is the fastest way to sort it out with support.
  • Stay within platform rules. Automation makes ordering easier, not safer. Use growth services responsibly and within each platform's terms.

What are the most common mistakes with SMM API code?

Nearly every broken integration I've debugged came down to one of these:

  1. Sending GET instead of POST. The documented method is POST.
  2. Sending JSON in the body. Both examples above send form fields (http_build_query in PHP, data= in Python), not a JSON body.
  3. Using order when you meant orders. Singular takes one ID. Plural takes a comma-separated list.
  4. Passing quantity to services that don't use it. Custom Comments, for example, counts the lines you send instead.
  5. Treating status as numbers. Fields like remains and charge arrive as strings. Cast them before you do math.

If you're building this for clients, our post on using an SMM panel for digital marketing agencies covers how to package these services.

❓ Frequently Asked Questions

What is the VIPPROSMM API URL?

The API URL is https://vipprosmm.com/api/v2. Every request uses the POST method and returns JSON. The action you send (balance, add, status and so on) decides what the call does.

Can I check more than one order status at a time?

Yes. Send action=status with an orders parameter that holds up to 100 order IDs separated by commas. The response is an object keyed by order ID, and invalid IDs return an error entry without breaking the others.

Why does my add order call return an error?

The usual causes are a wrong API key, a quantity outside the service's min or max, an invalid link, or not enough balance. Log the exact error text from the JSON response and compare your parameters with the service details from action=services.

Do I need a library to use the SMM panel API in PHP and Python?

No. PHP's built-in cURL extension and Python's requests library are enough. The helper functions in this guide are only a few lines, and you can drop them into Laravel, WordPress, Django or a plain script.

Which currency does the balance API return?

The balance response includes a currency field that shows your account's currency. Read that field rather than assuming one, especially if you resell in a different currency.

Is automating orders through the API safe for my customers' accounts?

The API only changes how you place orders. It doesn't change how a platform treats the delivered engagement. Use services responsibly, follow each platform's rules, and read the risks and platform rules around buying followers.

Start Automating Your Orders

With these few helper functions, the SMM panel API in PHP and Python handles balance checks, order placement and status tracking for your whole store. Start with one test order on a cheap service, store every order ID, batch your status checks, and keep your key on the server.

Ready to connect your site or bot? Sign up at VIPPROSMM, copy your API key and run the sample code above today.

DMCA.com Protection Status