Ana sayfa / API
Bayi API
SMM panelini veya uygulamanı API v2'mize bağla. Tüm istekler HTTP POST, yanıtlar JSON formatındadır.
| API adresi | https://smmbuys.com.tr/api/v2 |
|---|---|
| HTTP metodu | POST |
| API anahtarı | Kayıt ol |
| Yanıt formatı | JSON |
action=services
| Parametreler | |
|---|---|
key | API anahtarı |
action | services |
Örnek yanıt
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true,
"dripfeed": false
}
]
action=add
| Parametreler | |
|---|---|
key | API anahtarı |
action | add |
service | Service ID |
link | Link |
quantity | Quantity |
runs | Runs (optional) |
interval | Interval (optional) |
comments | Comments (custom comment services) |
Örnek yanıt
{
"order": 23501
}
action=status
| Parametreler | |
|---|---|
key | API anahtarı |
action | status |
order | Order ID |
Örnek yanıt
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
action=status
| Parametreler | |
|---|---|
key | API anahtarı |
action | status |
orders | Order IDs, comma separated (max 100) |
Örnek yanıt
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
}
}
action=refill
| Parametreler | |
|---|---|
key | API anahtarı |
action | refill |
order | Order ID |
Örnek yanıt
{
"refill": "1"
}
action=cancel
| Parametreler | |
|---|---|
key | API anahtarı |
action | cancel |
orders | Order IDs, comma separated (max 100) |
Örnek yanıt
[
{
"order": 9,
"cancel": 1
},
{
"order": 2,
"cancel": {
"error": "Incorrect order ID"
}
}
]
action=balance
| Parametreler | |
|---|---|
key | API anahtarı |
action | balance |
Örnek yanıt
{
"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));