API v2
STAR SMM Panel API
SMM API v2 มาตรฐาน เพิ่ม URL และคีย์ของคุณในแผงที่ใช้อยู่ แล้วบริการ ออร์เดอร์ และสถานะจะเชื่อมต่อได้ทันที
- Base URL
https://star-smm-panel.com/api/v2- คำขอ
- แนะนำ POST (ใช้ GET ได้) · form (application/x-www-form-urlencoded) หรือ JSON
- การยืนยันตัวตน
- พารามิเตอร์ key ในทุกคำขอ
- การตอบกลับ
- JSON ข้อผิดพลาดอยู่ในรูป {"error": "message"}
- สกุลเงิน
- USD (deducted from your balance)
- จำกัดอัตราการเรียก
- 300 ครั้ง/นาทีต่อคีย์ · ค้นหา 60 ครั้ง/นาที
- ยอดเงินคงเหลือ
- services, deposit, deposit_status และ balance ใช้ได้ก่อนการเติมเงินครั้งแรก (ตั้งค่าแผง เติมเงิน) ส่วนอื่นทั้งหมดใช้ได้เมื่อคุณเติมเงินแล้ว
เชื่อมต่อแผงที่คุณใช้อยู่
แผงใดก็ตามที่ใช้ SMM API v2 มาตรฐาน (Perfect Panel และอื่นๆ) สามารถเพิ่มเราเป็นผู้ให้บริการได้
- 01
เพิ่มผู้ให้บริการ
Admin > Providers > Add API URL: https://star-smm-panel.com/api/v2, API key: คีย์ของคุณ
- 02
นำเข้าบริการ
โหลดรายการบริการของเรา เลือกบริการ และตั้งราคาขายของคุณ ID บริการของเราไม่เปลี่ยน
- 03
เติมยอดเงิน
ออร์เดอร์ชำระจากยอดเงินคงเหลือของคุณที่นี่ เติมเงินได้ที่ แดชบอร์ด > เติมเงิน
ตัวอย่างโค้ด: สั่งซื้อ
สั่งบริการ #40 (Instagram Followers [South Korea]) จำนวน 1,000 แทนที่ YOUR_API_KEY ด้วยคีย์ของคุณ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=add \ -d service=40 \ -d link=https://www.instagram.com/yourbrand/ \ -d quantity=1000
<?php
$ch = curl_init('https://star-smm-panel.com/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'add',
'service' => 40,
'link' => 'https://www.instagram.com/yourbrand/',
'quantity' => 1000,
]),
]);
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $res['order'] ?? $res['error'];import requests
res = requests.post("https://star-smm-panel.com/api/v2", data={
"key": "YOUR_API_KEY",
"action": "add",
"service": 40,
"link": "https://www.instagram.com/yourbrand/",
"quantity": 1000,
}, timeout=30).json()
print(res.get("order") or res.get("error"))const res = await fetch("https://star-smm-panel.com/api/v2", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
key: process.env.STAR_API_KEY,
action: "add",
service: 40,
link: "https://www.instagram.com/yourbrand/",
quantity: 1000,
}),
}).then((r) => r.json());
console.log(res.order ?? res.error);action=servicesรายการบริการ
บริการทั้งหมดที่สั่งได้ rate คือ USD ต่อ 1,000 ID บริการไม่เปลี่ยน จึงจับคู่ในแผงของคุณได้ทันที
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "services" |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=services
การตอบกลับ
[
{
"service": 40,
"name": "Instagram Followers [South Korea]",
"type": "Default",
"category": "Instagram Followers",
"rate": "4.52408",
"min": "100",
"max": "100000",
"refill": false,
"cancel": true
},
{
"service": 44,
"name": "Instagram Followers [United States]",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.96032",
"min": "100",
"max": "100000",
"refill": false,
"cancel": true
},
…
]action=addสั่งซื้อ
ค่าบริการจะหักจากยอดเงินคงเหลือและส่ง ID ออร์เดอร์กลับมา บัญชีส่วนตัวและลิงก์ที่เปิดไม่ได้จะถูกคัดออกอัตโนมัติระหว่างดำเนินการ และจำนวนที่ไม่ได้ส่งจะคืนเข้ายอดเงินคงเหลือ
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "add" |
| service | จำเป็น | ID บริการ (service จาก services) |
| link | จำเป็น | ลิงก์โปรไฟล์ (ผู้ติดตาม การเข้าชมโปรไฟล์) ลิงก์คอมเมนต์ (ไลก์คอมเมนต์: ลิงก์โพสต์?comment_id=ID คอมเมนต์) หรือลิงก์โพสต์/รีล (อื่นๆ) |
| quantity | จำเป็น | จำนวน ขั้นต่ำ 100 สูงสุดแล้วแต่บริการ (ไม่ต้องใส่สำหรับ Custom Comments) |
| comments | ไม่บังคับ | เฉพาะ Custom Comments: คอมเมนต์คั่นด้วย \n จำนวนบรรทัดคือจำนวนที่สั่ง |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=add \ -d service=40 \ -d link=https://www.instagram.com/yourbrand/ \ -d quantity=1000
การตอบกลับ
{
"order": 23501
}สำหรับบริการ Custom Comments (เช่น #104) ให้ส่ง comments (บรรทัดละหนึ่งรายการ) แทน quantity จำนวนบรรทัดคือจำนวนที่สั่ง
action=statusสถานะออร์เดอร์
ความคืบหน้าของหนึ่งออร์เดอร์ charge คือจำนวนเงินที่ใช้จริง (หลังคืนเงิน) remains คือจำนวนที่เหลือ progress คือเปอร์เซ็นต์ที่เสร็จ และ delivered คือจำนวนที่ส่งแล้ว อัปเดตทุกนาที
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "status" |
| order | จำเป็น | ID ออร์เดอร์ |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=status \ -d order=23501
การตอบกลับ
{
"charge": "4.52",
"start_count": "1520",
"status": "In progress",
"remains": "240",
"progress": "76",
"delivered": "760",
"currency": "USD"
}action=statusสถานะหลายออร์เดอร์
สูงสุด 100 คั่นด้วยจุลภาค แต่ละออร์เดอร์ได้ผลลัพธ์แยกกัน ID ที่ไม่พบจะได้ข้อผิดพลาดในตำแหน่งของตัวเอง
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "status" |
| orders | จำเป็น | ID ออร์เดอร์คั่นด้วยจุลภาค (สูงสุด 100) |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=status \ -d orders=23501,23502,99999
การตอบกลับ
{
"23501": {
"charge": "4.52",
"start_count": "1520",
"status": "Completed",
"remains": "0",
"progress": "100",
"delivered": "1000",
"currency": "USD"
},
"23502": {
"charge": "2.71",
"start_count": "870",
"status": "Partial",
"remains": "400",
"progress": "60",
"delivered": "600",
"currency": "USD"
},
"99999": {
"error": "Incorrect order ID"
}
}action=cancelยกเลิก (หยุด) ออร์เดอร์
หยุดออร์เดอร์ที่กำลังดำเนินการ ก่อนเริ่ม: คืนเงินเต็มจำนวน ระหว่างดำเนินการ: คืนเงินจำนวนที่ไม่ได้ส่ง และออร์เดอร์จะจบเป็น Canceled หรือ Partial ออร์เดอร์ที่เสร็จแล้วยกเลิกไม่ได้
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "cancel" |
| orders | จำเป็น | ID ออร์เดอร์คั่นด้วยจุลภาค (สูงสุด 100 หากมีรายการเดียวใช้ order ได้) |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=cancel \ -d orders=23501,23502
การตอบกลับ
[
{
"order": 23501,
"cancel": 1
},
{
"order": 23502,
"cancel": {
"error": "Order is already completed or canceled"
}
}
]action=depositสร้างรายการเติมเงิน
Creates a USDT (TRC20) top-up. Send exactly amount (6 decimals) to address and it's credited automatically (plus bonus if eligible), usually within 1 to 2 minutes. Minimum 40 USD, maximum 5000 USD, one pending top-up at a time, valid until expires_at.
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "deposit" |
| amount | จำเป็น | จำนวนเงินเป็น USD (40 ถึง 5000) |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=deposit \ -d amount=300
การตอบกลับ
{
"deposit": "K7Q2M9XD",
"status": "Pending",
"currency": "USDT",
"network": "TRC20",
"address": "TXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"amount": "300.776583",
"bonus": "90.23",
"credited": "0.00",
"txid": null,
"created_at": "2026-10-07T06:41:14.203Z",
"expires_at": "2026-10-07T07:41:14.202Z"
}action=deposit_statusสถานะการเติมเงิน
สถานะของการเติมเงิน Completed หมายถึง credited และ bonus ถูกเพิ่มเข้ายอดเงินคงเหลือแล้ว Pending · Completed · Expired · Canceled · Rejected
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "deposit_status" |
| deposit | จำเป็น | รหัสเติมเงิน (deposit ในการตอบกลับของ deposit เช่น K7Q2M9XD) |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=deposit_status \ -d deposit=K7Q2M9XD
การตอบกลับ
{
"deposit": "K7Q2M9XD",
"status": "Completed",
"currency": "USDT",
"network": "TRC20",
"address": "TXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"amount": "300.776583",
"bonus": "90.23",
"credited": "300.776583",
"txid": "4c1f…e93a",
"created_at": "2026-10-07T06:41:14.203Z",
"expires_at": "2026-10-07T07:41:14.202Z"
}action=balanceยอดเงินคงเหลือ
ยอดเงินคงเหลือปัจจุบันเป็น USD
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "balance" |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=balance
การตอบกลับ
{
"balance": "1250.40",
"currency": "USD"
}action=profileค้นหาบัญชี
จำนวนผู้ติดตาม กำลังติดตาม และโพสต์ปัจจุบันของบัญชี Instagram ใช้ตรวจสอบก่อนสั่งซื้อหรือบันทึกยอดเริ่มต้น
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "profile" |
| username | จำเป็น | ชื่อผู้ใช้, @username หรือลิงก์โปรไฟล์ |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=profile \ -d username=yourbrand
การตอบกลับ
{
"username": "yourbrand",
"full_name": null,
"followers": 12840,
"following": 312,
"posts": 154,
"is_private": false,
"is_verified": false,
"charge": "0.00",
"currency": "USD"
}action=postค้นหาโพสต์
จำนวนไลก์ คอมเมนต์ และการแชร์ปัจจุบันของโพสต์หรือรีล views มีเฉพาะรีลเท่านั้น
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
| key | จำเป็น | คีย์ API ของคุณ |
| action | จำเป็น | "post" |
| link | จำเป็น | ลิงก์โพสต์หรือรีล |
คำขอ
curl -X POST https://star-smm-panel.com/api/v2 \ -d key=YOUR_API_KEY \ -d action=post \ -d link=https://www.instagram.com/reel/C9xYz12AbCd/
การตอบกลับ
{
"link": "https://www.instagram.com/reel/C9xYz12AbCd/",
"shortcode": "C9xYz12AbCd",
"type": "reel",
"owner": null,
"likes": 1986,
"comments": 68,
"views": 63085,
"shares": 56,
"charge": "0.00",
"currency": "USD"
}ค่าสถานะออร์เดอร์
| Pending | ได้รับแล้ว กำลังจะเริ่ม |
| Processing | กำลังเตรียมการ |
| In progress | กำลังส่ง |
| Completed | เสร็จสิ้น |
| Partial | ส่งบางส่วน ส่วนที่เหลือคืนเข้ายอดเงินคงเหลือ |
| Canceled | ยกเลิกแล้ว คืนเงินเต็มจำนวนเข้ายอดเงินคงเหลือ |
ข้อผิดพลาด
ข้อผิดพลาดจะส่งมาเป็น {"error": "…"} เฉพาะข้อผิดพลาดคีย์และการจำกัดอัตราเท่านั้นที่ใช้ HTTP 401/429 ที่เหลือส่งกลับ 200
| error | HTTP | สาเหตุ |
|---|---|---|
| The API is available after your first top-up … | 200 | เรียกใช้สิ่งอื่นนอกจาก services, deposit, deposit_status หรือ balance ก่อนการเติมเงินครั้งแรก |
| Invalid API key | 401 | ไม่มีคีย์หรือคีย์ผิด (รวมถึงคีย์เก่าหลังสร้างใหม่) |
| Too many requests | 429 | เกิน 300 ครั้งต่อนาทีต่อคีย์ |
| Too many lookups | 429 | ค้นหาเกิน 60 ครั้งต่อนาที |
| Incorrect request | 200 | ไม่มี action หรือไม่รู้จัก action |
| Incorrect service ID | 200 | service ไม่ใช่ตัวเลข |
| This service is not available. | 200 | บริการนี้ไม่ได้เปิดขาย |
| Please enter a valid link. | 200 | link ว่างหรือยาวเกินไป |
| Quantity must be between 100 and … | 200 | quantity อยู่นอกช่วง min~max ของบริการ |
| Please enter at least one comment. | 200 | Custom Comments ที่ไม่มี comments |
| Not enough funds on balance. | 200 | ยอดเงินคงเหลือไม่พอ (ต้องเติมเงิน) |
| Incorrect order ID | 200 | ไม่ใช่ออร์เดอร์ของคุณหรือไม่พบ ID |
| Order is already completed or canceled | 200 | cancel: ออร์เดอร์เสร็จสิ้นแล้ว |
| This order can't be canceled now | 200 | cancel: ระบบส่งไม่สามารถหยุดได้ในตอนนี้ |
| Minimum deposit is 40 USDT. | 200 | deposit: below the minimum |
| You already have a pending deposit. … | 200 | deposit: มีการเติมเงินที่รอดำเนินการอยู่แล้ว (ดู deposit ในการตอบกลับ) |
| Incorrect deposit ID | 200 | deposit_status: ไม่ใช่ของคุณหรือไม่พบรหัส |
| Incorrect username / Incorrect post link | 200 | รูปแบบเป้าหมายการค้นหาไม่ถูกต้อง |
| Account not found / Post not found | 200 | ไม่พบเป้าหมายการค้นหา |
STAR SMM Panel