API Kiểm Tra Email

Xác thực email nhanh, chính xác và kiểm tra khả năng gửi.

Lấy API Key Mua tín dụng
Bạn có thể làm gì?
Giảm tỷ lệ trả lại

Xác thực trước khi nhấn "Gửi".

Chặn đăng ký dùng một lần

Ngăn chặn địa chỉ tạm thời trong đăng ký và danh sách tiếp thị.

Cải thiện uy tín người gửi

Vệ sinh email tốt hơn = tỷ lệ vào hộp thư đến cao hơn.

Dùng thử trực tiếp
99.9 % Thời gian hoạt động
1402.7ms Phản hồi
20 req/s
0.005 Tín dụng / yêu cầu

Validate Email


POST https://api.yeb.to/v1/mailchecker
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
email string Email to validate

Ví dụ

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

Ví dụ phản hồi

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

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Validate

mailchecker 0.0050 credits

Parameters

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

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

API Kiểm Tra Email — Practical Guide

A hands-on guide to validating emails with API Kiểm Tra Email: 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.

Câu hỏi thường gặp

Sử dụng DNS đa bước, MX và phương pháp suy đoán để ước tính khả năng gửi mà không cần banner SMTP, giữ cho nó nhanh và an toàn.

Không. Chúng tôi băm email trong quá trình xử lý để phân tích; địa chỉ văn bản thuần không bao giờ được ghi vào đĩa.

Có. Mọi yêu cầu, kể cả những yêu cầu có lỗi, đều tiêu tốn tín dụng. Tín dụng của bạn được gắn với số lượng yêu cầu, bất kể thành công hay thất bại. Nếu lỗi rõ ràng do sự cố nền tảng từ phía chúng tôi, chúng tôi sẽ khôi phục tín dụng bị ảnh hưởng (không hoàn tiền mặt).

Liên hệ chúng tôi tại [email protected]. Chúng tôi coi trọng phản hồi—nếu báo cáo lỗi hoặc yêu cầu tính năng của bạn có ý nghĩa, chúng tôi có thể sửa hoặc cải thiện API nhanh chóng và tặng bạn 50 tín dụng miễn phí để cảm ơn.

Tùy thuộc vào API và đôi khi cả endpoint. Một số endpoint sử dụng dữ liệu từ nguồn bên ngoài, có thể có giới hạn nghiêm ngặt hơn. Chúng tôi cũng áp dụng giới hạn để ngăn chặn lạm dụng và duy trì sự ổn định của nền tảng. Kiểm tra tài liệu để biết giới hạn cụ thể cho mỗi endpoint.

Chúng tôi hoạt động theo hệ thống tín dụng. Tín dụng là các đơn vị trả trước, không hoàn lại mà bạn chi cho các cuộc gọi API và công cụ. Tín dụng được tiêu thụ theo FIFO (cũ nhất trước) và có hiệu lực 12 tháng kể từ ngày mua. Bảng điều khiển hiển thị ngày mua và ngày hết hạn của mỗi giao dịch.

Có. Tất cả tín dụng đã mua (bao gồm số dư lẻ) có hiệu lực 12 tháng kể từ ngày mua. Tín dụng chưa sử dụng tự động hết hạn và bị xóa vĩnh viễn khi kết thúc thời hạn hiệu lực. Tín dụng đã hết hạn không thể khôi phục hoặc chuyển đổi thành tiền mặt hay giá trị khác. Quy tắc chuyển tiếp: tín dụng mua trước ngày 22 tháng 9 năm 2025 được coi là mua vào ngày 22 tháng 9 năm 2025 và hết hạn vào ngày 22 tháng 9 năm 2026 (trừ khi ngày hết hạn sớm hơn được ghi khi mua).

Có—trong thời hạn hiệu lực. Tín dụng chưa sử dụng vẫn khả dụng và được chuyển từ tháng sang tháng cho đến khi hết hạn 12 tháng sau khi mua.

Tín dụng là không hoàn lại. Chỉ mua những gì bạn cần—bạn luôn có thể nạp thêm sau. Nếu lỗi nền tảng gây ra tính phí thất bại, chúng tôi có thể khôi phục tín dụng bị ảnh hưởng sau khi điều tra. Không hoàn tiền mặt.

Giá được tính bằng tín dụng, không phải đô la. Mỗi endpoint có chi phí riêng—xem huy hiệu "Tín dụng / yêu cầu" ở trên. Bạn luôn biết chính xác mình đang chi bao nhiêu.
← Quay lại API