接口地址:https://disify.com/api/email/ |
---|
返回格式:json |
请求方式:get |
请求示例:https://disify.com/api/email/your@example.com |
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
string | 必填 | 邮箱地址 |
名称 | 类型 | 说明 |
---|---|---|
format | bool | 检查电子邮件是否具有有效格式 |
alias | bool | 检查电子邮件是否包含+符号 |
domain | string | 返回给定电子邮件的顶级域 |
string | bool | 检查电子邮件是否被检测为一次性 |
dns | bool | 检查电子邮件MX记录是否有效 |
{
"format": true,
"domain": "free-api.com",
"disposable": false,
"dns": true
}
错误码 | 说明 |
---|---|
- | - |
<?php
/**
* Created by PhpStorm.
* User: FZS
* Time: 2023/12/10 12:56
*/
class freeApi
{
private $apiUrl;
public function __construct()
{
$this->apiUrl = 'https://disify.com/api/email/your@example.com';
}
/**
* 获取结果
* @return array
*/
public function getResult()
{
return file_get_contents($this->apiUrl);
}
}
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
const (
APIURL = "https://disify.com/api/email/your@example.com"
)
func main() {
queryUrl := fmt.Sprintf("%s",APIURL)
resp, err := http.Get(queryUrl)
if err != nil {
log.Println(err)
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}