By MD Fozla Rabbi, SEO Specialist
A client asked me last month why his "auto-order" script kept double-charging him. He'd built it in an afternoon. Python, a cron job, one API key. Looked fine.
It wasn't fine. Every time the request timed out, his script retried. And every retry placed a brand-new order.
So this post is the thing I wish he'd read first. It's a plain walkthrough of how SMM panel APIs actually work, what the requests look like and where people trip up. Examples are in Python. Nothing fancy.
What an SMM panel API even is
Most SMM panels run on the same family of scripts. That's why their APIs look almost identical. You get one endpoint, usually something like /api/v2. You send a POST with your API key and an action. That's basically it.
No OAuth. No webhooks in most cases. No pagination. It's old-school and honestly kind of refreshing.
The actions you'll use 95% of the time:
-
services— returns the full catalog with IDs, rates, min and max quantity -
add— places an order -
status— checks one order (or several, comma-separated) -
balance— tells you how much credit is left -
refill— asks for a refill on orders that dropped (only on services that support it)
If you're in India and comparing providers, the API page is a decent first filter. A panel that hides its API docs usually hides other things too. I've been testing against SMMYodha lately because its catalog is wide and the responses follow the standard format. The code below works there without changes.
Step 1: Pull the service list (and cache it)
First call. Grab everything.
import requests API_URL = "https://your-panel.com/api/v2" API_KEY = "YOUR_KEY" def call(action, **params): payload = {"key": API_KEY, "action": action, **params} r = requests.post(API_URL, data=payload, timeout=20) r.raise_for_status() return r.json() services = call("services") print(len(services), "services") print(services[0]) Each item comes back with fields like service, name, category, rate, min and max. The rate is the price per 1,000 units. Keep that in mind. People forget it and then wonder why a 500-follower order cost half the listed price.
Cache this list. Seriously. Don't hit services before every order. Catalogs change maybe once a day. Store it in SQLite or even a JSON file and refresh it on a schedule.
Step 2: Place an order without shooting yourself in the foot
Here's the naive version:
order = call("add", service=1234, link="https://instagram.com/somepage", quantity=1000) print(order) # {"order": 98765} Works great. Until the network hiccups.
The panel might receive your request, create the order and then your connection drops before the response arrives. Your code sees a timeout. It retries. Now you've got two orders.
That's exactly what happened to my client. The fix is boring but it works:
- Write the order to your own database before calling the API, with status
pending_submit - Give it a local unique ID
- On timeout, don't blindly retry — mark it
unknownand check the panel's order history by hand or viastatuson recent IDs - Only retry automatically on errors where you know nothing was created (like a 4xx validation error)
import sqlite3, uuid db = sqlite3.connect("orders.db") db.execute("""CREATE TABLE IF NOT EXISTS orders (local_id TEXT PRIMARY KEY, service INT, link TEXT, qty INT, panel_id INT, state TEXT)""") def place(service, link, qty): local_id = str(uuid.uuid4()) db.execute("INSERT INTO orders VALUES (?,?,?,?,NULL,'pending_submit')", (local_id, service, link, qty)) db.commit() try: res = call("add", service=service, link=link, quantity=qty) except requests.Timeout: db.execute("UPDATE orders SET state='unknown' WHERE local_id=?", (local_id,)) db.commit() return None if "order" in res: db.execute("UPDATE orders SET panel_id=?, state='submitted' WHERE local_id=?", (res["order"], local_id)) else: db.execute("UPDATE orders SET state='rejected' WHERE local_id=?", (local_id,)) db.commit() return res Not elegant. Doesn't need to be. It just stops the double charge.
Step 3: Validate before you send
Quick list of checks I run locally, because the panel's error messages are often vague:
- Is
qtybetween the service'sminandmax? - Is it a multiple of the step size? (Some services want multiples of 10 or 100.)
- Is the link public? A private Instagram account will just sit "pending" forever.
- Is the link the right kind? Post URL for likes, profile URL for followers. Mixing these up is the #1 support ticket, I'd bet money on it.
- Do you have enough
balance? Check it once per batch, not per order.
Step 4: Poll status like a polite neighbor
There's no webhook. So you poll.
def check(panel_ids): ids = ",".join(str(i) for i in panel_ids) return call("status", orders=ids) A status response usually includes status, start_count, remains and charge. Statuses you'll see: Pending, In progress, Processing, Completed, Partial, Canceled.
Partial matters. It means some of the quantity was delivered and the rest got refunded to your balance. If you're reselling, you need to pass that refund on to your customer. Otherwise you've got angry people and a messy ledger.
My polling rules, roughly:
- Batch up to 100 IDs per request
- Poll new orders every 5–10 minutes, older ones every hour
- Stop polling anything
Completed,CanceledorPartial(store the final numbers first) - Back off if you get rate-limited — don't hammer it
Step 5: Refills and the 30-day window
Some services come with a refill guarantee. Followers drop over time. That's just how it goes. Platforms clean up accounts constantly.
If a service supports refill, you can call:
call("refill", order=98765) Store the refill ID it returns and poll it separately. And keep a note of the guarantee window per service. Requesting refills on a non-refill service just returns an error and wastes a call.
Anyway. One more practical thing for Indian users. If your customers pay you in rupees via UPI and you top up the panel the same way, track both sides in your DB. Reconciling at month-end without that is a nightmare. Ask me how I know.
What I'd look for in a provider (from the API side)
I'm an SEO person first. But I've touched enough of these integrations to have opinions:
- Consistent response format. If
statussometimes returns a string and sometimes an object, walk away. - Clear min/max and step sizes in the
servicesresponse. - A working
refillaction if they advertise refills. - Sane rate limits that are actually documented.
- INR pricing if your customers are in India, so you're not doing currency math on every order.
When people ask me for the best SMM panel in India, I don't hand them a list. I tell them to spend ₹100, place five small test orders via the API and look at the data. Start counts, delivery speed, drop rate after a week. Real numbers beat review sites every time.
If you want the business side of this, the pricing and growth strategy part, there's a solid write-up on SMM services in India that covers what I skipped here.
A few honest caveats
Let's be real for a second. Buying engagement doesn't replace good content. It can help a new page look less empty. It can push a post past that awkward zero-likes stage. But platforms do remove low-quality accounts. Anything that breaks a platform's terms carries risk. Read the platform rules. Decide for yourself.
From a pure engineering view, though? This is a fun little integration. One endpoint, five actions and a lot of lessons about idempotency that apply way beyond social media.
Quick recap
- One endpoint,
POST, API key plus anaction - Cache
services, don't fetch it per order - Save orders locally before the API call
- Never auto-retry on timeout
- Poll in batches, handle
Partialrefunds - Test providers with small real orders, not marketing pages
Full catalog I tested with is here if you want to poke at it: https://www.smmyodha.com/services
Got a weird API response you can't figure out? Drop it in the comments. I'll take a look.


