{
  "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": {
    "/1524-6": {
      "x-pointCode": 6,
      "x-mode": "mapping",
      "x-read-timeout": 20,
      "x-connect-timeout": 20,
      "post": {
        "summary": "词语或成语解释",
        "description": "万维易源字典查询API接入点词语或成语解释，该API根据词语或成语查询该词语或成语的解释。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "cidian_explain": {
                              "type": "string",
                              "description": "词典对词语或成语的解释"
                            },
                            "ciyu": {
                              "type": "string",
                              "description": "词语或成语"
                            },
                            "allusion_explain": {
                              "type": "string",
                              "description": "成语字典对成语的解释"
                            },
                            "pinyin": {
                              "type": "string",
                              "description": "拼音"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_6_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "ciyu": {
                    "type": "string",
                    "description": "词语或成语"
                  }
                },
                "required": [
                  "ciyu"
                ]
              }
            }
          }
        }
      }
    },
    "/1524-5": {
      "x-pointCode": 5,
      "x-mode": "mapping",
      "x-read-timeout": 60,
      "x-connect-timeout": 60,
      "post": {
        "summary": "汉字详细信息",
        "description": "万维易源字典查询API接入点汉字详细信息，该API根据汉字查询该汉字的详细信息。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "words": {
                              "type": "string",
                              "description": "组词"
                            },
                            "hanzi": {
                              "type": "string",
                              "description": "汉字"
                            },
                            "bushou": {
                              "type": "string",
                              "description": "部首"
                            },
                            "bihua": {
                              "type": "string",
                              "description": "笔画"
                            },
                            "pinyin": {
                              "type": "string",
                              "description": "拼音"
                            },
                            "basic_explain": {
                              "type": "string",
                              "description": "基本解释"
                            },
                            "detail_explain": {
                              "type": "string",
                              "description": "详细解释"
                            },
                            "wubi": {
                              "type": "string",
                              "description": "五笔"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_5_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "hanzi": {
                    "type": "string",
                    "description": "汉字"
                  }
                },
                "required": [
                  "hanzi"
                ]
              }
            }
          }
        }
      }
    },
    "/1524-4": {
      "x-pointCode": 4,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "部首查询汉字列表",
        "description": "万维易源字典查询API接入点部首查询汉字列表，该API根据部首查询该部首下汉字的列表。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "hanzi": {
                              "type": "string",
                              "description": "汉字"
                            },
                            "bushou": {
                              "type": "string",
                              "description": "汉字部首"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_4_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "bushou": {
                    "type": "string",
                    "description": "部首"
                  }
                },
                "required": [
                  "bushou"
                ]
              }
            }
          }
        }
      }
    },
    "/1524-3": {
      "x-pointCode": 3,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "拼音查询汉字列表",
        "description": "万维易源字典查询API接入点拼音查询汉字列表，该API根据拼音查询返回该拼音下汉字的列表。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "hanzi": {
                              "type": "string",
                              "description": "汉字"
                            },
                            "bihua": {
                              "type": "string",
                              "description": "汉字笔画"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_3_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "pinyin": {
                    "type": "string",
                    "description": "拼音"
                  }
                },
                "required": [
                  "pinyin"
                ]
              }
            }
          }
        }
      }
    },
    "/1524-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "部首列表",
        "description": "万维易源字典查询API接入点部首列表，该API用于返回部首列表。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "bushou": {
                              "type": "string",
                              "description": "部首"
                            },
                            "bihua": {
                              "type": "string",
                              "description": "笔画"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_2_POST",
        "parameters": []
      }
    },
    "/1524-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "拼音列表",
        "description": "万维易源字典查询API接入点拼音列表，该API用于返回拼音的列表。",
        "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为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "py_initial": {
                              "type": "string",
                              "description": "拼音首字母"
                            },
                            "pinyin": {
                              "type": "string",
                              "description": "拼音"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1524_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/1524?tab=book"
  },
  "x-apiCode": "1524",
  "x-is-own": true,
  "x-is-op": true
}