التوثيق / مرجع الواجهة
تقييم البريد الإلكتروني
تقيّم عنوان بريد إلكتروني بدرجة من 0 إلى 3 تعبّر عن احتمال كونه وهميًا أو مؤقتًا أو مسيئًا.
نظرة عامة#
تقيّم scoring/email العنوان الممرَّر في email دون إرسال أي شيء إليه. وتُرجع score وreason بلغة مفهومة والقيم المنطقية isValid وisDisposable وisFree وisRoleBased وisEducational ومؤشر blacklisted وكتلة domain بعمر النطاق وحالة MX وSPF وDKIM وDMARC وBIMI (وهي بيانات فحص النطاق نفسها).
متى تستخدمه#
- لمنع العناوين المؤقتة عند التسجيل وإنشاء التجارب واستخدام العروض.
- لتقرير ما إذا كنت ستطلب تأكيد البريد أو تحققًا إضافيًا.
- لتنظيف قائمة بريدية قبل الحملة حفاظًا على سمعة مرسلك.
قراءة النتيجة#
تتدرج score من 0 (سليم) إلى 3 (سيئ على الأرجح). سياسة معقولة:
- من 0 إلى 1: اقبل بشكل طبيعي.
- 2: اقبل مع التحقق، مثل إرسال رابط تأكيد وتقييد صلاحيات الحساب إلى أن يُضغط.
- 3: ارفض أو أحِل إلى مراجعة يدوية.
اقرأ المؤشرات لفهم السبب. isDisposable أقوى مؤشر على الإساءة. وisFree (مزودو البريد المجاني) طبيعي للمستهلكين ولا يعني الكثير وحده، بينما isRoleBased (مثل info@ وsupport@) تعني صندوقًا مشتركًا لا شخصًا. وisEducational تدل على نطاقات المدارس والجامعات، وهذا مفيد إن كان لديك سعر للطلاب. والنطاق الحديث أو بلا سجل MX يرفع الدرجة.
إشارات إضافية#
suggestion: عندما يبدو النطاق خطأً إملائيًا لمزوّد كبير (gmial.comوhotmial.comوyaho.comوoutlok.comوicloud.coوgmail.con) يُرجع العنوان المصحَّح مثلahmed@gmail.com، وإلاnull. اعرضه بصيغة «هل تقصد...؟». والنطاق الخاطئ بلا MX يأخذ الدرجة 3 (Email domain looks like a typo of gmail.com.)، وإن كان يستقبل البريد فالدرجة 2 على الأقل.isGibberish: تكونtrueعندما يبدو الجزء قبل@مولَّدًا عشوائيًا أو ضربًا على لوحة المفاتيح (xk3j9qz2vوqwerty123وaaaaaa1أو سلسلة أرقام طويلة). والفحص متحفظ ولا يُعلِّم الأسماء العادية العربية أو اللاتينية مثلmohammed.alqahtaniأوnoura1995. ويرفع الدرجة إلى 1 على الأقل.normalized: العنوان القياسي لاكتشاف تعدد الحسابات. يُحوَّل إلى أحرف صغيرة وتُحذف لاحقة+tagوتُزال نقاط عناوين Gmail، فيصيرA.B+shop@gmail.comهوab@gmail.com. ويبقى الأصل فيemail.
ملاحظات#
- تُحتسب طلبًا واحدًا. وضع الاختبار يُرجع بيانات وهمية مجانًا دون أحداث.
- ليست ضمن الباقة القياسية؛ متاحة في التجربة والمميّزة والدفع حسب الاستخدام. وبدون صلاحية يصلك الخطأ 117 (
feature_not_available). - يمكن لـالقواعد المخصصة في مجموعة البريد اختبار العنوان والنطاق وكل مؤشر، واستبدال الدرجة، أو تعليم العنوان كصالح أو غير صالح. وتُسرد التطابقات في
custom_rules_applied. - يُطلَق حدث
spam_emailعندما تكون الدرجة 2 أو أعلى ويُرسل إلى الويب هوك. - العنوان المفقود أو غير الصحيح يُرجع الخطأ 119 (
invalid_email_address) مع HTTP 200.
الطلب#
https://gurdx.cretip.com/api/scoring/email
- صادِق بمعامل key أو بترويسة Authorization: Bearer.
- تُحتسب طلباً واحداً.
- متاحة في: تجربة مجانية المميّزة الدفع حسب الاستخدام
المعاملات#
| الاسم | النوع | الوصف |
|---|---|---|
email
مطلوب
استعلام |
string |
The email command is used to specify the email you want to validate. Expected values: an email address Sample value: name@domain.com
|
تقبل كل خدمة أيضاً format, lang, mode, userID, callback. راجع الخيارات.
أمثلة برمجية#
curl -G "https://gurdx.cretip.com/api/scoring/email" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "email=user@example.com"
<?php
$response = file_get_contents('https://gurdx.cretip.com/api/scoring/email?'.http_build_query(['key' => 'YOUR_API_KEY', 'email' => 'user@example.com']));
$result = json_decode($response, true);
if ($result['status'] === 'success') {
print_r($result['data']);
} else {
echo $result['code'].': '.$result['description'];
}
const params = new URLSearchParams({"key":"YOUR_API_KEY","email":"user@example.com"});
const res = await fetch(`https://gurdx.cretip.com/api/scoring/email?${params}`);
const result = await res.json();
if (result.status === 'success') {
console.log(result.data);
} else {
console.error(result.code, result.description);
}
import requests
res = requests.get("https://gurdx.cretip.com/api/scoring/email", params={"key": "YOUR_API_KEY", "email": "user@example.com"})
result = res.json()
if result["status"] == "success":
print(result["data"])
else:
print(result["code"], result["description"])
الاستجابة#
نجاح#
{
"data": {
"score": 3,
"reason": "Email domain is considered dangerous.",
"isValid": false,
"isFree": false,
"isRoleBased": true,
"isEducational": false,
"isDisposable": false,
"blacklisted": false,
"email": "test@dangerous-domain.com",
"domain": {
"name": "dangerous-domain.com",
"is_dangerous": true,
"is_spf": false,
"is_dmarc": false,
"is_dkim": false,
"is_mx": false,
"is_bimi": false,
"created_at": "2025-02-05",
"is_new": true
},
"custom_rules_applied": {
"total": 0,
"rules": []
},
"suggestion": null,
"isGibberish": false,
"normalized": "test@dangerous-domain.com"
},
"status": "success",
"executionTime": 1
}خطأ#
تُسلَّم الأخطاء بحالة HTTP 200 — افحص دائماً حقل status.
{
"status": "error",
"code": 101,
"type": "invalid_key",
"description": "The API Key is missing or invalid."
}حقول الاستجابة#
| الاسم | النوع | الوصف |
|---|---|---|
data.score |
integer |
A risk-score from 0 to 3 indicating how risky this email address is (0=safe, 1=low-risk, 2=high-risk, 3=too-risky). |
data.reason |
string |
The reason behind considering this email address as risky. Note: The value of this property will be empty if the score is 0.
|
data.isFree |
boolean |
Indicates whether the email address is from a free email service provider. |
data.isRoleBased |
boolean |
Indicates whether the email address is a role-based email address. Role-based email addresses are those that are associated with a particular role or group, such as admin, support, info, etc.
|
data.isEducational |
boolean |
Indicates whether the email address is an educational email address. |
data.isValid |
boolean |
A boolean value that you can rely on to determine if the email address is 100% safe & valid or not. |
data.isDisposable |
boolean |
Indicates whether the email address is a disposable email address (also known as Temporary Email Addresses). |
data.blacklisted |
boolean |
Indicates if the email/domain is blacklisted due to applying custom rules or were found in one of your blacklists. |
data.suggestion |
string|null |
Corrected address when the domain looks like a typo of a major provider, e.g. ahmed@gmail.com. |
data.isGibberish |
boolean |
True when the local part looks randomly generated or keyboard-mashed. |
data.normalized |
string |
Canonical address for multi-account detection (lower-case, +tag removed, Gmail dots removed). |
data.domain.name |
string |
The full domain name associated with the email address (for example, gmail.com).
|
data.domain.is_dangerous |
boolean|null |
Indicates whether the domain is flagged as dangerous or suspicious, which may suggest a higher risk of fraud or abuse. If this property is set to true, the domain is considered high-risk or potentially malicious. As a result, the isValid property will also be false, indicating that the email address should not be trusted for critical communications or user registrations. It is strongly recommended to block or flag such email addresses in your application workflow.
|
data.domain.is_spf |
boolean|null |
Indicates whether the domain has a valid SPF (Sender Policy Framework) record, which helps prevent email spoofing. |
data.domain.is_dmarc |
boolean|null |
Indicates whether the domain has a valid DMARC (Domain-based Message Authentication, Reporting, and Conformance) record, which helps protect against email phishing and spoofing. |
data.domain.is_dkim |
boolean|null |
Indicates whether the domain has a valid DKIM (DomainKeys Identified Mail) record, which verifies the authenticity of the sender's domain. |
data.domain.is_mx |
boolean|null |
Indicates whether the domain has valid MX (Mail Exchange) records, confirming that it is capable of receiving emails. |
data.domain.is_bimi |
boolean|null |
Indicates whether the domain has a valid BIMI (Brand Indicators for Message Identification) record, which allows brand logos to be displayed in supported email clients. |
data.domain.created_at |
string|null |
The date when the domain was first registered or created, if available. |
data.domain.is_new |
boolean|null |
Indicates whether the domain is new or recently registered (registered within 1 year), which may affect its reputation and trustworthiness. |
data.domain |
object |
The information associated with the domain name of the email address. |
data.custom_rules_applied.total |
integer |
The total number of custom rules applied to this request. |
data.custom_rules_applied.rules.id |
string |
The rule ID as shown in the dashboard (e.g: CR104).
|
data.custom_rules_applied.rules.title |
string |
The rule title you set when creating the rule. |
data.custom_rules_applied.rules |
object |
The custom rules applied to this request, learn more. |
data.custom_rules_applied |
object |
The custom rules applied to this request, learn more. |
data.status |
string |
The response status. Expected values: success, or error.
|
data.executionTime |
integer |
Time spent in milliseconds to process the data. |
data |
object |
— |
وجدت خطأ؟ أخبرنا عبر صفحة التواصل. تواصل معنا