{
  "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."
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "prod-global (default)"
    },
    {
      "url": "http://47.117.133.51:30015",
      "description": "prod-cn (optional for Mainland China)"
    }
  ],
  "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": "getApiWeixinSearchV1",
        "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": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "0",
                        "100",
                        "101",
                        "202",
                        "300",
                        "301",
                        "302",
                        "303",
                        "400",
                        "500",
                        "600",
                        "601"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    },
                    "recordTime": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": true,
        "x-order": 20001300,
        "x-api-version": "v1",
        "x-highlights": []
      }
    }
  },
  "components": {}
}