接口地址: https://api.ahfi.cn/api/linkcheck
返回格式: JSON
请求方式: GET
请求示例: https://api.ahfi.cn/api/linkcheck?myurl=https://api.ahfi.cn&targeturl=https://www.ahfi.cn
请求参数:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| myurl | 是 | string | 自己网站 |
| targeturl | 是 | string | 检测目标网站 |
返回参数:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | ini | 状态码:200存在,201不存在,其他异常 |
| message | string | 结果 |
| myurl | string | 自己网站 |
| targeturl | string | 目标网站 |
返回示例:
{
"code": 200,
"data": {
"message": "友情链接存在!",
"myurl": "https://api.ahfi.cn",
"targeturl": "https://www.ahfi.cn"
}
}