Picture a tiny social media agency in Pune. Ten clients. One laptop. Way too many browser tabs. Sooner or later the owner asks one question. "Can my panel orders just run by themselves?"
Yes. A few dozen lines of Node.js and a free Sunday will do it. Here's the walkthrough, plus the bugs worth dodging.
Why bother with an SMM panel API at all?
Clicking buttons works fine for five orders a week. It falls apart at fifty. You forget a link. You paste the wrong quantity. Somebody's Instagram reel gets YouTube views (it happens).
An SMM panel API fixes most of that. You send one POST request and the order goes in. Same for status checks. Same for refills. Your script never gets tired and never pastes the wrong URL. Well, unless you wrote it that way.
The setup
For this walkthrough I'm using SMMYodha, an Indian panel. Payment there is UPI only (Paytm, PhonePe, Google Pay, BharatPe), which keeps topping up the balance simple.
Most panels share a very similar API shape. So even if you use something else, the code below will look familiar.
What you need:
- Node.js 18 or newer (it ships with
fetchbuilt in) - An API key from your panel dashboard
- A
.envfile so the key never lands in Git - Ten minutes and some chai
The docs live on the SMMYodha API page. Every call is a POST to https://smmyodha.com/api/v2 with your key and an action. Responses come back as JSON.
Step 1: a tiny wrapper
I hate repeating myself. So start with one helper function.
// panel.js import 'dotenv/config'; const API_URL = 'https://smmyodha.com/api/v2'; const API_KEY = process.env.SMM_API_KEY; export async function callPanel(action, params = {}) { const body = new URLSearchParams({ key: API_KEY, action, ...params }); const res = await fetch(API_URL, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body, }); if (!res.ok) { throw new Error(`HTTP ${res.status}`); } const data = await res.json(); if (data.error) { throw new Error(`Panel error: ${data.error}`); } return data; } Nothing fancy. Form-encoded body, JSON back, loud errors. Honestly, loud errors save hours of guessing later.
Step 2: pull the service list
Every order needs a service ID. You don't guess those. You ask for them.
import { callPanel } from './panel.js'; const services = await callPanel('services'); const reels = services.filter(s => s.name.toLowerCase().includes('instagram') && s.name.toLowerCase().includes('reel') ); console.table(reels.map(s => ({ id: s.service, name: s.name, rate: s.rate, min: s.min, max: s.max, }))); Tip from experience: cache this list to a JSON file. Service IDs and rates change sometimes. You don't want to hit the endpoint before every single order either.
Step 3: place an order
Here's the part that actually matters.
const order = await callPanel('add', { service: 1234, // ID from the list above link: 'https://www.instagram.com/p/XXXX/', quantity: 500, }); console.log('Order ID:', order.order); A few things worth knowing before you ship:
- Respect min and max. The panel rejects anything outside the range. Validate before you send.
- Store the order ID right away. In a file, a sheet, SQLite, anything. Lose it and you lose your status checks.
- Drip-feed is built in. For the default order type you can add
runsandinterval(in minutes). Great when a client wants growth that looks gradual.
Step 4: check status in bulk
Checking orders one by one is a waste of requests. The status action takes up to 100 comma-separated IDs through the orders parameter.
const ids = ['10101', '10102', '10103']; const statuses = await callPanel('status', { orders: ids.join(',') }); for (const [id, info] of Object.entries(statuses)) { console.log(id, info.status, 'remaining:', info.remains); } Put this on a cron job every 30 minutes. Have it write a short summary to a Google Sheet. Now the agency checks one sheet instead of ten tabs. That alone is a better week.
Step 5: refills and balance
Two more actions worth wiring in early:
-
refillwith anorder(orordersfor bulk) asks for a refill when a service supports it -
balancereturns your current balance so you can warn yourself before it hits zero
const { balance, currency } = await callPanel('balance'); if (Number(balance) < 200) { console.warn(`Low balance: ${balance} ${currency}. Top up via UPI.`); } Small thing. But a script that silently fails because the wallet is empty? That's the worst kind of bug. You only notice when a client calls.
Common mistakes worth skipping
Quick list. Every one of these is easy to make:
- Committing the API key. Even to a private repo. If it happens, rotate the key the same day.
- Building the request body by hand. Links with query strings break.
URLSearchParamshandles encoding. Raw string gluing doesn't. - Retrying failed orders blindly. Bad idea. Check status first or you may double-order.
- Skipping response logs. When something goes sideways you'll have zero clues. Make every call write a line to a log file.
A quick word on being honest with clients
Okay, small tangent. Tools like this make growth faster. They don't make content better. A good agency tells its clients that a boost helps a good reel get seen sooner. It can't rescue a bad one. And each platform has its own rules. Read them before you push big numbers.
That kind of honesty keeps clients longer than any script.
Where to go from here
If you're in India and want to try this yourself, a cheap and UPI-friendly SMM panel India setup is the easiest starting point. Grab a key and copy the wrapper above. Then build one action at a time.
The natural next step is a tiny Express dashboard on top. Maybe that's part two.
You can browse the full service list at https://www.smmyodha.com/services before you write a single line.
Got questions or a cleaner way to do bulk status? Drop it in the comments.
Written by MD Fozla Rabbi, SEO Specialist.

