{
  "openapi": "3.0.3",
  "info": {
    "title": "网络搜索热词排行",
    "description": "每天实时更新两次，为您提供最热门的搜索词汇。基于几大搜索引擎的综合数据分析，为您揭示网络上的热点话题和趋势。轻松查询各个分类下的热门搜索词汇，洞察用户需求和兴趣。随时掌握网络热点，让您的内容更具吸引力！",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/313-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 10,
      "x-connect-timeout": 5,
      "post": {
        "summary": "网络热搜词排行",
        "description": "根据分类查询网络最热的搜索词汇条目。数据源自几大搜索引擎的综合分析。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "list": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "level": {
                                    "type": "string",
                                    "description": "热搜级别分数，分高则排名高"
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "热搜词"
                                  },
                                  "num": {
                                    "type": "string",
                                    "description": "排名"
                                  },
                                  "trend": {
                                    "type": "string",
                                    "description": "趋势 up为升  down为降低   same为持平"
                                  }
                                }
                              },
                              "description": "热搜词列表"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其他失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "313_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "tab": {
                    "type": "string",
                    "description": "主分类字符串（英文参数）例如:star\n可调用【网络热搜词分类查询】看主分类参考tab字段"
                  },
                  "category": {
                    "type": "string",
                    "description": "子分类中的类别（汉字参数），例如game中的单机游戏"
                  },
                  "country": {
                    "type": "string",
                    "description": "按地区分类（汉字参数），并不是所有分类都能按地区分类，可调用【网络热搜词分类查询】看分类中是否有country列表"
                  }
                },
                "required": [
                  "tab"
                ]
              }
            }
          }
        }
      }
    },
    "/313-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "网络搜索热词分类查询",
        "description": "主分类字符串tab查询",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "category": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "子类别（不是所有热搜都有）"
                                  },
                                  "tab": {
                                    "type": "string",
                                    "description": "热搜词主分类"
                                  }
                                }
                              },
                              "description": "分类列表"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "查询成功"
                            },
                            "showapi_fee_code": {
                              "type": "number"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "313_1_POST",
        "parameters": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/313?tab=book"
  },
  "x-apiCode": "313",
  "x-is-own": false,
  "x-is-op": true
}