API Dokümantasyonu

SMM Panel API v2 standardı ile uyumlu. PerfectPanel, Glycon, JAP, SmartPanel ve benzeri sistemlerle entegre çalışır.
API anahtarınızı profil sayfanızdan oluşturup kullanabilirsiniz.

Base URL

https://beypanel.town/api/myservices.php

GET POST Her iki HTTP metodu da desteklenir.

Kimlik Doğrulama

Tüm isteklerde key parametresi zorunludur.

Parametre Tip Açıklama
key string Profilinizden aldığınız API anahtarı (zorunlu)

API Anahtarı Al

Endpoints

action=balance

Hesap bakiyesini sorgular.

  • key API anahtarı
  • action balance
action=services

Tüm aktif servisleri listeler.

  • key API anahtarı
  • action services
action=add

Yeni sipariş oluşturur.

  • key API anahtarı
  • action add
  • service Servis ID
  • link Hedef URL
  • quantity Miktar
action=status

Sipariş durumunu sorgular.

  • key API anahtarı
  • action status
  • order Sipariş ID

Örnek İstekler

1. Bakiye Sorgulama:

curl "https://beypanel.town/api/myservices.php?key=API_KEY&action=balance"

2. Servis Listesi:

curl "https://beypanel.town/api/myservices.php?key=API_KEY&action=services"

3. Sipariş Oluşturma:

curl -X POST "https://beypanel.town/api/myservices.php" \ -d "key=API_KEY" \ -d "action=add" \ -d "service=1" \ -d "link=https://instagram.com/kullanici" \ -d "quantity=1000"

4. Sipariş Durumu:

curl "https://beypanel.town/api/myservices.php?key=API_KEY&action=status&order=12345"

PHP Örneği

<?php $apiUrl = "https://beypanel.town/api/myservices.php"; $apiKey = "API_KEY"; // Bakiye Sorgulama function getBalance($url, $key) { $response = file_get_contents($url . "?key=" . $key . "&action=balance"); return json_decode($response, true); } // Servis Listesi function getServices($url, $key) { $response = file_get_contents($url . "?key=" . $key . "&action=services"); return json_decode($response, true); } // Sipariş Oluşturma function addOrder($url, $key, $serviceId, $link, $quantity) { $postData = [ "key" => $key, "action" => "add", "service" => $serviceId, "link" => $link, "quantity" => $quantity ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); return json_decode($response, true); } // Sipariş Durumu function getStatus($url, $key, $orderId) { $response = file_get_contents($url . "?key=" . $key . "&action=status&order=" . $orderId); return json_decode($response, true); } // Kullanım $balance = getBalance($apiUrl, $apiKey); print_r($balance); $services = getServices($apiUrl, $apiKey); print_r($services); $order = addOrder($apiUrl, $apiKey, 1, "https://instagram.com/kullanici", 1000); print_r($order); $status = getStatus($apiUrl, $apiKey, $order["order"]); print_r($status); ?>

Dönüş Yapıları

action=balance

{ "balance": "125.50", "currency": "TRY" }

action=services

[ { "service": "1", "name": "Instagram Takipçi [TRY]", "type": "default", "category": "Instagram", "rate": "45.00", "min": "100", "max": "10000", "dripfeed": false, "refill": false, "cancel": true } ]

action=add (Başarılı)

{ "order": 12345 }

action=status

{ "status": "pending", "start_count": "0", "remains": "1000", "currency": "TRY" }

Sipariş Durumları

Durum Açıklama
pending Sipariş beklemede
in_progress Sipariş işleniyor
completed Sipariş tamamlandı
partial Kısmi tamamlandı
canceled Sipariş iptal edildi
refunded İade edildi

Hata Mesajları

Hata Açıklama
API Key is missing API anahtarı gönderilmedi
Invalid API Key Geçersiz veya pasif API anahtarı
Invalid action Geçersiz action parametresi
Missing parameters Zorunlu parametreler eksik
Service ID not found Servis bulunamadı veya pasif
Quantity below minimum Miktar minimum limitin altında
Quantity above maximum Miktar maksimum limitin üstünde
Not enough funds Yetersiz bakiye
Order not found Sipariş bulunamadı
System error Sistem hatası oluştu

Hata Dönüş Örneği

{ "error": "Not enough funds" }

Hata durumunda response içinde error anahtarı bulunur. Bu anahtarın varlığını kontrol ederek hata yönetimi yapabilirsiniz.

Önemli Notlar

  • Tüm fiyatlar TRY (Türk Lirası) cinsindendir.
  • rate değeri 1000 adet için fiyatı gösterir.
  • Sipariş ücreti: (quantity / 1000) × rate formülü ile hesaplanır.
  • API anahtarınızı kimseyle paylaşmayın.
  • Aşırı istek gönderimi hesabınızın askıya alınmasına neden olabilir.