TangLike.orgTangLike.org

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

  1. Đă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).
  2. Gửi POST (form-urlencoded hoặc JSON) tới endpoint với key và action.
  3. Nạp tiền trước khi tạo đơn. Giá rate tính theo 1000 đơn vị, đơn vị tiền VND, theo cấp bậc tài khoản của bạn.
  4. Lỗi luôn trả về dạng {"error":"..."}.

🇬🇧 Getting started

  1. Log in, open Update profile and generate an API key (the same key as API v1).
  2. Send a POST (form-urlencoded or JSON) to the endpoint with key and action.
  3. Top up before ordering. rate is per 1000 units in VND, for your account level.
  4. Errors are always returned as {"error":"..."}.

Actions

actionTham số / ParamsVí 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}]
addservice, 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"}
statusorder{"charge":"2860","start_count":"0","status":"In progress","remains":"60","currency":"VND"}
statusorders=1,2,3 (≤100){"1":{"charge":"2860","status":"Completed",...},"2":{"error":"Incorrect order ID"}}
balance—{"balance":"125000","currency":"VND"}
cancelorder hoặc/or orders=1,2{"cancel":1} · [{"order":"1","cancel":1},{"order":"2","cancel":{"error":"..."}}]
refill / refill_statusorder{"error":"Refill is not supported"}

Trạng thái đơn / Order status

Pending · In progress · Processing · Completed · Partial · Canceled

Ghi chú / Notes

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