واجهة برمجة تطبيقات التحقق من البريد الإلكتروني

تحقق متقدم من البريد الإلكتروني مع فحص MX وDNS والنطاقات المؤقتة وحسابات الأدوار وتقييم قابلية التسليم.

ماذا يمكنك أن تفعل؟
Cut bounce rates

Validate before you hit "Send".

Block disposable sign-ups

Stop throwaway in registrations & marketing lists.

Improve sender reputation

Better email hygiene = higher inbox placement.

جرب مباشرة
99.9 % وقت التشغيل
1402.7ms الاستجابة
20 req/s
0.005 الأرصدة / الطلب

Validate Email


POST https://api.yeb.to/v1/mailchecker
المعاملالنوعمطلوبالوصف
api_key string نعم Your API key
email string نعم Email to validate

مثال

curl -X POST https://api.yeb.to/v1/mailchecker \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "email":   "[email protected]"
}'

مثال الاستجابة

{
  "email": "[email protected]",
  "trusted": "high",
  "score": 7,
  "risk": "low",
  "knownProvider": true,
  "recommend": []
}
{"error":"Missing \"email\" parameter","code":422}

رموز الاستجابة

الرمزالوصف
200 Successتمت معالجة الطلب بنجاح.
400 Bad Requestفشل التحقق من المدخلات.
401 Unauthorizedمفتاح API مفقود أو خاطئ.
403 Forbiddenالمفتاح غير نشط أو غير مسموح.
429 Rate Limitطلبات كثيرة جدًا.
500 Server Errorفشل غير متوقع.

Validate

mailchecker 0.0050 credits

Parameters

API Key
query · string · required
Email
query · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

واجهة برمجة تطبيقات التحقق من البريد الإلكتروني — Practical Guide

A hands-on guide to validating emails with واجهة برمجة تطبيقات التحقق من البريد الإلكتروني: what the endpoint does, when to use it, the parameters that actually matter, and how to act on the results to reduce bounces, catch typos, and keep your lists clean.

#What Mailchecker solves

The endpoint helps you prevent bounces, typos, and low-quality signups. Use it at signup, checkout, or list imports to assess trust and risk, and optionally suggest corrections.

#Endpoint & when to use it

#POST /v1/mailchecker — Validate Email

  • Best for: Inline form validation, CRM/ESP imports, fraud screening.
  • How it works: You send an email string; we return a quality score, trust/risk labels, provider hints, and recommendations.
  • Typical use: Client calls your backend; backend calls this endpoint and decides allow/confirm/block.

#Quick start

curl -X POST "https://api.yeb.to/v1/mailchecker" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <YOUR_API_KEY>" \
  -d '{ "email": "[email protected]" }'
// JS Fetch example
fetch('https://api.yeb.to/v1/mailchecker', {
  method: 'POST',
  headers: {
    'X-API-Key': '<YOUR_API_KEY>',
    'Content-Type': 'application/json',
    'Accept': 'application/json'
  },
  body: JSON.stringify({ email: '[email protected]' })
})
.then(r => r.json())
.then(console.log)
.catch(console.error);

#Parameters that actually matter

ParamTypeRequiredPractical guidance
api_key string Yes Send via server or signed edge. Avoid exposing raw keys on the client.
email string Yes Trim spaces and lowercase the domain part. Validate that it’s a single address (no lists).

#Reading & acting on responses

{
  "email": "[email protected]",
  "trusted": "high",       // high | medium | low | unknown
  "score": 7,              // 0..10 (higher is better)
  "risk": "low",           // low | medium | high
  "knownProvider": true,   // e.g., Gmail, Outlook, iCloud, Yahoo, corporate domains, etc.
  "recommend": []          // suggestions (typo fixes or safer alternatives)
}
  • trusted — overall confidence bucket. Use this for quick allow/step-up decisions.
  • score — numeric quality (0–10). Great for thresholds (e.g., ≥6 allow, 3–5 require confirm, <3 block).
  • risk — conservative view of potential bounce/misuse.
  • knownProvidertrue for common mailbox providers; false could indicate typos or private MX.
  • recommend[] — suggested corrections (e.g., [email protected] if user typed gmal.com).

#Common scenarios

// Typo correction
{
  "email": "[email protected]",
  "trusted": "medium",
  "score": 5,
  "risk": "medium",
  "knownProvider": false,
  "recommend": ["[email protected]"]
}
// Disposable or risky domain
{
  "email": "[email protected]",
  "trusted": "low",
  "score": 2,
  "risk": "high",
  "knownProvider": false,
  "recommend": []
}

