跳转到内容

邮箱可投递性验证 API:发到这个邮箱的信能送达吗?

判断发往某个邮箱地址的邮件能否送达。支持任意域名——Gmail、Outlook、企业域名等都可以。每次调用返回结论,以及解释结论的 12 个说明字段。

与统一邮箱检测的区别:统一邮箱检测回答“这个邮箱是否已注册”,只支持部分邮箱服务商;邮箱可投递性验证回答“发信能否送达”,支持任意域名,并返回说明字段。

代码示例:

curl -X POST 'https://api.ekycpro.com/v1/check' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"service_type": "email_verify", "identifier": "[email protected]"}'

成功响应:

{
"success": true,
"data": {
"id": "chk_a1b2c3d4e5f6",
"identifier": "[email protected]",
"registered": true,
"billed": true,
"email_status": "valid",
"score": 92,
"is_catchall": false,
"is_disposable": false,
"is_role": false,
"is_free": true,
"domain_suggestion": null,
"mx_records": ["gmail-smtp-in.l.google.com", "alt1.gmail-smtp-in.l.google.com"],
"smtp_check": true,
"smtp_result": "deliverable",
"smtp_response": "250 2.1.5",
"domain_age": 30
}
}

HTTP 请求

POST https://api.ekycpro.com/v1/check

请求头

请求头说明
X-API-Key您的 API Key(必填)
Content-Typeapplication/json

请求体

字段类型必填说明
service_typestring是email_verify
identifierstring是邮箱地址

响应字段

字段类型说明
successbool请求是否成功
data.idstring本次检测唯一 ID
data.identifierstring被查询的邮箱
data.registeredbool结论——是否可投递:true 表示发信能送达;false 表示无法送达
data.billedbool本次请求是否计费
data.email_statusstring / null地址类别:valid / invalid / catchall / disposable / risky / role,今后可能增加其它小写取值
data.scoreint / null0–100 质量分,经验估计,不是送达概率
data.is_catchallbool / null该域名接收任意收件人,无法确认具体邮箱是否存在
data.is_disposablebool / null临时(一次性)邮箱
data.is_rolebool / null共享的角色邮箱,如 info@、support@
data.is_freebool / null免费邮箱服务(Gmail、Outlook、Yahoo 等)
data.domain_suggestionstring / null域名疑似拼错时的建议域名(如 gmial.com → gmail.com),否则为 null
data.mx_recordsstring[] / null域名公布的收信服务器(MX 主机)
data.smtp_checkbool / null是否对该地址做了邮件服务器检查
data.smtp_resultstring / null邮件服务器检查结果:deliverable / undeliverable / inconclusive / not_checked
data.smtp_responsestring / null邮件服务器返回的 SMTP 状态码,如 550 5.1.1(只有状态码,不含文字说明)
data.domain_ageint / null域名年龄(年)

12 个说明字段在 data 中始终存在。null 表示无此信息,不等于 false。即使已有结论,mx_records、smtp_check、smtp_result、smtp_response、domain_age 也可能为 null。

全收(catch-all)、角色邮箱和一次性邮箱同样会给出结论并计费,可结合说明字段判断风险。

响应时间

多数检测耗时 1–5 秒。部分邮件服务器响应较慢或会延迟陌生发件方,单次检测最长约 30 秒。

NOT_FOUND

返回 "success": false、"error": "NOT_FOUND" 表示邮件服务器无法给出确定结论——例如超时、临时故障,或从不确认邮箱是否存在的邮箱服务商。NOT_FOUND 不计费,稍后重试可能得到结论。

状态码

状态码说明
200请求成功
400邮箱格式非法或 service_type 不支持
401API Key 无效
402余额不足