提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。
提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| domain | string | 是 | 查询域名,不需要带 http(s):// |
[
{
"name": "domain",
"type": "string",
"required": true,
"description": "查询域名,不需要带 http(s)://",
"example": ""
}
]{"openapi":"3.1.1","info":{"title":"百度收录查询","description":"提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。","version":"1.0.0"},"paths":{"/apis/gateway?api=bdshoulu":{"get":{"summary":"百度收录查询","description":"提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"查询域名,不需要带 http(s)://"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"百度收录查询","description":"提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"查询域名,不需要带 http(s)://"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"servers":[{"url":"https://api.souxiaocha.com","description":"当前访问入口(https)"}]}
{"success":true,"data":{"domain":"douhao.com","shoulu":{"all":6812,"hour":0,"sky":0,"week":25,"moon":95},"time":"2026-07-30 08:44:52"}}https://api.souxiaocha.com/apis/gateway?api=bdshouluGET https://api.souxiaocha.com/apis/gateway?api=bdshoulu apikey=你的API密钥&domain=请填写domain
GET 参数放在查询字符串中。参数值请替换为实际有效值。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
domain | string | 是 | 查询域名,不需要带 http(s):// |
{"success":true,"data":{"domain":"douhao.com","shoulu":{"all":6812,"hour":0,"sky":0,"week":25,"moon":95},"time":"2026-07-30 08:44:52"}}提供指定域名的百度收录数量查询,包含全部、1小时、24小时、一周、一月五个时间维度。
https://api.souxiaocha.com/apis/gateway?api=bdshoulu
GET / POST(业务参数 GET 通过 URL 传递,POST 支持表单或 JSON)
调用需携带平台密钥(用户中心「令牌管理」获取,SK- 开头):
key=SK-你的密钥X-API-Key: SK-你的密钥| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| domain | string | 是 | 查询域名,不需要带 http(s):// |
[
{"name": "domain", "type": "string", "required": true, "description": "查询域名,不需要带 http(s)://"}
]
成功返回示例:
{"success":true,"data":{"domain":"douhao.com","shoulu":{"all":6812,"hour":0,"sky":0,"week":25,"moon":95},"time":"2026-07-30 08:44:52"}}
失败返回示例:
{"success":false,"error":"missing_domain","message":"请提供域名参数(domain)"}
| 参数名 | 类型 | 说明 |
|---|---|---|
| data.domain | string | 查询域名 |
| data.shoulu.all | integer | 全部收录数 |
| data.shoulu.hour | integer | 1小时内收录数 |
| data.shoulu.sky | integer | 24小时内收录数 |
| data.shoulu.week | integer | 一周内收录数 |
| data.shoulu.moon | integer | 一月内收录数 |
| data.time | string | 查询时间 |
curl "https://api.souxiaocha.com/apis/gateway?api=bdshoulu?key=SK-你的密钥&domain=douhao.com"
上游业务级错误:
| code | msg | 描述 |
|---|---|---|
| 400 | missing_domain | 缺少domain参数 |
| 401 | invalid_api_key | API密钥无效 |
| 405 | method_not_allowed | 仅支持GET |
| 500 | query_failed | 查询失败 |
平台级错误(errcode):11001 缺少密钥 / 11002 密钥无效或已禁用 / 11005 接口禁用 / 11006 接口维护 / 11010 积分不足 / 11018 请求方式不允许。
失败时请以响应体中的 code / errcode 与 msg 判断。
2026-09-24
curl "https://api.souxiaocha.com/apis/gateway?api=bdshoulu?key=SK-你的密钥&domain=douhao.com"
// 结果将在此处显示