友情链接检测 [新]
新版检测对方网站是否存在友情链接地址
接口基础信息
-
接口地址https://api.ahfi.cn/api/checkLink
-
请求方式GET/POST
-
返回格式JSON
请求示例
以下是该接口的请求示例,可直接复制使用:
cURL 请求示例
https://api.ahfi.cn/api/checkLink?myurl=https://www.ahfi.cn&targeturl=https://api.ahfi.cn
请求参数
以下是该接口的请求参数说明:
| 参数名 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| myurl | string | 选填 | 自己网站 |
| targeturl | string | 选填 | 检测目标网站 |
返回参数
以下是该接口的返回参数说明:
| 参数名 | 类型 | 描述 |
|---|---|---|
| data | object | 层级对象 |
| ├─ exists | Boolean | true=存在、false=不存在 |
| ├─ myurl | string | 自己网站 |
| ├─ targeturl | string | 目标网站 |
| └─ status | string | 返回网站的状态 |
返回示例
以下是该接口的返回示例:
JSON 返回示例
{
"code": 200,
"msg": "检测成功",
"data": {
"exists": true,
"myurl": "http://www.ahfi.cn",
"targeturl": "http://api.ahfi.cn",
"status": {
"code": 200,
"message": "正常访问",
"is_ssl": true
}
}
}