SMM Hub Panel · Developer guide

How to Use an SMM Panel API

From API key to automatic orders, with live tools, sample code and a reseller margin calculator

Selling social media services by hand stops working once orders arrive faster than you can copy them. An SMM panel API lets your own website, reseller panel or Telegram bot send orders to a provider automatically, check their status and request refills at any hour. This beginner-friendly guide shows how to use SMM panel API features from your first key to your first order. It covers the six main actions, example requests and replies, PHP and Python code, connecting a provider to your panel script and how resellers earn a profit. The full SMM panel API documentation, with exact parameters, lives on our API page.

6 actionsRequest builderPHP and PythonMargin calculator
The idea

What an SMM Panel API Actually Is

An API, short for application programming interface, is simply an agreed way for two systems to exchange messages. In an SMM panel API your system sends a request such as “add 1,000 members to this link”, and the provider answers with an order ID. Later you ask about that ID and receive progress information. Every message travels as plain text, and the replies come back as JSON, which almost any language can read.

Your customerPlaces an order on your panel, site or bot
Your systemTurns the order into an API request
SMM Hub PanelDelivers the service and reports back
The reply returns as JSON: order ID, status, refill result and balance.
Audience

Who Needs an API?

If you place more than a handful of orders, an API probably saves you time.

1

Panel owners

Resellers who sell services bought from a larger provider and want orders forwarded without touching them.

2

Agencies

Teams placing many client orders each day, who save hours by sending them from a spreadsheet or dashboard.

4

Developers

Builders of growth tools and dashboards who need live statuses and balances inside their own product.

New to the whole idea of panels? Start with how SMM panels work, then return here for the technical side.

Step 1

Get Your API Key

Getting access takes three short steps. First create a free SMM Hub Panel account, or simply log in with the form above. Second, add funds to your balance, since API orders draw from it. Third, open the API page and copy your key.

Treat the key like a password. Anyone who holds it can spend your balance. Never paste it into public code, screenshots or chats, and generate a new one at once if it leaks.
Step 2

Learn the Six Main Actions

Most panels, ours included, expose one endpoint, /api/v2. What you want to do is decided by the action parameter, so there is no maze of addresses to remember. Six actions cover almost everything a reseller needs.

services

Lists every service with its ID, price, minimum and maximum.

add

Places a new order for a service, a link and a quantity.

status

Returns progress for one order ID.

refill

Asks for a refill on eligible, refill-backed orders.

balance

Shows how much money is left in your account.

cancel

Cancels an order where the service supports it.

Free tool

Request Builder

Choose an action and fill the boxes. The builder writes the request body for you, using a placeholder instead of a real key.

Request body
key     = YOUR_API_KEY
action  = add
service = 1234
link    = https://t.me/yourchannel
quantity= 1000

Send it as an HTTP POST to https://smmhubpanel.com/api/v2.

Step 3

Place Your First Order

Call action=services first to get service IDs, prices and limits, then send an add request like the one below. When everything is valid you receive an order ID. For Telegram services the link has to be public, so read public vs private Telegram channels before you send anything.

Place an order
POST https://smmhubpanel.com/api/v2

key      = YOUR_API_KEY
action   = add
service  = 1234        // ID from action=services
link     = https://t.me/yourchannel
quantity = 1000
A successful reply
{ "order": 23501 }
Step 4

Check Status and Request Refills

Once an order exists, the order ID is your handle on it. Send it with action=status and you receive the charge, the starting count, the current state and how much remains. For services backed by refill, send action=refill with the same ID if the count falls inside the covered window. To read the statuses, see how to track an SMM panel order and what refill is in an SMM panel.

Check an order
key    = YOUR_API_KEY
action = status
order  = 23501

// reply
{ "charge": "0.11", "start_count": "3572", "status": "In progress", "remains": "157", "currency": "USD" }
PendingThe order is queued and has not started.
In progressDelivery is running. Check “remains” to see what is left.
CompletedThe full quantity has been delivered.
PartialPart of the order was delivered and the rest was not.
CanceledThe order was stopped and will not continue.
Code

Example Code in PHP and Python

Any language that can send an HTTP POST will do. The PHP version below places an order with cURL, and the Python one reads a status. Replace the key, service ID and link with your own, and keep the key in a server-side file rather than in the script itself.

