홈 / API

리셀러 API

SMM 패널이나 앱을 API v2에 연결하세요. 모든 요청은 HTTP POST이며 응답은 JSON입니다.

API URLhttps://smmbuys.com.tr/api/v2
HTTP 메서드POST
API 키회원가입
응답 형식JSON

action=services

매개변수
keyAPI 키
actionservices

응답 예시

[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "Instagram Followers",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true,
        "cancel": true,
        "dripfeed": false
    }
]

action=add

매개변수
keyAPI 키
actionadd
serviceService ID
linkLink
quantityQuantity
runsRuns (optional)
intervalInterval (optional)
commentsComments (custom comment services)

응답 예시

{
    "order": 23501
}

action=status

매개변수
keyAPI 키
actionstatus
orderOrder ID

응답 예시

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

action=status

매개변수
keyAPI 키
actionstatus
ordersOrder IDs, comma separated (max 100)

응답 예시

{
    "1": {
        "charge": "0.27819",
        "start_count": "3572",
        "status": "Partial",
        "remains": "157",
        "currency": "USD"
    },
    "10": {
        "error": "Incorrect order ID"
    }
}

action=refill

매개변수
keyAPI 키
actionrefill
orderOrder ID

응답 예시

{
    "refill": "1"
}

action=cancel

매개변수
keyAPI 키
actioncancel
ordersOrder IDs, comma separated (max 100)

응답 예시

[
    {
        "order": 9,
        "cancel": 1
    },
    {
        "order": 2,
        "cancel": {
            "error": "Incorrect order ID"
        }
    }
]

action=balance

매개변수
keyAPI 키
actionbalance

응답 예시

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

PHP

<?php
$ch = curl_init('https://smmbuys.com.tr/api/v2');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POSTFIELDS => http_build_query(['key' => 'YOUR_KEY', 'action' => 'add', 'service' => 1, 'link' => 'https://instagram.com/user', 'quantity' => 1000])]);
var_dump(json_decode(curl_exec($ch), true));