{
  "openapi": "3.0.0",
  "info": {
    "title": "微信公众号关键词搜索 API (V1)",
    "version": "1.0.0",
    "description": "获取微信公众号关键词搜索数据，包括账号名称、标题和发布时间，用于内容发现。"
  },
  "paths": {
    "/api/weixin/search/v1": {
      "get": {
        "tags": [
          "微信公众号"
        ],
        "summary": "关键词搜索",
        "description": "获取微信公众号关键词搜索数据，包括账号名称、标题和发布时间，用于内容发现。",
        "operationId": "searchV1",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "API 的访问令牌。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "搜索关键词。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "分页偏移量（从0开始，每次增加20）。",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "searchType",
            "in": "query",
            "description": "搜索结果类型（公众号、文章等）。\n\n可用值：\n- `_0`: 全部\n- `_1`: 微信公众号\n- `_2`: 文章\n- `_7`: 微信视频号\n- `_262208`: 微信小程序\n- `_384`: 表情\n- `_16777728`: 百科\n- `_9`: 直播\n- `_1024`: 图书\n- `_512`: 音乐\n- `_16384`: 新闻\n- `_8192`: 微信指数\n- `_8`: 朋友圈",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Weixin Search Type",
              "enum": [
                "_0",
                "_1",
                "_2",
                "_7",
                "_262208",
                "_384",
                "_16777728",
                "_9",
                "_1024",
                "_512",
                "_16384",
                "_8192",
                "_8"
              ]
            }
          },
          {
            "name": "sortType",
            "in": "query",
            "description": "搜索结果排序标准。\n\n可用值：\n- `_0`: 默认\n- `_2`: 最新\n- `_4`: 热门",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Weixin Search Sort Type",
              "enum": [
                "_0",
                "_2",
                "_4"
              ]
            }
          }
        ],
        "responses": {
          "default": {
            "description": "默认响应",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "data": {
                    "boxID": "0x800-0-0",
                    "boxPos": 28,
                    "boxPosMerge": 7,
                    "count": 6,
                    "items": [
                      {
                        "docID": "附近3公里吃的美食",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E9%99%84%E8%BF%913%E5%85%AC%E9%87%8C%E5%90%83%E7%9A%84%E7%BE%8E%E9%A3%9F:hint:609944",
                        "word": "附近3公里吃的美食"
                      },
                      {
                        "docID": "苗嫂现状",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E8%8B%97%E5%AB%82%E7%8E%B0%E7%8A%B6:hint:775244",
                        "word": "苗嫂现状"
                      },
                      {
                        "docID": "深夜放毒美食诱惑",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E6%B7%B1%E5%A4%9C%E6%94%BE%E6%AF%92%E7%BE%8E%E9%A3%9F%E8%AF%B1%E6%83%91:hint:370654",
                        "word": "深夜放毒美食诱惑"
                      },
                      {
                        "docID": "舌尖上的美食",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E8%88%8C%E5%B0%96%E4%B8%8A%E7%9A%84%E7%BE%8E%E9%A3%9F:hint:529193",
                        "word": "舌尖上的美食"
                      },
                      {
                        "docID": "附近5公里的美食",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E9%99%84%E8%BF%915%E5%85%AC%E9%87%8C%E7%9A%84%E7%BE%8E%E9%A3%9F:hint:574669",
                        "word": "附近5公里的美食"
                      },
                      {
                        "docID": "好吃美食大全",
                        "jumpType": 15,
                        "parentType": 20,
                        "reportId": "%E5%A5%BD%E5%90%83%E7%BE%8E%E9%A3%9F%E5%A4%A7%E5%85%A8:hint:666575",
                        "word": "好吃美食大全"
                      }
                    ],
                    "mixerCommonContext": "{\"mixerrank_list\":[],\"feedrank_list\":[],\"commentrank_list\":[]}",
                    "real_type": 2048,
                    "resultType": 0,
                    "subType": 0,
                    "title": "相关搜索",
                    "type": 24
                  }
                }
              }
            }
          }
        },
        "x-order": 20001300
      }
    }
  },
  "components": {}
}