PHP with cURL
<?php
$post = [
  'key'      => 'YOUR_API_KEY',
  'action'   => 'add',
  'service'  => 1234,
  'link'     => 'https://t.me/yourchannel',
  'quantity' => 1000,
];
$ch = curl_init('https://smmhubpanel.com/api/v2');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
echo $result['order'] ?? $result['error'];
Python with requests
import requests

r = requests.post("https://smmhubpanel.com/api/v2", data={
    "key": "YOUR_API_KEY",
    "action": "status",
    "order": 23501,
})
print(r.json())
Integration

Connect the API to Your Own Panel

If you already run an SMM reseller panel script, connecting us as a provider needs no coding at all. The script talks to the API for you, so your only work is choosing what to sell and at what price.

Add a provider

Open the Providers area of your panel script and enter the API URL https://smmhubpanel.com/api/v2 with your key.

Import services

Pull in the services you want to sell, for example our Telegram SMM panel range.

Set your prices

Choose your own rates, names and descriptions so customers see your brand.

Switch on automation

Enable automatic order forwarding and status sync, then place a small test order.

Profit

How Resellers Make a Profit

Reseller tool

Margin Calculator

Enter what you pay and what you charge per 1,000 units, plus the size of an order.

Your profit

$ --

Fill in all three boxes to see the result.

Your profit is the gap between what a customer pays you and what you pay us. As an illustration, buying at $0.11 per 1,000 and selling at $0.25 leaves $0.14 per 1,000, so a 20,000-unit order earns about $2.80. Those figures are an example only. Always read the live price in your account, and set rates that suit your market. Popular items to resell on Telegram include members, post views, reactions and poll votes.

Security

Best Practices for API Safety

Keep the key on the serverStore it in server-side config. Front-end code and mobile apps can be read by anyone.
Check balance firstCall the balance action before a big batch so orders do not fail halfway.
Sync on a schedulePoll statuses every few minutes instead of on every page load.
Validate linksReject malformed or private links before sending, so customers do not waste money.
Show the refill windowTell customers what is covered and use the refill action for eligible orders.
Re-import servicesIDs and prices can change, so refresh your catalogue regularly.
Troubleshooting

When an API Request Fails

When a request fails, the reply carries an error message in its error field, which the PHP sample above prints. Read it before retrying, because most failures come from one of the four causes below.

Order fails right awayCheck the key, the service ID and whether the link is public and correctly spelled.
“Not enough funds” style errorYour balance is too low. Add funds, then resend the order.
Quantity rejectedThe amount is outside the service minimum or maximum listed by action=services.
Status never changesWait a few minutes, then check the order again before assuming something is wrong.
Worldwide

Fund Your API Balance Anywhere

Resellers work from every region, so topping up is flexible. Balances are in US dollars, and you can add funds by card, by PayPal, through crypto options such as Binance Pay, Cryptomus and CoinPayments, or with a local wallet like Easypaisa or JazzCash.

VisaMastercardPayPalCheckoutBinance PayCryptomusCoinPaymentsEasypaisaJazzCash
FAQ

SMM Panel API Questions

What is an SMM panel API?

It is a way for your own website, panel or bot to place and track orders on another SMM panel automatically, without logging in and ordering by hand.

Where do I find my SMM Hub Panel API key?

Log in and open the API page. Your key is shown there. Keep it secret, because anyone with the key can spend your balance.

Can I connect SMM Hub Panel to my own SMM panel?

Yes. Most panel scripts let you add a provider with an API URL and key. Add SMM Hub Panel, import services, set your prices and orders forward automatically.

Can I request refills through the API?

Yes, for services that support refill, using the refill action. Learn more in what refill is in an SMM panel.

Does the API cost extra?

There is no separate API fee. You pay only for the orders you place, at the prices shown in your account.

What happens if my balance runs out?

New API orders fail with an error until you add funds. Check the balance action before large batches.

Which programming languages can I use?

Any language that can send an HTTP POST and read JSON, including PHP, Python and Node.js.

How often should I check order status?

Every few minutes is plenty for most shops. Constant polling adds load without giving customers anything useful.

Can I use the API from outside Pakistan?

Yes. The API works the same from any country, and funds can be added in several ways.

Start reselling with our API

Get your key, add funds and connect SMM Hub Panel to your own panel or bot.

Open API Page
Contact Support