{
  "openapi": "3.0.0",
  "info": {
    "title": "WeChat Official Accounts Keyword Search API (V1)",
    "version": "1.0.0",
    "description": "Get WeChat Official Accounts keyword Search data, including account names, titles, and publish times, for content discovery."
  },
  "paths": {
    "/api/weixin/search/v1": {
      "get": {
        "tags": [
          "WeChat Official Accounts"
        ],
        "summary": "Keyword Search",
        "description": "Get WeChat Official Accounts keyword Search data, including account names, titles, and publish times, for content discovery.",
        "operationId": "searchV1",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "Access token for the API.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "The search keyword.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Pagination offset (starts with 0, increment by 20).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "searchType",
            "in": "query",
            "description": "Type of search results (accounts, articles, etc.).\n\nAvailable Values:\n- `_0`: All\n- `_1`: WeChat Official Account\n- `_2`: Article\n- `_7`: WeChat Channel\n- `_262208`: Wechat Mini Program\n- `_384`: Emoji\n- `_16777728`: Encyclopedia\n- `_9`: Live\n- `_1024`: Book\n- `_512`: Music\n- `_16384`: News\n- `_8192`: Wechat Index\n- `_8`: Moments",
            "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": "Sorting criteria for search results.\n\nAvailable Values:\n- `_0`: Default\n- `_2`: Latest\n- `_4`: Hot",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Weixin Search Sort Type",
              "enum": [
                "_0",
                "_2",
                "_4"
              ]
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "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": {}
}