接口地址: https://api.ahfi.cn/api/checkLink
返回格式: JSON
请求方式: GET/POST
请求示例: 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 | 返回网站的状态 |
返回示例:
{ "code": 200, "msg": "检测成功", "data": { "exists": true, "myurl": "http://www.ahfi.cn", "targeturl": "http://api.ahfi.cn", "status": { "code": 200, "message": "正常访问", "is_ssl": true } } }