网站TDK描述查询
查询网站标题关键词描述等等
接口地址: https://api.xhus.cn/api/webinfo
返回格式: JSON
请求方式: GET
请求示例:
默认示例:
https://api.xhus.cn/api/webinfo?url=https://api.xhus.cn

请求参数说明:

名称 必填 类型 说明
url string 网站链接

返回参数说明:

名称 类型 说明
title string 网站标题
keywords string 网站关键词
description string 网站描述

返回示例:

{
    "code": 200,
    "msg": "查询成功",
    "url": "https:\/\/www.example.com",
    "data": {
        "title": "Example Domain",
        "keywords": "",
        "description": ""
    }
}

错误码格式说明:

名称 类型 说明
500 无法访问 无法获取网站内容,请检查URL是否正确或网站是否可用

代码示例: