查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"title": "FetchSearchRequest",
"required": [
"keyword"
],
"properties": {
"raw": {
"type": "boolean",
"title": "Raw",
"default": true,
"description": "True 返回原始搜索响应;False 返回精简后的解析结果。"
},
"sort": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Sort",
"default": "default",
"example": "hot",
"description": "各类内容通用的排序方式:default 或 0 为相关性,latest 或 1 为最新发布优先,hot 或 2 为点赞最多优先;支持字符串键或整数。"
},
"cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cursor",
"description": "分页游标;首页留空,翻页时原样传回上一页响应中的 cursor。"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0,
"description": "首页传 0;翻页需使用 cursor,仅传 offset 会反复返回首页。"
},
"keyword": {
"type": "string",
"title": "Keyword",
"example": "人民日报",
"maxLength": 100,
"minLength": 1,
"description": "搜索关键词,长度为 1–100 个字符。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Publish Time",
"default": "all",
"example": "week",
"description": "发布时间:all 或 0 为不限,day 或 1 为最近一天,week 或 2 为最近七天,half_year 或 3 为最近半年;支持字符串键或整数。"
},
"business_type": {
"enum": [
"all",
"account",
"article",
"video",
"sticker",
"underline",
"encyclopedia",
"live_stream",
"comment",
"listen",
"news",
"photos",
"book",
"moments",
"image",
"mini_game",
"weixin_index",
"ai_search"
],
"type": "string",
"title": "Business Type",
"default": "all",
"example": "account",
"description": "内容类型共 18 个键。来源文档记录可返回结果的类型为 all(综合)、account(公众号、服务号、视频号)、article(文章)、video(视频)、sticker(表情)。其余 underline、encyclopedia、live_stream、comment、listen、news、photos、book、moments、image、mini_game、weixin_index、ai_search 受账号和地区限制;来源测试返回 count=0 和 no_more 提示,仍按正常调用计费。当前账号可用类型以 all 搜索响应中的 categories 为准;列表外的值会返回 422。"
}
},
"x-readme-ref-name": "FetchSearchRequest"
},
"queryParams": {
"type": "object",
"properties": {},
"additionalProperties": true
}
},
"additionalProperties": false
}