Services How It Works Blog Free Reseller Panel API Login Sign Up Free

Giới thiệu

API Resimi cho phép bạn tích hợp các dịch vụ SMM của chúng tôi vào bảng điều khiển, ứng dụng hoặc quy trình làm việc của riêng bạn. Tất cả các yêu cầu đều trả về JSON. API tương thích với định dạng API bảng điều khiển SMM tiêu chuẩn được sử dụng bởi JAP, SMMKings, Peakerr và các tổ chức khác — giúp dễ dàng chuyển đổi hoặc tích hợp.

URL cơ sở: https://resimi.xyz/api/v2.php

Tất cả các điểm cuối chấp nhận cả hai yêu cầu GETPOST. Sử dụng POST cho các đơn đặt hàng và hủy bỏ, GET cho các truy vấn chỉ đọc.

Xác thực

Mọi yêu cầu phải bao gồm khóa API của bạn làm tham số key.

Khóa API của bạn nằm trong Cài đặt tài khoản → Truy cập API. Giữ bí mật — nó có toàn quyền truy cập vào tài khoản và số dư của bạn.
GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=balance

Lỗi

Tất cả các lỗi đều trả về một đối tượng JSON có khóa error:

{"error": "Insufficient balance. Please add funds."}
Thông báo lỗiÝ nghĩa
Khóa API không hợp lệChìa khóa sai hoặc tài khoản bị treo
Số dư không đủThêm tiền trước khi đặt hàng
Dịch vụ không tìm thấy hoặc không hoạt độngID dịch vụ sai hoặc dịch vụ bị vô hiệu hóa
Số lượng phải nằm trong khoảng X và YSố lượng ngoài phạm vi cho phép đối với dịch vụ này
Không tìm thấy đơn hàngID đơn hàng không tồn tại hoặc thuộc về người dùng khác
Đơn hàng không thể bị hủyĐơn đặt hàng đã được hoàn thành hoặc bị hủy

Nhận dịch vụ

Trả về danh sách đầy đủ các dịch vụ đang hoạt động kèm theo mức giá và giới hạn.

GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=services

Thông số

tham sốloạiMô tả
key requiredstringKhóa API của bạn
action requiredstringPhải là dịch vụ

phản hồi

[
  {
    "service": 1234,
    "category": "Instagram",
    "name": "Instagram Followers — HQ | Refill 30 days",
    "type": "Default",
    "rate": "0.5000",
    "min": 100,
    "max": 100000,
    "dripfeed": true,
    "refill": true,
    "cancel": false
  },
  ...
]

Đặt hàng

Đặt một đơn hàng mới. Số dư được khấu trừ ngay lập tức. Trả về ID đơn hàng.

POST https://resimi.xyz/api/v2.php
tham sốloạiMô tả
key requiredstringKhóa API của bạn
action requiredstringPhải là add
service requiredintegerID dịch vụ từ danh sách dịch vụ
link requiredstringURL của hồ sơ hoặc bài đăng mục tiêu
quantity requiredintegerTổng số lượng cần giao
runs optionalintegerSố lần chạy nguồn cấp nhỏ giọt (mặc định: 1)
interval optionalintegerSố phút giữa các lần nạp nhỏ giọt (mặc định: 0)
comments optionalstringNhận xét tùy chỉnh (đối với dịch vụ nhận xét), mỗi dòng một nhận xét

Phản hồi - Thành công

{"order": 98765}

Phản hồi - Lỗi

{"error": "Insufficient balance. Please add funds."}
Nguồn cấp dữ liệu nhỏ giọt: Đặt chạy = số lô và khoảng thời gian = phút giữa mỗi lô. Ví dụ — 1.000 người theo dõi trong 7 ngày: quantity=1000&runs=7&interval=1440

Trạng thái đơn hàng

Kiểm tra trạng thái hiện tại của một đơn đặt hàng.

GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=status&order=ORDER_ID
tham sốloạiMô tả
key requiredstringKhóa API của bạn
action requiredstringPhải là trạng thái
order requiredintegerID đơn hàng được trả về từ <code>add</code>

phản hồi

{
  "charge": "0.5000",
  "start_count": 1240,
  "status": "In_progress",
  "remains": 630,
  "currency": "USD"
}

Giá trị trạng thái

Trạng tháiÝ nghĩa
PendingĐang chờ gửi đến nhà cung cấp
ProcessingĐã gửi tới nhà cung cấp, đang xếp hàng
In_progressĐang giao hàng
CompletedĐã giao đầy đủ
PartialĐã giao một phần, còn lại được hoàn tiền
CancelledĐã hủy, còn lại được hoàn tiền

Hủy đơn hàng