#Recommended actions

  • Allow immediately: trusted = high and risk = low, or score ≥ 7.
  • Step-up / confirm: score 3–6 → require email confirmation or show “Is this correct?” with recommend[].
  • Block or require alternate contact: score < 3 or risk = high → don’t send transactional mail to it.
  • Never silently “fix”: Offer suggested corrections; let the user choose.

#Practical recipes

  • Inline signup: On blur, validate; if recommend[] not empty, present a one-click replace.
  • Checkout fraud hardening: For new accounts with risk = high, add OTP or card 3DS challenge.
  • List import: Batch through your backend; quarantine score < 3 rows and auto-mail confirm for 3–5.

#Troubleshooting & field notes

  1. 422 “Missing email”: Send a non-empty email string.
  2. 401 Unauthorized: Check your X-API-Key header and account credits.
  3. Edge cases: Role accounts (e.g., info@) and private MX can be valid but lower trust; use the score threshold instead of hard-blocking.
  4. Rate limits: Debounce form inputs; validate on blur/submit, not every keystroke.

#API Changelog

2025-10-20
Normalized trust buckets (trusted: high/medium/low/unknown) and risk labels (risk: low/medium/high). Improved typo suggestions in recommend[] for common providers.
2025-10-11
Stabilized score scale to 0–10 and aligned thresholds for allow/confirm/block recipes.
2025-10-01
Initial public release of /mailchecker with provider detection and baseline recommendations.

الأسئلة الشائعة

يُجري mailchecker خط معالجة أعمق: قاعدة بيانات النطاقات المؤقتة، واكتشاف حسابات الأدوار، وتحليل MX الكامل، ودرجة قابلية تسليم مركبة.

نعم – متوسط وقت الاستجابة أقل من 300 مللي ثانية، وهو ضمن حدود تجربة المستخدم للتحقق المضمّن.

نعم. كل طلب، حتى تلك التي تؤدي إلى أخطاء، تستهلك أرصدة. هذا لأن أرصدتك مرتبطة بعدد الطلبات، بغض النظر عن النجاح أو الفشل. إذا كان الخطأ بسبب مشكلة في المنصة من جانبنا، سنستعيد الأرصدة المتأثرة (بدون استرداد نقدي).

تواصل معنا على [email protected]. نأخذ الملاحظات بجدية—إذا كان تقرير الخطأ أو طلب الميزة ذا معنى، يمكننا إصلاح أو تحسين الواجهة بسرعة ومنحك 50 رصيدًا مجانيًا كشكر لك.

يعتمد على الواجهة وأحيانًا حتى على نقطة النهاية. بعض النقاط النهائية تستخدم بيانات من مصادر خارجية، والتي قد تكون لها حدود أكثر صرامة. نفرض أيضًا حدودًا لمنع إساءة الاستخدام والحفاظ على استقرار منصتنا. راجع الوثائق لمعرفة الحد المحدد لكل نقطة نهاية.

نعمل بنظام الأرصدة. الأرصدة هي وحدات مسبقة الدفع وغير قابلة للاسترداد تنفقها على استدعاءات API والأدوات. تُستهلك الأرصدة بنظام FIFO (الأقدم أولاً) وصالحة لمدة 12 شهرًا من تاريخ الشراء. تعرض لوحة التحكم تاريخ كل عملية شراء وانتهاء صلاحيتها.

نعم. جميع الأرصدة المشتراة (بما في ذلك الأرصدة الجزئية) صالحة لمدة 12 شهرًا من الشراء. تنتهي صلاحية الأرصدة غير المستخدمة تلقائيًا وتُحذف نهائيًا في نهاية فترة الصلاحية. لا يمكن استعادة الأرصدة المنتهية أو تحويلها إلى نقد أو قيمة أخرى. قاعدة انتقالية: الأرصدة المشتراة قبل 22 سبتمبر 2025 تُعامل كمشتراة في 22 سبتمبر 2025 وتنتهي في 22 سبتمبر 2026 (ما لم يُذكر تاريخ انتهاء أبكر عند الشراء).

نعم—ضمن فترة الصلاحية. تبقى الأرصدة غير المستخدمة متاحة وتُترحل من شهر لآخر حتى تنتهي صلاحيتها بعد 12 شهرًا من الشراء.

الأرصدة غير قابلة للاسترداد. اشترِ فقط ما تحتاجه—يمكنك دائمًا إعادة الشحن لاحقًا. إذا تسبب خطأ في المنصة في فشل الشحن، قد نستعيد الأرصدة المتأثرة بعد التحقيق. لا استرداد نقدي.

الأسعار محددة بالأرصدة وليس بالدولارات. كل نقطة نهاية لها تكلفتها الخاصة—انظر شارة "الأرصدة / الطلب" أعلاه. ستعرف دائمًا بالضبط ما تنفقه.
← العودة إلى واجهات البرمجة