📧
邮件验证码提取
智能提取各种邮箱中的验证码,支持多种邮箱服务商
高性能服务
基于PHP的高性能API服务,响应速度快,稳定性强

📧 邮件验证码提取API

从指定邮箱中提取最新的验证码,支持多种输出格式。智能识别各种验证码格式,包括数字验证码、字母数字组合等。
GET https://api.haoku.pro/api.php

请求参数

参数名 类型 必填 说明 示例值
mail string 必填 要查询的邮箱地址 test@example.com
type string 可选 输出格式:json(默认)、html、code json

请求示例

GET https://api.haoku.pro/api.php?mail=test@example.com&type=json

响应示例 (JSON格式)

[ { "html_content": "<html><body>您的验证码是:<strong>123456</strong></body></html>", "verification_code": "123456" } ]

响应示例 (HTML格式)

<html><body>您的验证码是:<strong>123456</strong></body></html>

响应示例 (CODE格式)

123456

错误响应

{ "ok": false, "error": "邮箱格式不正确" }