حالة الحساب
يعيد ميزتين مستقلتين يكسبهما الحساب بالإنفاق: تقدم سعة API مدى الحياة وتقدم الخصم المتحرك خلال 90 يومًا. لا تغير هذه القراءة أي قيمة.
POST
https://notpanel.com/api/v3action=account_statusمفتاح API مطلوبمحدود بالمعدل (حساب مشترك + IP + إجراء)الجسم:
application/x-www-form-urlencodedالمعاملات
| الاسم | النوع | الوصف |
|---|---|---|
| keyمطلوب | string | مفتاح API الخاص بك. |
| actionمطلوب | string | يجب أن يكون السلسلة النصية الحرفية "account_status". |
مثال على الطلب
استبدل YOUR_API_KEY بالمفتاح المُولَّد ضمن صفحة API في لوحة تحكمك.
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=account_status"const res = await fetch("https://notpanel.com/api/v3", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "account_status",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "account_status",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'account_status',
]);
$response = file_get_contents('https://notpanel.com/api/v3', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
'ignore_errors' => true,
],
]));
print_r(json_decode($response, true));
مثال على الاستجابة
{
"currency": "USD",
"lifetime_successful_spend": "550.00",
"api_rate": {
"tier": 4,
"tier_minimum_spend": "500.00",
"tier_requests_per_minute": 1200,
"effective_requests_per_minute": 1200,
"source": "tier",
"next_tier": 5,
"next_tier_minimum_spend": "1000.00"
},
"discount": {
"level": 5,
"successful_spend_90_days": "550.00",
"window_days": 90,
"percent": 30,
"source": "level",
"next_level": 6,
"next_level_minimum_spend": "1000.00"
}
}الأخطاء الشائعة
| الحالة | الجسم | السبب |
|---|---|---|
| 403 | {"error":"Account suspended"} | الحساب غير نشط، لذلك لا تتوفر حالة مزاياه لهذا المفتاح. |