首页排名批量查询
请求方式:
GET
返回格式:
JSON
请求示例:
localhost:88/api/v1/{apikey}/ranking/query?domains=example.com,baidu.com&keywords=测试,百度
接口备注:
批量查看域名的首页排名相关信息
请求参数说明
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
domains |
String | 是 | 域名,多个用逗号分隔 |
keywords |
String | 是 | 关键词,多个用逗号分隔,每个关键词的位置对应域名的位置 |
返回参数说明
| 名称 | 类型 | 说明 |
|---|---|---|
count |
Int | 查询总数 |
results |
Array | 查询结果列表 |
results[].domain |
String | 域名 |
results[].keyword |
String | 关键词 |
results[].ranking |
String | 首页排名(如"第1名"或"暂无排名") |
results[].title |
String | 首页标题 |
results[].url |
String | 收录链接URL |
results[].status |
String | 查询状态 |
results[].cached |
Boolean | 是否来自缓存 |
JSON 返回示例
JSON
{
"code": 200,
"message": "操作成功",
"data": {
"count": 2,
"results": [
{
"domain": "example.com",
"keyword": "测试",
"ranking": "暂无排名",
"title": "",
"url": "",
"status": "未收录",
"cached": true
},
{
"domain": "baidu.com",
"keyword": "百度",
"ranking": "暂无排名",
"title": "",
"url": "",
"status": "未收录",
"cached": true
}
]
}
}