| 参数名称 | 类型 | 参数值 | 描述 |
|---|---|---|---|
url | 必填 | www.blogs.ink | 即需要查询的域名 |
{
"code": 200,
"domain": "api.blogs.ink",
"data": {
"title": "旧时代API",
"keywords": " 免费提供API服务 ",
"description": " 免费提供API服务 "
}
}
$get = "https://api.blogs.ink/api/Sitetitle/?url=api.blogs.ink";
$result = file_get_contents($get);
if ($result) {
//成功
echo $result;
} else {
//失败
}