เอกสาร API สำหรับนักพัฒนา
เชื่อมต่อบริการเข้ากับแอปพลิเคชันของคุณโดยตรงด้วย JSON API มาตรฐาน
https://tangmat.live/api/v2
ดึงรายการบริการ SMM
ดึงรายการรายละเอียดของบริการ SMM ทั้งหมดที่สั่งซื้อได้ตามระดับบัญชีของคุณ รวมถึงราคา จำนวนขั้นต่ำ จำนวนสูงสุด และคุณสมบัติต่างๆ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key authentication token. |
| action | string จำเป็น | Set parameter value to "services". |
| lang | string ไม่บังคับ | Service name language. Allowed values: "vi", "en". Default is "vi". |
[
{
"service": 17374,
"name": "Shopee Follow | VietNam",
"type": "Default",
"category": "Follow Shop",
"platform": "Shopee",
"rate": 5.4638,
"min": 10,
"max": 10000,
"refill": false,
"cancel": true,
"description": "Real users, speed: 500-1k/day",
"stable": "stable",
"status": "active"
},
{
"service": 17493,
"name": "Lazada Follow",
"type": "Default",
"category": "Follow Lazada",
"platform": "Lazada",
"rate": 10.9275,
"min": 10,
"max": 10000,
"refill": true,
"cancel": true,
"description": "Follow Global accounts",
"stable": "beta",
"status": "inactive"
},
{
"service": 18021,
"name": "TikTok Livestream Viewers",
"type": "LiveStream",
"minutes": [15, 30, 60, 90, 120],
"category": "Livestream TikTok",
"platform": "TikTok",
"rate": 2.1500,
"min": 100,
"max": 50000,
"refill": false,
"cancel": false,
"description": "Livestream viewers, keep for the selected duration",
"stable": "stable",
"status": "active"
}
]
minutes array ไม่บังคับ — แสดงเฉพาะบริการ LiveStream ที่ตั้งค่าช่วงนาทีไว้ล่วงหน้า ฟิลด์นี้แสดงค่านาทีที่ยอมรับสำหรับพารามิเตอร์ "minute" เมื่อสร้างคำสั่งซื้อ หากส่งค่าน้อยกว่าตัวเลือกต่ำสุดจะถูกปฏิเสธ และหากส่งค่าระหว่างสองตัวเลือกจะถูกปัด "ลง" ไปยังตัวเลือกที่ใกล้ที่สุด
ตรวจสอบยอดเงินในบัญชี
ตรวจสอบยอดเงินในวอลเล็ตปัจจุบันและสกุลเงินที่ตั้งค่าไว้ในระบบ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key authentication token. |
| action | string จำเป็น | Set parameter value to "balance". |
{
"balance": "343.22",
"currency": "VND"
}
สร้างคำสั่งซื้อ SMM
สร้างคำสั่งซื้อการตลาด SMM ใหม่ พารามิเตอร์ที่จำเป็นจะเปลี่ยนไปตามประเภทบริการ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set parameter value to "add". |
| service | integer จำเป็น | The SMM Service ID obtained from the services list. |
| link | string จำเป็น | Target link URL (Profile, post, channel, group, video, etc). |
| quantity | integer จำเป็น | The quantity of views, followers, likes, etc. to buy. |
{
"order": 99999
}
ดึงสถานะคำสั่งซื้อ
ตรวจสอบสถานะ ค่าใช้จ่าย ยอดเริ่มต้น และความคืบหน้าที่เหลือของคำสั่งซื้อหนึ่งรายการ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "status". |
| order | integer จำเป็น | Target Order ID. |
{
"charge": "2.5",
"start_count": "168",
"status": "Completed",
"remains": "0"
}
ดึงสถานะหลายคำสั่งซื้อ
ดึงรายละเอียดสถานะของหลายคำสั่งซื้อพร้อมกัน (สูงสุด 100 ID ต่อครั้ง)
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "status". |
| orders | string จำเป็น | Comma-separated list of Order IDs (e.g. "123,456,789"). |
{
"123": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157"
},
"456": {
"error": "Incorrect order ID"
},
"789": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10"
}
}
ขอรับประกันคำสั่งซื้อ
เรียกใช้บริการรับประกันสำหรับคำสั่งซื้อที่เสร็จสมบูรณ์แล้วแต่ยอดลดลงต่ำกว่าเป้าหมาย (หากเซิร์ฟเวอร์ของบริการรองรับ)
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "refill". |
| order | integer จำเป็น | Target Order ID to refill. |
{
"refill": "1298"
}
ขอรับประกันหลายคำสั่งซื้อ
ส่งคำขอรับประกันสำหรับหลายคำสั่งซื้อพร้อมกัน
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "refill". |
| orders | string จำเป็น | Comma-separated list of Order IDs. |
[
{
"order": 123,
"refill": 1299
},
{
"order": 456,
"refill": 1300
},
{
"order": 789,
"refill": {
"error": "Incorrect order ID"
}
}
]
ตรวจสอบสถานะคำขอรับประกัน
ตรวจสอบความคืบหน้าของคำขอรับประกันที่สร้างไว้ก่อนหน้า
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "refill_status". |
| refill | integer จำเป็น | Target Refill ID (e.g. 1298). |
{
"status": "Completed"
}
ตรวจสอบสถานะคำขอรับประกันหลายรายการ
ตรวจสอบสถานะปัจจุบันของคำขอรับประกันหลายรายการพร้อมกัน
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "refill_status". |
| refills | string จำเป็น | Comma-separated list of Refill IDs. |
[
{
"refill": 1299,
"status": "Completed"
},
{
"refill": 1300,
"status": "Rejected"
}
]
ขอยกเลิกคำสั่งซื้อ
ส่งคำขอยกเลิกสำหรับคำสั่งซื้อที่กำลังทำงาน (หากเซิร์ฟเวอร์นั้นรองรับการยกเลิก)
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "cancel". |
| orders | string จำเป็น | Comma-separated list of target Order IDs. |
[
{
"order": 123,
"cancel": {
"error": "Order cannot be cancelled"
}
},
{
"order": 456,
"cancel": 1
}
]
ดู Log ไลฟ์ TikTok
ดึง Log การติดตามความคืบหน้าของคำสั่งซื้อ (เช่น จำนวนผู้ชมตามช่วงเวลาของบริการไลฟ์สด) อ่านได้เฉพาะคำสั่งซื้อที่เป็นของ API Key ของคุณเท่านั้น
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "log_viewer". |
| order | integer จำเป็น | ID คำสั่งซื้อที่คุณต้องการดู Log |
{
"ok": true,
"nick": "example_nick",
"logs": [
{
"ts": "2026-08-18 09:15:00",
"viewers": 1250,
"top": [
{
"username": "viewer_01",
"name": "Viewer 01",
"avatar": "https://.../avatar.jpg",
"count": 37
}
]
}
],
"latest_top": []
}
{
"error": "Incorrect order ID"
}
ซื้อ / เช่า Proxy
เช่า Proxy IPv4 แบบคงที่ส่วนตัว แพ็กเกจ Proxy แบบคงที่ หรือ Proxy แบบหมุนเวียน
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "buy_proxy". |
| proxy | string จำเป็น | Specify type: "v4static", "v4package", or "v4rotate". |
| type | string จำเป็น |
ISP / Location:
"Viettel", "FPT", "VNPT", "PRIVATE", "DatacenterA", "DatacenterB", "DatacenterC", "US", "4Gvinaphone". |
| quantity | integer จำเป็น | Number of proxy lines to rent. |
| days | integer จำเป็น | Rent duration in days (minimum 1 day; minimum 7 days when type is "PRIVATE"). |
| protocol | string จำเป็น | Connection protocol format: "HTTP" or "SOCKS5". |
| user | string ไม่บังคับ | Custom credentials username for proxy authentication. |
| password | string ไม่บังคับ | Custom credentials password for proxy authentication. |
{
"key": "YOUR_API_KEY",
"action": "buy_proxy",
"proxy": "v4static",
"type": "PRIVATE",
"quantity": 1,
"days": 7,
"protocol": "HTTP",
"user": "",
"password": ""
}
{
"status": "success",
"data": [
{
"id": 279,
"proxy_type": "Proxy v4 static",
"protocol": "HTTPS",
"data": "206.125.175.230:13271:bUMBYc:YbhrHU",
"data2": "114.256.712.19:13271:bUMBYc:YbhrHU",
"status": "success",
"expired_at": "18-05-2025 22:14:17"
}
],
"payment": 1152,
"balance": 965567
}
ดึงรายละเอียด Proxy
ดึงรายละเอียด Proxy ข้อมูลการยืนยันตัวตน สถานะ และวันหมดอายุตาม Proxy ID
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "get_proxy". |
| proxy_id | integer จำเป็น | Target unique Proxy ID. |
{
"status": "success",
"order": {
"proxy_id": 37775,
"proxy_type": "Proxy v4 static",
"protocol": "HTTPS",
"data": "172.111.171.99:14288:10md12:123456",
"data2": "114.122.09.99:11218:10md12:123456",
"status": "success",
"expired_at": "18-05-2025 22:14:17"
}
}
ดึง / เปลี่ยน IP ของ Proxy แบบหมุนเวียน
ตรวจสอบการตั้งค่าการเชื่อมต่อที่ใช้งานอยู่ หรือสั่งเปลี่ยน IP ทันทีสำหรับคีย์ Proxy แบบหมุนเวียน
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "get_rotate_proxy". |
| key_rotate | string จำเป็น | The rotation key associated with your proxy order. |
| operator | string ไม่บังคับ | Target ISP: "Viettel", "FPT", "VNPT". |
| location | integer ไม่บังคับ | Region location code (select from codes listed on the proxy page). Default is 0 (Random). |
| whitelist | string ไม่บังคับ | IPv4 Address to whitelist for passwordless authorization. |
{
"status": "success",
"message": "Proxy này sẽ die sau 1021s",
"data": {
"key_rotate": "KFBlsUezBtRMKTmiHdlhHY",
"http": "42.114.164.224:20841:khljtiNj3Kd:fdkm3nbjg45d",
"socks5": "42.114.164.224:30841:khljtiNj3Kd:fdkm3nbjg45d",
"operator": "viettel",
"location": "HaiDuong1",
"expired_at": "18-05-2025 22:14:17"
}
}
รายการ Proxy ที่ใช้งานอยู่ทั้งหมด
ดึงรายการรายละเอียดของ Proxy แบบคงที่และแบบหมุนเวียนที่ใช้งานอยู่ทั้งหมดในบัญชีของคุณ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "get_all_proxy". |
{
"status": "success",
"order": [
{
"id": 251,
"proxy_type": "Proxy v4 static",
"protocol": "HTTP",
"operator": "FPT",
"day": 89,
"data": "206.125.175.230:13271:bUMBYc:YbhrHU",
"data2": "114.256.712.19:13271:bUMBYc:YbhrHU",
"status": "success",
"expired_at": "18-05-2025 22:14:17",
"auto_renew": 0
}
]
}
ต่ออายุ Proxy
ต่ออายุระยะเวลาเช่าสำหรับ Proxy แบบคงที่หนึ่งหรือหลายรายการ
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "renew_proxy". |
| proxy_id | string จำเป็น | Target Proxy ID or comma-separated list of IDs. |
| days | integer จำเป็น | Number of days to renew. |
{
"status": "success",
"data": [
{
"proxy_id": 37775,
"proxy_type": "Proxy v4 static",
"protocol": "SOCKS5",
"operator": "FPT",
"data": "172.111.171.99:14288:newuser:newpass",
"status": "success",
"expired_at": "18-05-2025 22:14:17"
}
],
"totalPrice": 5000
}
ดาวน์โหลดรายการ Proxy ในแพ็กเกจ
ดาวน์โหลดรายการ IP Proxy ที่ใช้งานอยู่ทั้งหมดในแพ็กเกจแบบคงที่เป็นข้อความธรรมดา
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "download_package". |
| proxy_id | integer จำเป็น | The package ID of the purchased static proxy package. |
| mode | integer จำเป็น | Select format format: 1 = source direct list, 2 = forward/mapped proxy list. |
{
"status": "success",
"type": "HTTP",
"count": 3,
"list": [
"1.1.1.1:1010:user:pass",
"2.2.2.2:2020:user:pass",
"3.3.3.3:3030:user:pass"
]
}
อัปเดตข้อมูลการยืนยันตัวตนของ Proxy
เปลี่ยนชื่อผู้ใช้ รหัสผ่าน หรือโปรโตคอลการเชื่อมต่อ (HTTP/SOCKS5) ของ Proxy ที่ใช้งานอยู่
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "change_auth_proxy". |
| proxy_id | string จำเป็น | Target Proxy ID or comma-separated list of IDs. |
| protocol | string ไม่บังคับ | New protocol: "HTTP" or "SOCKS5". Default is keeping current. |
| user | string ไม่บังคับ | New Username. Set as "random" for automatic generation. |
| password | string ไม่บังคับ | New Password. Set as "random" for automatic generation. |
{
"status": "success",
"data": [
{
"proxy_id": 251,
"proxy_type": "Proxy v4 static",
"protocol": "SOCKS5",
"operator": "FPT",
"data": "172.111.171.99:14288:newuser:newpass",
"status": "success",
"expired_at": "18-05-2025 22:14:17"
}
]
}
จัดสรรที่อยู่ IP ของ Proxy ใหม่
Re-allocate a brand-new IP address line for an active static proxy slot.
Cost: 1,500đ per allocation change.
| พารามิเตอร์ | ประเภทข้อมูลและกฎ | รายละเอียด |
|---|---|---|
| key | string จำเป็น | Your unique API Key. |
| action | string จำเป็น | Set to "change_proxy". |
| proxy_id | string จำเป็น | Target Proxy ID or comma-separated list of IDs. |
| loaiproxy | string จำเป็น | Target network ISP region: "Viettel", "FPT", "VNPT", "DatacenterB". |
| protocol | string ไม่บังคับ | Desired connection protocol: "HTTP" or "SOCKS5". |
| user | string ไม่บังคับ | Custom Username. Default is keeping current. |
| password | string ไม่บังคับ | Custom Password. Default is keeping current. |
{
"status": "success",
"data": [
{
"proxy_id": 251,
"proxy_type": "Proxy v4 static",
"protocol": "HTTP",
"operator": "VNPT",
"data": "42.115.123.45:12345:user123:pass456",
"status": "success",
"expired_at": "18-05-2025 22:14:17"
}
]
}