{
  "openapi": "3.0.3",
  "info": {
    "title": "中文近义词和反义词",
    "description": "【中文近义词和反义词查询工具】是一款极为便捷的API接口，旨在帮助用户快速找到所需词汇的近义词和反义词。无论您是在写作、学习、交流或是进行学术研究，这款工具都能为您提供准确、可靠的语言信息，让您的表达更加丰富和精准。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/1624-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "反义词",
        "description": "词名：仁慈\n词义[ rén cí ] （形）仁爱慈善。［近］仁爱。［反］残忍|残酷。\n词名：和煦\n词义：[ hé xù ] （形）暖和；温暖。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其余为失败"
                            },
                            "result": {
                              "type": "string",
                              "description": "返回信息"
                            },
                            "remark": {
                              "type": "string",
                              "description": "返回说明"
                            },
                            "wordsDetail": {
                              "type": "string",
                              "description": "词义"
                            },
                            "words": {
                              "type": "string",
                              "description": "词名"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1624_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "keyWords": {
                    "type": "string",
                    "description": "关键词"
                  }
                },
                "required": [
                  "keyWords"
                ]
              }
            }
          }
        }
      }
    },
    "/1624-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "近义词",
        "description": "词名：严酷\n词义：[ yán kù ] （形）①严厉；严格：～的教训。②残酷；冷酷：～的剥削。\n词名：冷酷\n词义：[ lěng kù ] （形）对待别人冷漠残酷：～无情|手段～。［近］冷漠。［反］热情",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其余为失败"
                            },
                            "result": {
                              "type": "string",
                              "description": "返回信息"
                            },
                            "remark": {
                              "type": "string",
                              "description": "返回说明"
                            },
                            "words": {
                              "type": "string",
                              "description": "词名"
                            },
                            "wordsDetail": {
                              "type": "string",
                              "description": "词义"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1624_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "keyWords": {
                    "type": "string",
                    "description": "搜索的关键词"
                  }
                },
                "required": [
                  "keyWords"
                ]
              }
            }
          }
        }
      }
    }
  },
  "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/1624?tab=book"
  },
  "x-apiCode": "1624",
  "x-is-own": true,
  "x-is-op": true
}