公众号/搜一搜

简要描述

  • 搜一搜。

请求URL

  • http://127.0.0.1:8888/api/

请求方式

  • POST

参数

参数名必选类型说明
typeint接口编号
keywordstring搜索关键词
cookiesstringcookie,从前一次调用的返回结果中获取
offsetint指定搜索结果的起始点
businessTypeint搜索类型
  • 因参数过多,按条件搜索可以参考调用示例。

搜索类型

搜索类型枚举值
全部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_codeint错误代码
descriptionstring错误描述
datajson业务数据

备注