เรามี SMM Panel สำเร็จรูปพร้อมใช้งาน เริ่มต้นเพียง ฿1,200/เดือน
เชื่อมต่อระบบของคุณผ่าน REST API
| HTTP Method | POST |
| API URL |
https://ads4u.co/api/v2
|
| Response format | JSON |
| Parameters | 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
}
]
Example response
{
"order": 23501
}
| Parameters | Description |
|---|---|
| key | Your API key |
| action | status |
| order | Order ID |
Example response
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
| Parameters | 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"
}
}
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill |
| order | Order ID |
Example response
{
"refill": "1"
}
| Parameters | 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"
}
}
]
| Parameters | Description |
|---|---|
| key | Your API key |
| action | refill_status |
| refill | Refill ID |
Example response
{
"status": "Completed"
}
| Parameters | 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"
}
}
]
| Parameters | 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
}
]
| Parameters | Description |
|---|---|
| key | Your API key |
| action | balance |
Example response
{
"balance": "100.84292",
"currency": "USD"
}
เลือกภาษาที่ต้องการ แล้ว Copy โค้ดไปใช้ได้เลย
<?php class Api { public $api_url = 'https://ads4u.co/api/v2'; public $api_key = ''; // ใส่ API Key ของคุณ public function order($data) { $post = array_merge(['key' => $this->api_key], $data); $ch = curl_init($this->api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_HEADER, 0); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } } // ตัวอย่างการใช้งาน $api = new Api(); // ดึงรายการบริการ $services = $api->order(['action' => 'services']); // สั่งซื้อบริการ $order = $api->order([ 'action' => 'add', 'service' => 1, 'link' => 'https://instagram.com/example', 'quantity' => 1000 ]); // ตรวจสอบสถานะออเดอร์ $status = $api->order([ 'action' => 'status', 'order' => 12345 ]); ?>
import requests class Api: def __init__(self): self.api_url = 'https://ads4u.co/api/v2' self.api_key = '' # ใส่ API Key ของคุณ def request(self, data): data['key'] = self.api_key response = requests.post(self.api_url, data=data) return response.json() # ตัวอย่างการใช้งาน api = Api() # ดึงรายการบริการ services = api.request({'action': 'services'}) # สั่งซื้อบริการ order = api.request({ 'action': 'add', 'service': 1, 'link': 'https://instagram.com/example', 'quantity': 1000 }) # ตรวจสอบสถานะออเดอร์ status = api.request({ 'action': 'status', 'order': 12345 }) print(services)
const API_URL = 'https://ads4u.co/api/v2'; const API_KEY = ''; // ใส่ API Key ของคุณ async function apiRequest(data) { const formData = new FormData(); formData.append('key', API_KEY); for (const [key, value] of Object.entries(data)) { formData.append(key, value); } const response = await fetch(API_URL, { method: 'POST', body: formData }); return response.json(); } // ตัวอย่างการใช้งาน // ดึงรายการบริการ apiRequest({ action: 'services' }) .then(data => console.log(data)); // สั่งซื้อบริการ apiRequest({ action: 'add', service: 1, link: 'https://instagram.com/example', quantity: 1000 }).then(data => console.log(data)); // ตรวจสอบสถานะออเดอร์ apiRequest({ action: 'status', order: 12345 }).then(data => console.log(data));
# ดึงรายการบริการ curl -X POST https://ads4u.co/api/v2 \ -d "key=YOUR_API_KEY" \ -d "action=services" # สั่งซื้อบริการ curl -X POST https://ads4u.co/api/v2 \ -d "key=YOUR_API_KEY" \ -d "action=add" \ -d "service=1" \ -d "link=https://instagram.com/example" \ -d "quantity=1000" # ตรวจสอบสถานะออเดอร์ curl -X POST https://ads4u.co/api/v2 \ -d "key=YOUR_API_KEY" \ -d "action=status" \ -d "order=12345" # ตรวจสอบยอดเงินคงเหลือ curl -X POST https://ads4u.co/api/v2 \ -d "key=YOUR_API_KEY" \ -d "action=balance"
กรุณาเข้าสู่ระบบเพื่อใช้งาน API Playground
เข้าสู่ระบบ