# Generated by ShowAPI OpenAPI generator
# source: market/99
# generated-at: 2026-06-26T06:27:29.671Z
openapi: 3.0.3
info:
  title: 汉字多功能转换器
  description: 汉字转拼音是一款专注于汉字处理的API接口服务，它能够根据用户输入的文本内容，将中文汉字转换为对应的拼音。此外，API还提供简体字与繁体字之间的转换，以及半角字符与全角字符之间的转换功能。同时，API具备地址分词功能，能够对输入的地址文本进行智能分词处理。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /99-117:
    x-pointCode: 117
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 地址分词
      description: |-
        效果示例：
        输入：广东省佛山市顺德区北滘镇碧桂园总部大楼;输出：广东省|佛山市|顺德区|北滘镇|碧桂园|总部|大楼。
        旨在帮助用户对中文地址文本进行智能分词，准确地识别和提取地址中的各个关键信息。无论是物流、地图服务还是数据分析，我们的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: number
                            description: 扣费标识,当为0时,表示调用成功,其他值为失败
                          msg:
                            type: string
                            description: 错误提示信息,当没有错误时,改参数不存在
                          result:
                            type: string
                            description: 返回的结果,当ret_code=0是才有结果返回
                        description: 业务返回体
      operationId: 99_117_POST
      parameters:
        - name: addr
          in: query
          description: 需要分词的地址信息,字符长度必须大于4
          required: true
          schema:
            type: string
  /99-116:
    x-pointCode: 116
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 全角转半角
      description: 旨在帮助用户将全角字符转换为半角字符，以适应不同的文本处理和显示需求。我们的API能够准确、高效地进行转换，使您的文本格式更加规范和统一。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          data:
                            type: string
                            description: 转换后的半角字符
                          flag:
                            type: string
                            description: 操作是否成功
                        description: 业务返回体
      operationId: 99_116_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: 需要转换的全角字符
              required:
                - content
  /99-115:
    x-pointCode: 115
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 半角转全角
      description: 旨在帮助用户将半角字符转换为全角字符，以满足各种文本处理和显示需求。我们的API能够准确、高效地进行转换，使您的文本格式更加规范和美观。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          data:
                            type: string
                            description: 转换后的全角字符
                          flag:
                            type: string
                            description: 操作是否成功
                        description: 业务返回体
      operationId: 99_115_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: 需要转换的字符
              required:
                - content
  /99-114:
    x-pointCode: 114
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 繁体转简体
      description: |-
        效果示例：
        输入：繁體；输出：繁体
        旨在帮助用户将繁体中文文本轻松转换为简体中文文本。无论是处理文档、网页内容还是进行跨地区交流，我们的API都能提供准确、高效的转换服务。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          data:
                            type: string
                            description: 转换后的简体中文字符
                          flag:
                            type: string
                            description: 操作是否成功
                        description: 业务返回体
      operationId: 99_114_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: "需要转换的繁体中文字符串 "
              required:
                - content
  /99-113:
    x-pointCode: 113
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 简体转繁体
      description: |-
        效果示例：
        输入：你好；输出：簡體
        我们的简体转繁体API适用于多种场景，包括跨地区文档处理、古籍数字化、本地化服务等。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          data:
                            type: string
                            description: 转换后的字符串
                          flag:
                            type: string
                            description: 转换是否成功
                        description: 业务返回体
      operationId: 99_113_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: "需要转换的中文字符串 "
              required:
                - content
  /99-38:
    x-pointCode: 38
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 汉字转拼音
      description: |-
        效果示例：
        输入：你好 输出：ni hao
        无论您是教育机构、输入法开发者、本地化服务提供商，还是需要进行文本处理的开发者，我们的API都能满足您的需求。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          data:
                            type: string
                            description: 拼音信息，中间用空格隔开
                          simpleData:
                            type: string
                            description: 简写拼音
                          flag:
                            type: string
                            description: 转换是否成功
                        description: 业务返回体
      operationId: 99_38_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: "需要转换的中文字符串 "
              required:
                - content
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/99?tab=book
x-apiCode: "99"
x-is-own: false
x-is-op: true
