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

pengenalan

API Resimi membolehkan anda menyepadukan perkhidmatan SMM kami ke dalam panel, apl atau aliran kerja anda sendiri. Semua permintaan mengembalikan JSON. API ini serasi dengan format API panel SMM standard yang digunakan oleh JAP, SMMKings, Peakerr dan lain-lain — menjadikannya mudah untuk menukar atau menyepadukan.

URL asas: https://resimi.xyz/api/v2.php

Semua titik akhir menerima kedua-dua permintaan GET dan POST. Gunakan POST untuk pesanan dan pembatalan, GET untuk pertanyaan baca sahaja.

Pengesahan

Setiap permintaan mesti memasukkan kunci API anda sebagai parameter key.

Kunci API anda berada dalam Tetapan Akaun → Akses API. Rahsiakannya — ia mempunyai akses penuh kepada akaun dan baki anda.
GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=balance

Kesilapan

Semua ralat mengembalikan objek JSON dengan kunci error:

{"error": "Insufficient balance. Please add funds."}
Mesej ralatMaknanya
Kunci API tidak sahKunci salah atau akaun digantung
Baki tidak mencukupiTambah dana sebelum membuat pesanan
Perkhidmatan tidak ditemui atau tidak aktifID Perkhidmatan salah atau perkhidmatan dilumpuhkan
Kuantiti mestilah antara X dan YKuantiti di luar julat yang dibenarkan untuk perkhidmatan ini
Pesanan tidak ditemuiID Pesanan tidak wujud atau milik pengguna lain
Pesanan tidak boleh dibatalkanPesanan sudah selesai atau dibatalkan

Dapatkan Perkhidmatan

Mengembalikan senarai penuh perkhidmatan aktif dengan kadar dan had.

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

Parameter

ParametertaipPenerangan
key requiredstringKunci API anda
action requiredstringMestilah perkhidmatan

Respon

[
  {
    "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
  },
  ...
]

Letakkan Pesanan

Membuat pesanan baharu. Baki ditolak serta merta. Mengembalikan ID pesanan.

POST https://resimi.xyz/api/v2.php
ParametertaipPenerangan
key requiredstringKunci API anda
action requiredstringMestilah tambah
service requiredintegerID Perkhidmatan daripada senarai perkhidmatan
link requiredstringURL profil atau siaran sasaran
quantity requiredintegerJumlah kuantiti untuk dihantar
runs optionalintegerBilangan larian suapan titisan (lalai: 1)
interval optionalintegerMinit antara larian suapan titisan (lalai: 0)
comments optionalstringKomen tersuai (untuk perkhidmatan ulasan), satu setiap baris

Respons - Kejayaan

{"order": 98765}

Respons - Ralat

{"error": "Insufficient balance. Please add funds."}
Drip-feed: Set runs = bilangan batch dan interval = minit antara setiap satu. Contoh — 1,000 pengikut dalam tempoh 7 hari: kuantiti=1000&lari=7&interval=1440

Status Pesanan

Semak status semasa pesanan.

GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=status&order=ORDER_ID
ParametertaipPenerangan
key requiredstringKunci API anda
action requiredstringMestilah status
order requiredintegerID pesanan dikembalikan daripada <code>add</code>

Respon

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

Nilai status

StatusMaknanya
PendingMenunggu untuk dihantar kepada pembekal
ProcessingDihantar kepada pembekal, beratur
In_progressPenghantaran sedang dijalankan
CompletedDihantar sepenuhnya
PartialSebahagian dihantar, selebihnya dikembalikan
CancelledDibatalkan, baki dibayar balik

Batalkan Pesanan

Membatalkan pesanan yang belum selesai atau dalam proses. Bahagian yang tidak dihantar dikembalikan kepada baki anda.

POST https://resimi.xyz/api/v2.php
ParametertaipPenerangan
key requiredstringKunci API anda
action requiredstringMestilah batal
order requiredintegerID pesanan untuk membatalkan

Respons - Kejayaan

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

Semak Baki

Mengembalikan baki semasa akaun yang dikaitkan dengan kunci API.

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

Respon

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

Contoh Kod

<?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?