公众号/搜一搜
简要描述
请求URL
http://127.0.0.1:8888/api/
请求方式
参数
参数名 | 必选 | 类型 | 说明 |
---|
type | 是 | int | 接口编号 |
keyword | 是 | string | 搜索关键词 |
cookies | 否 | string | cookie,从前一次调用的返回结果中获取 |
offset | 否 | int | 指定搜索结果的起始点 |
businessType | 否 | int | 搜索类型 |
搜索类型
搜索类型 | 枚举值 |
---|
全部 | 0 |
公众号 | 1 |
文章 | 2 |
视频号 | 7 |
朋友圈 | 8 |
表情包 | 384 |
新闻 | 16384 |
小程序 | 262208 |
百科 | 16777728 |
请求示例
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 1,
"h5AuthKey": "xxxxx",
}
全部(按条件)
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 1,
"h5AuthKey": "xxxxx",
// 综合排序,最新,最热
"homePageSortType": "综合排序",
// 不限,文章,视频
"homePageSearchType": "文章",
// 不限,最近一天,最近七天,最近半年
"homePagePublishTime": "最近七天",
// 不限,已关注,最近看过,朋友赞过
"homePageSearchScope": "已关注",
}
其他选项可以参考搜一搜界面中的选项。
视频号(按条件)
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 7,
"h5AuthKey": "xxxxx",
// 不限,账号,最新,朋友赞过,最近看过
"finderPageSearchType": "账号",
}
文章(按条件)
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 2,
"h5AuthKey": "xxxxx",
// 不限,最新,最热,已关注,最近读过
"articlePageSearchType": "最近读过",
}
读书(按条件)
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 1024,
"h5AuthKey": "xxxxx",
// 电子书,热门书摘,全文
"bookPageSearchType": "热门书摘",
}
朋友圈(按条件)
{
"type": 10040,
"keyword": "马斯克星链计划",
"offset": 0,
"businessType": 8,
"h5AuthKey": "xxxxx",
// 搜索开始时间戳,可选参数,必须和snsPageSearchEndTime一起提供
"snsPageSearchStartTime": 1718642604,
// 搜索截止时间戳,可选参数,必须和snsPageSearchStartTime一起提供
"snsPageSearchEndTime": 1698642604,
// 搜索类型,可选参数
"snsPageSearchType": "链接/文章",
// 用于搜索指定用户,可选参数
"snsPageMatchUserName": "wxid_xxxx",
// 如果提供了snsPageMatchUserName,可以提供该参数
"szSnsPageMatchWord": "某人的昵称或备注",
}
返回示例
{
"data": {
"status": 0,
"desc": "",
"data": "json串"
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|
error_code | int | 错误代码 |
description | string | 错误描述 |
data | json | 业务数据 |
备注