SMM API Cron Job: Sync Order Statuses Without Hitting Limits
Quick answer: A good SMM API cron job runs every 5–15 minutes. It only checks orders that are still open, and it sends up to 100 order IDs in each multi status request. So 500 open orders need just 5 API calls per run. Add a short pause between batches, stop checking finished orders, and don't let two runs overlap.
Key takeaways
- Use
action=statuswith theordersparameter to check up to 100 orders in one call. - Most reseller sites do fine polling every 10 minutes. Polling every minute just wastes requests.
- Only poll open orders. Once an order is Completed, Partial or Canceled, take it out of the queue.
- Use a lock file, a timeout and an error log so one bad run doesn't break the next one.
Say you run a reseller site with 500 open orders: Instagram likes, TikTok views, Telegram post views. If your site checks each one separately every minute, that's 30,000 API calls an hour, and most of them return nothing new. Your server slows down, your logs fill up, and you put more load on the provider than you need to. This guide shows a cleaner way to do it. We build an smm api cron job that updates all 500 orders every 10 minutes using only 5 requests per run.
What is an SMM API cron job?
An SMM API cron job is a script your server runs on a schedule to ask the panel's API for the latest status of your orders. It then saves those statuses in your own database. Your customers see "In progress" or "Completed" on your site, and you never have to copy anything by hand.
"Cron" is the scheduler built into Linux servers. On Windows hosting, Task Scheduler does the same job. If you're new to the endpoints, read our SMM panel API guide first. It covers API keys, adding orders and checking your balance.
⚡ How often should you poll the status endpoint?
For most resellers, every 10 minutes is a good default for SMM API status polling. Orders on an SMM panel take anywhere from a few minutes to several days, so checking every minute rarely shows you anything new.
A smarter way is to change the interval based on how old the order is and how fast the service usually delivers. Here are some real average times from our live list on the VIPPROSMM services page. Average times change, so always check the current numbers:
| Example service (ID) | Avg. time shown | Suggested polling |
|---|---|---|
| Telegram Post Views, last 1 post (13124) | 5 minutes | Every 5 min for the first hour |
| Instagram Indian Views, instant (13863) | 16 minutes | Every 5–10 min |
| Instagram Reels Views, never stuck (13898) | 54 minutes | Every 10 min |
| TikTok Video Views, 100M/day (13477) | 1 hour 47 minutes | Every 10–15 min |
| Instagram Likes, Mix Indian, 30 days refill (2321) | 58 hours 11 minutes | Every 30 min after the first hour |
| Instagram Likes, Indian Mix, 5K/D (1464) | 166 hours 45 minutes | Every 30–60 min |
A simple rule we like: orders younger than 1 hour get checked every run, orders between 1 and 24 hours old every second or third run, and older orders once an hour. Fast orders still update fast, and slow orders stop costing you calls.
📈 How do you batch 500 orders in one multi status API request?
The multi status API request lets you send up to 100 order IDs separated by commas, and you get all their statuses back in one JSON response. So 500 orders become 5 calls instead of 500.
The request is a POST to https://vipprosmm.com/api/v2 with three parameters:
key: your API keyaction:statusorders: order IDs separated by commas, up to 100 IDs
The response is an object where each key is an order ID. A valid order returns charge, start_count, status, remains and currency. A wrong ID returns {"error": "Incorrect order ID"} for that ID only, and the other IDs in the batch still come back normally.
Here is how one run goes for 500 open orders:
- Select open orders. Pull every order from your database whose status is not Completed, Partial or Canceled, and that is due for a check.
- Split them into groups of 100. 500 orders give you 5 batches.
- Send one status request per batch. Join the IDs with commas and POST them.
- Wait 1–2 seconds between batches. This spreads the load and makes your traffic look gentle, not like a burst.
- Save the results. Update status, remains and start count for each order. Log any errors.
- Close finished orders. Mark final statuses so they are skipped next time.
- Release the lock. The next run can start cleanly 10 minutes later.
What does the order status sync script look like?
Below is a short Python example for order status sync. It uses only the documented parameters. For full PHP and Python clients with order placement and balance checks, see our PHP and Python sample code.
import os, sys, time, requests
API_URL = "https://vipprosmm.com/api/v2"
API_KEY = "YOUR_API_KEY"
BATCH_SIZE = 100
LOCK_FILE = "/tmp/smm_sync.lock"
FINAL = {"Completed", "Partial", "Canceled"}
def chunks(ids, size):
for i in range(0, len(ids), size):
yield ids[i:i + size]
def sync(open_ids):
for batch in chunks(open_ids, BATCH_SIZE):
try:
r = requests.post(API_URL, data={
"key": API_KEY,
"action": "status",
"orders": ",".join(str(i) for i in batch),
}, timeout=30)
data = r.json()
except Exception as e:
log_error("batch failed", e)
continue
for order_id, info in data.items():
if "error" in info:
log_error(order_id, info["error"])
continue
save_status(order_id, info["status"], info["remains"],
info["start_count"], info["charge"])
if info["status"] in FINAL:
close_order(order_id)
time.sleep(2)
if os.path.exists(LOCK_FILE):
sys.exit("Previous run still active")
open(LOCK_FILE, "w").close()
try:
sync(get_open_order_ids())
finally:
os.remove(LOCK_FILE)
get_open_order_ids, save_status, close_order and log_error are your own database functions. Then schedule it with a crontab line like this:
*/10 * * * * /usr/bin/python3 /home/site/sync_orders.py >> /home/site/sync.log 2>&1
Not sure what "Partial" or "In progress" means for your customer? Our order statuses explained post covers each one, including when a partial order gets a refund for the remaining amount.
🔒 How do you avoid hitting API limits?
You avoid limits by sending fewer, smarter requests. That means batching, spacing calls out and never polling orders you don't need to. Our API docs don't publish a fixed requests-per-minute number, so build your script to be polite whatever the limit is:
- Always batch. One call for 100 orders beats 100 calls for one order each.
- Skip final orders. This one habit usually cuts your call count more than anything else.
- Prevent overlap. Without a lock, a slow run plus the next scheduled run means double traffic.
- Back off on errors. If a batch times out or returns something odd, wait and retry next run. Don't hammer it in a loop.
- Cache your service list. Call
action=servicesonce or twice a day, not on every page load. - Use multi refill and cancel too.
refillandcancelalso accept up to 100 order IDs, andrefill_statusaccepts up to 100 refill IDs.
If you get unexpected errors over and over, open a ticket at https://vipprosmm.com/tickets and include the time and the order IDs. That's much faster than guessing.
Risks & limits
A clean cron script makes your panel work better, but it doesn't change the basics of this business. Be honest with yourself and your customers about these points:
- Platform rules. Instagram, TikTok, YouTube and other platforms don't allow artificial engagement in their terms, at the time of writing. Read each platform's official help center and use growth services responsibly.
- Counts can drop. Followers, likes or views can go down after delivery. Refill options depend on the service and are written in its name or description, for example "30 Days Refill" or "No Refill". Your sync shows the order status, not what happens on the profile weeks later.
- Crypto payments can't be reversed. If you add funds with USDT, Binance Pay or other crypto, a sent transaction can't be pulled back. Check the amount and address before you confirm.
- The network must match. USDT is accepted on TRC20 and BEP20. Sending on a different network than the one shown can lose the funds. Accepted methods, fees and minimums are on the Add Funds page.
- Your code is your responsibility. Keep your API key secret, keep it out of public repositories, and test with a few orders before you run a large batch.
❓ Frequently Asked Questions
How many orders can I check in one API request?
You can check up to 100 order IDs in one multi status request. Send them comma-separated in the orders parameter with action=status. For more than 100 orders, split them into batches.
Is polling every minute bad?
Usually, yes. Most orders don't change that fast, so you waste requests and server resources. Every 10 minutes works for most resellers, with faster checks only for very new orders.
What happens if one order ID in a batch is wrong?
Only that ID returns an error such as "Incorrect order ID". The rest of the batch still returns normal status data. Log the error and check the ID in your database.
When should my script stop checking an order?
Stop once the order reaches a final status like Completed, Partial or Canceled. If you need to track refills later, use the refill_status action with the refill ID instead.
Can I run the cron job on shared hosting?
Yes, most shared hosting control panels have a cron jobs section. Set the command to run your PHP or Python script every 10 minutes. Make sure your host allows outgoing HTTPS requests and that the script finishes before the next run starts.
Final thoughts
A well-built smm api cron job keeps your site accurate without wasting calls. Poll every 10 minutes, batch up to 100 orders per request, skip finished orders and lock each run. With that setup, 500 open orders take 5 calls instead of hundreds. The same pattern works when you grow to 5,000. If you want an API that supports multi status, multi refill and bulk cancel, VIPPROSMM is built for resellers like you. Ready to connect your site? Create your free VIPPROSMM account, grab your API key and run your first sync today.