เชื่อมต่อ API ของ YINGADS เพื่อขายสินค้าและ SMM Services บนเว็บของคุณ — รองรับ SMM Panel Standard Format
Base Endpoint
POST https://yingads.com/api_reseller.php
ส่ง key + action ใน POST body ทุก request
| Parameter | Required | Description |
|---|---|---|
| key | Yes | API Key ของคุณ |
| action | Yes | balance |
{
"balance": "1250.00",
"currency": "THB",
"username": "myshop",
"tier": "standard"
}
| Parameter | Required | Description |
|---|---|---|
| key | Yes | API Key |
| action | Yes | services |
[
{
"service": 1,
"name": "Facebook Page Likes",
"category": "Facebook",
"type": "Default",
"rate": "15.0000",
"min": 100,
"max": 50000,
"description": "High quality likes"
}
]
| Parameter | Required |
|---|---|
| key | Yes |
| action | Yes → products |
[
{
"product_id": 1,
"name": "เฟสเขียว ลิมิต 1,700+",
"description": "บัญชียืนยันตัวตนแล้ว",
"price": "450.00",
"stock": 25,
"in_stock": true
}
]
| Parameter | Required | Description |
|---|---|---|
| key | Yes | API Key |
| action | Yes | add |
| service | Yes | Service ID จาก action=services |
| link | Yes | URL เป้าหมาย |
| quantity | Yes | จำนวน (ระหว่าง min-max) |
{
"order": "RSMM-2026-0012-A4F2C1B3",
"charge": "15.00",
"balance": "1235.00",
"status": "Pending"
}
| Parameter | Required | Description |
|---|---|---|
| key | Yes | API Key |
| action | Yes | buy_product |
| product_id | Yes | Product ID จาก action=products |
| quantity | No (default: 1) | จำนวนที่ต้องการซื้อ |
{
"status": "success",
"orders": ["RPRD-2026-0012-A1B2C3D4E5"],
"data": ["email@example.com|Password123|RecoveryCode"],
"charge": "450.00",
"balance": "800.00"
}
| Parameter | Required |
|---|---|
| key | Yes |
| action | Yes → status |
| order | Yes |
{
"order": "RSMM-2026-0012-A4F2C1B3",
"status": "In_progress",
"charge": "15.00",
"quantity": 1000,
"start_count": 500,
"remains": 200
}
| Parameter | Required | Default |
|---|---|---|
| key | Yes | - |
| action | Yes | orders |
| page | No | 1 |
| per_page | No | 20 (max 50) |
{
"total": 45,
"page": 1,
"per_page": 20,
"orders": [...]
}
PHP
Python
import requests
res = requests.post('https://yingads.com/api_reseller.php', data={
'key': 'ying_YOUR_API_KEY',
'action': 'balance',
})
print(res.json())
JavaScript (fetch)
const res = await fetch('https://yingads.com/api_reseller.php', {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: new URLSearchParams({ key: 'ying_YOUR_API_KEY', action: 'services' })
});
const data = await res.json();
console.log(data);
| HTTP Code | Error Message | สาเหตุ |
|---|---|---|
| 401 | No API key provided | ไม่ส่ง key |
| 401 | Invalid or inactive API key | Key ผิดหรือถูกปิด |
| 400 | Insufficient balance | เงินไม่พอ |
| 400 | Insufficient stock | สินค้าหมด |
| 400 | Service not found | Service ID ไม่ถูกต้อง |
Error format: {"error": "Error message here"}
สนใจเป็น Reseller หรือต้องการ tier พิเศษ?
ติดต่อผ่าน LINE