Hủy lệnh đang chờ xử lý hoặc đang thực hiện. Phần chưa được gửi sẽ được hoàn trả vào số dư của bạn.

POST https://resimi.xyz/api/v2.php
tham sốloạiMô tả
key requiredstringKhóa API của bạn
action requiredstringPhải là hủy
order requiredintegerID đơn hàng để hủy

Phản hồi - Thành công

{"success": true, "refunded": 0.2500}

Kiểm tra số dư

Trả về số dư hiện tại của tài khoản được liên kết với khóa API.

GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=balance

phản hồi

{"balance": "12.4800", "currency": "USD"}

Ví dụ về mã

<?php
$apiUrl = "https://resimi.xyz/api/v2.php";
$apiKey = "YOUR_API_KEY";

function smmApi(string $url, string $key, array $params): array {
    $params['key'] = $key;
    $ch = curl_init($url);
    curl_setopt_array($ch, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_POST => true,
        CURLOPT_POSTFIELDS => http_build_query($params),
        CURLOPT_TIMEOUT => 30,
    ]);
    $response = curl_exec($ch);
    curl_close($ch);
    return json_decode($response, true) ?? [];
}

// Get services
$services = smmApi($apiUrl, $apiKey, ['action' => 'services']);

// Place an order
$order = smmApi($apiUrl, $apiKey, [
    'action' => 'add',
    'service' => 1234,
    'link' => 'https://instagram.com/yourprofile',
    'quantity' => 1000,
]);
echo "Order ID: " . ($order['order'] ?? 'Error: ' . $order['error']);

// Check balance
$balance = smmApi($apiUrl, $apiKey, ['action' => 'balance']);
echo "Balance: $" . $balance['balance'];
import requests

API_URL = "https://resimi.xyz/api/v2.php"
API_KEY = "YOUR_API_KEY"

def smm_api(params: dict) -> dict:
    params["key"] = API_KEY
    response = requests.post(API_URL, data=params, timeout=30)
    return response.json()

# Get services
services = smm_api({"action": "services"})
for svc in services[:3]:
    print(f"[{svc['service']}] {svc['name']} - ${svc['rate']}/1K")

# Place an order
order = smm_api({
    "action": "add",
    "service": 1234,
    "link": "https://instagram.com/yourprofile",
    "quantity": 1000,
})
print(f"Order ID: {order.get('order', 'Error: ' + order.get('error', ''))}")

# Check status
status = smm_api({"action": "status", "order": order.get("order")})
print(f"Status: {status.get('status')} | Remains: {status.get('remains')}")

# Check balance
balance = smm_api({"action": "balance"})
print(f"Balance: ${balance['balance']}")
const API_URL = "https://resimi.xyz/api/v2.php";
const API_KEY = "YOUR_API_KEY";

async function smmApi(params) {
    const body = new URLSearchParams({ key: API_KEY, ...params });
    const res = await fetch(API_URL, { method: "POST", body });
    return res.json();
}

// Get services
const services = await smmApi({ action: "services" });
console.log(`Found ${services.length} services`);

// Place an order
const order = await smmApi({
    action: "add",
    service: 1234,
    link: "https://instagram.com/yourprofile",
    quantity: 1000,
});
console.log("Order ID:", order.order ?? "Error: " + order.error);

// Check status
const status = await smmApi({ action: "status", order: order.order });
console.log("Status:", status.status, "| Remains:", status.remains);

// Cancel an order
const cancel = await smmApi({ action: "cancel", order: order.order });
console.log("Refunded:", cancel.refunded);

// Check balance
const balance = await smmApi({ action: "balance" });
console.log("Balance: $" + balance.balance);
# Get services
curl -X GET "https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=services"

# Place an order
curl -X POST "https://resimi.xyz/api/v2.php" \
  -d "key=YOUR_API_KEY" \
  -d "action=add" \
  -d "service=1234" \
  -d "link=https://instagram.com/yourprofile" \
  -d "quantity=1000"

# Place a drip-feed order (1000 followers over 7 days)
curl -X POST "https://resimi.xyz/api/v2.php" \
  -d "key=YOUR_API_KEY" \
  -d "action=add" \
  -d "service=1234" \
  -d "link=https://instagram.com/yourprofile" \
  -d "quantity=1000" \
  -d "runs=7" \
  -d "interval=1440"

# Check order status
curl -X GET "https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=status&order=98765"

# Cancel an order
curl -X POST "https://resimi.xyz/api/v2.php" \
  -d "key=YOUR_API_KEY" \
  -d "action=cancel" \
  -d "order=98765"

# Check balance
curl -X GET "https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=balance"
How can we help?