Developer
API v2 Documentation
เชื่อมต่อระบบของคุณกับ servsmm ผ่าน REST API — สั่งซื้อบริการอัตโนมัติ ตรวจสอบสถานะ ดึงข้อมูลแบบ real-time ในรูปแบบ JSON
POST
JSON Response
HTTPS
Real-time
# Quick start
curl -X POST https://servsmm.com/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services"
Connection
รายละเอียดการเชื่อมต่อ
HTTP Method
POST
API Endpoint
https://servsmm.com/api/v2
Response Format
JSON
Rate Limit
300 requests / นาที
Reference
รายการ Methods
รายละเอียดทุก method พร้อม parameters และตัวอย่าง response — คัดลอกใช้งานได้ทันที
SERVICES
Service list
action=services
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
services |
EXAMPLE RESPONSE
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
ADD
Add order
action=add
EXAMPLE RESPONSE
{
"order": 23501
}
STATUS
Order status
action=status
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
status |
order
|
Order ID |
EXAMPLE RESPONSE
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
MULTI_STATUS
Multiple orders status
action=multi_status
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
status |
orders
|
Order IDs (separated by a comma, up to 100 IDs) |
EXAMPLE RESPONSE
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
REFILL
Create refill
action=refill
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
refill |
order
|
Order ID |
EXAMPLE RESPONSE
{
"refill": "1"
}
MULTI_REFILL
Create multiple refill
action=multi_refill
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
refill |
orders
|
Order IDs (separated by a comma, up to 100 IDs) |
EXAMPLE RESPONSE
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
REFILL_STATUS
Get refill status
action=refill_status
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
refill_status |
refill
|
Refill ID |
EXAMPLE RESPONSE
{
"status": "Completed"
}
MULTI_REFILL_STATUS
Get multiple refill status
action=multi_refill_status
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
refill_status |
refills
|
Refill IDs (separated by a comma, up to 100 IDs) |
EXAMPLE RESPONSE
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
CANCEL
Create cancel
action=cancel
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
cancel |
orders
|
Order IDs (separated by a comma, up to 100 IDs) |
EXAMPLE RESPONSE
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
BALANCE
User balance
action=balance
PARAMETERS
| Parameter | Description |
|---|---|
key
|
Your API key |
action
|
balance |
EXAMPLE RESPONSE
{
"balance": "100.84292",
"currency": "USD"
}
ตัวอย่างโค้ด PHP
โค้ดสำเร็จรูปสำหรับเริ่มต้นใช้งาน — แก้ API key แล้วใช้งานได้ทันที
ดาวน์โหลดตัวอย่าง