API v2 · SMM panel standard
Tài liệu API v2 / API v2 documentation
API v2 dùng định dạng chuẩn của các SMM panel: một endpoint duy nhất, tham số key và action. Dùng chung tài khoản, số dư, dịch vụ và đơn hàng với website và API v1.
API v2 follows the standard SMM-panel format: one endpoint with key and action. It shares your account, balance, services and orders with the website and API v1.
POST https://tanglike.org/api/v2
🇻🇳 Bắt đầu
- Đăng nhập, vào Cập nhật tài khoản và tạo API key (dùng chung key với API v1).
- Gửi POST (form-urlencoded hoặc JSON) tới endpoint với
keyvàaction. - Nạp tiền trước khi tạo đơn. Giá
ratetính theo 1000 đơn vị, đơn vị tiền VND, theo cấp bậc tài khoản của bạn. - Lỗi luôn trả về dạng
{"error":"..."}.
🇬🇧 Getting started
- Log in, open Update profile and generate an API key (the same key as API v1).
- Send a POST (form-urlencoded or JSON) to the endpoint with
keyandaction. - Top up before ordering.
rateis per 1000 units in VND, for your account level. - Errors are always returned as
{"error":"..."}.
Actions
| action | Tham số / Params | Ví dụ phản hồi / Example response |
| services | — | [{"service":1,"name":"Sv1 ...","type":"Default","category":"Buff like bài viết","rate":"28600","min":"1","max":"1000000","refill":false,"cancel":true}] |
| add | service, link, quantity · comments (Custom Comments, mỗi dòng một bình luận / one per line) · minutes (tuỳ chọn / optional) | {"order":"048881092"} |
| status | order | {"charge":"2860","start_count":"0","status":"In progress","remains":"60","currency":"VND"} |
| status | orders=1,2,3 (≤100) | {"1":{"charge":"2860","status":"Completed",...},"2":{"error":"Incorrect order ID"}} |
| balance | — | {"balance":"125000","currency":"VND"} |
| cancel | order hoặc/or orders=1,2 | {"cancel":1} · [{"order":"1","cancel":1},{"order":"2","cancel":{"error":"..."}}] |
| refill / refill_status | order | {"error":"Refill is not supported"} |
Trạng thái đơn / Order status
Pending · In progress · Processing · Completed · Partial · Canceled
Ghi chú / Notes
- Mã đơn (
order) là mã đơn hiển thị trên website. / The order ID is the same order code shown on the website. min/maxmang tính tham khảo; giới hạn thực tế được kiểm tra khi tạo đơn. /min/maxare indicative; the real limits are checked when the order is created.- Dịch vụ dạng VIP/gói tháng chỉ đặt được trên website hoặc API v1. / VIP and monthly-package services are only available on the website or API v1.
- Giới hạn tần suất: 60 yêu cầu/phút mỗi key, 30 lệnh
add/phút. Quá giới hạn trả về HTTP 429. / Rate limit: 60 requests/min per key, 30add/min; above that you get HTTP 429.
cURL
curl -X POST https://tanglike.org/api/v2 \
-d "key=YOUR_API_KEY" -d "action=services"
curl -X POST https://tanglike.org/api/v2 \
-d "key=YOUR_API_KEY" -d "action=add" \
-d "service=1" -d "link=https://www.tiktok.com/@user/video/123" -d "quantity=1000"
curl -X POST https://tanglike.org/api/v2 -d "key=YOUR_API_KEY" -d "action=status" -d "orders=048881092,048881093"
curl -X POST https://tanglike.org/api/v2 -d "key=YOUR_API_KEY" -d "action=balance"PHP
<?php
function tanglike($params) {
$params['key'] = 'YOUR_API_KEY';
$ch = curl_init('https://tanglike.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($params),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$res = curl_exec($ch);
curl_close($ch);
return json_decode($res, true);
}
$services = tanglike(['action' => 'services']);
$order = tanglike(['action' => 'add', 'service' => 1, 'link' => 'https://facebook.com/...', 'quantity' => 100]);
$status = tanglike(['action' => 'status', 'order' => $order['order'] ?? '']);
$balance = tanglike(['action' => 'balance']);
print_r($balance);Chưa có tài khoản? / No account yet?
Đăng ký miễn phí / Sign up free