查询指定域名在百度移动搜索中针对某关键词的排名情况。
查询指定域名在百度移动搜索中针对某关键词的排名情况。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| domain | string | 是 | 查询域名 | |
| keyword | string | 是 | 查询关键词 |
[
{
"name": "domain",
"type": "string",
"required": true,
"description": "查询域名",
"example": ""
},
{
"name": "keyword",
"type": "string",
"required": true,
"description": "查询关键词",
"example": ""
}
]{"openapi":"3.1.1","info":{"title":"百度关键词移动排名查询","description":"查询指定域名在百度移动搜索中针对某关键词的排名情况。","version":"1.0.0"},"paths":{"/apis/gateway?api=bdrankm":{"get":{"summary":"百度关键词移动排名查询","description":"查询指定域名在百度移动搜索中针对某关键词的排名情况。","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"查询域名"},{"name":"keyword","in":"query","required":true,"schema":{"type":"string"},"description":"查询关键词"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"百度关键词移动排名查询","description":"查询指定域名在百度移动搜索中针对某关键词的排名情况。","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"查询域名"},{"name":"keyword","in":"query","required":true,"schema":{"type":"string"},"description":"查询关键词"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"servers":[{"url":"https://api.souxiaocha.com","description":"当前访问入口(https)"}]}
{"success":true,"data":{"domain":"www.wengbi.com","keyword":"翁笔典籍网","Ranks":[{"RankStr":"1-1","Title":"翁笔典籍网","Url":"https:\/\/www.wengbi.com\/","XiongzhangID":""}]},"generated_at":"2026-07-30 14:04:08"}https://api.souxiaocha.com/apis/gateway?api=bdrankmGET https://api.souxiaocha.com/apis/gateway?api=bdrankm apikey=你的API密钥&domain=请填写domain&keyword=请填写keyword
GET 参数放在查询字符串中。参数值请替换为实际有效值。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
domain | string | 是 | 查询域名 | |
keyword | string | 是 | 查询关键词 |
{"success":true,"data":{"domain":"www.wengbi.com","keyword":"翁笔典籍网","Ranks":[{"RankStr":"1-1","Title":"翁笔典籍网","Url":"https:\/\/www.wengbi.com\/","XiongzhangID":""}]},"generated_at":"2026-07-30 14:04:08"}查询指定域名在百度移动搜索中针对某关键词的排名情况。
https://api.souxiaocha.com/apis/gateway?api=bdrankm
GET / POST(业务参数 GET 通过 URL 传递,POST 支持表单或 JSON)
调用需携带平台密钥(用户中心「令牌管理」获取,SK- 开头):
key=SK-你的密钥X-API-Key: SK-你的密钥| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| domain | string | 是 | 查询域名 |
| keyword | string | 是 | 查询关键词 |
[
{"name": "domain", "type": "string", "required": true, "description": "查询域名"},
{"name": "keyword", "type": "string", "required": true, "description": "查询关键词"}
]
成功返回示例:
{"success":true,"data":{"domain":"www.wengbi.com","keyword":"翁笔典籍网","Ranks":[{"RankStr":"1-1","Title":"翁笔典籍网","Url":"https:\/\/www.wengbi.com\/","XiongzhangID":""}]},"generated_at":"2026-07-30 14:04:08"}
失败返回示例:
{"success":false,"error":"missing_domain","message":"请提供域名参数(domain)"}
| 参数名 | 类型 | 说明 |
|---|---|---|
| data.domain | string | 查询域名 |
| data.keyword | string | 查询关键词 |
| data.Ranks[].RankStr | string | 排名位置(页数-条数) |
| data.Ranks[].Title | string | 标题 |
| data.Ranks[].Url | string | 链接 |
| data.Ranks[].XiongzhangID | string | 熊掌ID |
curl "https://api.souxiaocha.com/apis/gateway?api=bdrankm?key=SK-你的密钥&domain=douhao.com&keyword=API"
上游业务级错误:
| code | msg | 描述 |
|---|---|---|
| 400 | missing_domain | 缺少domain参数 |
| 400 | missing_keyword | 缺少keyword参数 |
| 500 | api_request_failed | 接口请求异常 |
| 502 | query_failed | 查询失败 |
平台级错误(errcode):11001 缺少密钥 / 11002 密钥无效或已禁用 / 11005 接口禁用 / 11006 接口维护 / 11010 积分不足 / 11018 请求方式不允许。
失败时请以响应体中的 code / errcode 与 msg 判断。
2026-09-24
curl "https://api.souxiaocha.com/apis/gateway?api=bdrankm?key=SK-你的密钥&domain=douhao.com&keyword=API"
// 结果将在此处显示