API للموزّعين
API v2 قياسي للوحات SMM. أنشئ حسابًا مجانيًا للحصول على مفتاح API الخاص بك.
طريقة HTTP
POST
رابط API
https://smmgonow.com/api/v2
الاستجابة
JSON
مفتاح API
إنشاء حساب للحصول على مفتاحك.
قائمة الخدمات
action=services| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | services |
مثال على الاستجابة
[
{
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true,
"dripfeed": false
}
]
إضافة طلب
action=add| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | add |
| service | رقم الخدمة |
| link | رابط الصفحة |
| quantity | الكمية المطلوبة |
| runs (optional) | عدد دفعات التسليم (التنقيط) |
| interval (optional) | الفاصل الزمني بالدقائق |
| comments (custom comments) | تعليق واحد في كل سطر |
مثال على الاستجابة
{
"order": 23501
}
حالة الطلب
action=status| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | status |
| order | رقم الطلب |
مثال على الاستجابة
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
حالة عدة طلبات
action=status| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | status |
| orders | أرقام الطلبات مفصولة بفواصل (حتى 100) |
مثال على الاستجابة
{
"1": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "USD" },
"10": { "error": "Incorrect order ID" }
}
طلب تعويض
action=refill| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | refill |
| order | رقم الطلب (أو "orders" لما يصل إلى 100) |
مثال على الاستجابة
{
"refill": "1"
}
حالة التعويض
action=refill_status| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | refill_status |
| refill | رقم التعويض (أو "refills" لما يصل إلى 100) |
مثال على الاستجابة
{
"status": "Completed"
}
إلغاء الطلبات
action=cancel| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | cancel |
| orders | أرقام الطلبات مفصولة بفواصل (حتى 100) |
مثال على الاستجابة
[
{ "order": 9, "cancel": { "error": "Incorrect order ID" } },
{ "order": 2, "cancel": 1 }
]
الرصيد
action=balance| المعامل | الوصف |
|---|---|
| key | مفتاح API الخاص بك |
| action | balance |
مثال على الاستجابة
{
"balance": "100.84292",
"currency": "USD"
}
مثال (PHP)
$ch = curl_init("https://smmgonow.com/api/v2");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
"key" => "YOUR_API_KEY",
"action" => "add",
"service" => 1,
"link" => "https://instagram.com/yourprofile",
"quantity" => 1000,
]),
]);
$result = json_decode(curl_exec($ch), true);