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

简介

Resimi API 可让您将我们的 SMM 服务集成到您自己的面板、应用程序或工作流程中。所有请求都会返回 JSON。该 API 与 JAP、SMMKings、Peakerr 等使用的标准 SMM 面板 API 格式兼容,从而可以轻松切换或集成。

基本网址: https://resimi.xyz/api/v2.php

所有端点都接受 GETPOST 请求。使用 POST 进行订单和取消,使用 GET 进行只读查询。

认证

每个请求都必须包含您的 API 密钥作为 key 参数。

您的 API 密钥位于 帐户设置 → API 访问 中。保密——它可以完全访问您的帐户和余额。
GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=balance

错误

所有错误都会返回一个带有 error 键的 JSON 对象:

{"error": "Insufficient balance. Please add funds."}
错误信息含义
API 密钥无效密钥错误或帐户被暂停
余额不足下单前添加资金
服务未找到或处于非活动状态服务ID错误或服务被禁用
数量必须在 X 和 Y 之间数量超出此服务允许的范围
未找到订单订单 ID 不存在或属于其他用户
订单无法取消订单已完成或已取消

获取服务

返回活动服务的完整列表以及费率和限制。

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

参数

参数类型描述
key requiredstring您的 API 密钥
action requiredstring必须是 services

回应

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

下订单

下新订单。余额立即扣除。返回订单 ID。

POST https://resimi.xyz/api/v2.php
参数类型描述
key requiredstring您的 API 密钥
action requiredstring必须是 add
service requiredinteger服务列表中的服务 ID
link requiredstring目标个人资料或帖子的 URL
quantity requiredinteger交付总量
runs optionalinteger滴灌运行次数(默认值:1)
interval optionalinteger滴灌运行之间的分钟数(默认值:0)
comments optionalstring自定义评论(用于评论服务),每行一条

响应——成功

{"order": 98765}

响应——错误

{"error": "Insufficient balance. Please add funds."}
滴灌: 设置 runs = 批次数和 interval = 每批次之间的分钟数。示例 — 7 天内有 1,000 名关注者:quantity=1000&runs=7&interval=1440

订单状态

检查订单的当前状态。

GET https://resimi.xyz/api/v2.php?key=YOUR_API_KEY&action=status&order=ORDER_ID
参数类型描述
key requiredstring您的 API 密钥
action requiredstring必须是 status
order requiredinteger从 <code>add</code> 返回的订单 ID

回应

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

状态值

状态含义
Pending等待发送给提供商
Processing发送给提供商,排队
In_progress交货进行中
Completed已全部交付
Partial部分已交付,剩余部分退款
Cancelled已取消,剩余金额已退还

取消订单

取消待处理或进行中的订单。未送达部分将退还至您的余额。

POST https://resimi.xyz/api/v2.php
参数类型描述
key requiredstring您的 API 密钥
action requiredstring必须是 取消
order requiredinteger要取消的订单 ID

响应——成功

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

检查余额

返回与 API 密钥关联的帐户的当前余额。

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

回应

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

代码示例

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