邮箱可投递性验证 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", "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-Type | application/json |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
service_type | string | 是 | email_verify |
identifier | string | 是 | 邮箱地址 |
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
success | bool | 请求是否成功 |
data.id | string | 本次检测唯一 ID |
data.identifier | string | 被查询的邮箱 |
data.registered | bool | 结论——是否可投递:true 表示发信能送达;false 表示无法送达 |
data.billed | bool | 本次请求是否计费 |
data.email_status | string / null | 地址类别:valid / invalid / catchall / disposable / risky / role,今后可能增加其它小写取值 |
data.score | int / null | 0–100 质量分,经验估计,不是送达概率 |
data.is_catchall | bool / null | 该域名接收任意收件人,无法确认具体邮箱是否存在 |
data.is_disposable | bool / null | 临时(一次性)邮箱 |
data.is_role | bool / null | 共享的角色邮箱,如 info@、support@ |
data.is_free | bool / null | 免费邮箱服务(Gmail、Outlook、Yahoo 等) |
data.domain_suggestion | string / null | 域名疑似拼错时的建议域名(如 gmial.com → gmail.com),否则为 null |
data.mx_records | string[] / null | 域名公布的收信服务器(MX 主机) |
data.smtp_check | bool / null | 是否对该地址做了邮件服务器检查 |
data.smtp_result | string / null | 邮件服务器检查结果:deliverable / undeliverable / inconclusive / not_checked |
data.smtp_response | string / null | 邮件服务器返回的 SMTP 状态码,如 550 5.1.1(只有状态码,不含文字说明) |
data.domain_age | int / 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 不支持 |
401 | API Key 无效 |
402 | 余额不足 |