# Generated by ShowAPI OpenAPI generator # source: market/32 # generated-at: 2026-09-20T08:45:47.024Z openapi: 3.0.3 info: title: 机器翻译 description: 提供200余种语言的互译服务,支持中英互译,实时联网翻译,广泛应用于旅游、学习等领域,覆盖4万余个语言方向。 termsOfService: https://www.showapi.com/helpcenter/view#/4019/2 version: 1.0.0 servers: - url: https://route.showapi.com paths: /32-10: x-pointCode: 10 x-mode: mapping x-read-timeout: 15 x-connect-timeout: 15 post: summary: 文本翻译 description: 文本翻译服务可将指定语言下的文字内容从一种语言转换为另一种语言,适用于网站本地化、文档翻译等场景,有助于促进全球沟通。 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为成功,其余为失败 translation: type: array items: type: string description: 翻译结果 basic: type: object properties: tags: type: array items: type: string description: 词汇标签 ukPh: type: string description: 英式音标 tense: type: array items: type: object properties: name: type: string description: 时态名称:过去式、过去分词、进行式、第三人称单数、复数、完成式 value: type: string description: 时态单词 description: 时态 usPh: type: string description: 美式音标 explains: type: array items: type: string description: 基本释义 ph: type: string description: 基本音标,默认英式音标 description: 词义 query: type: string description: 原文 fee_num: type: number description: 计费标识:1为计费1次,2为计费2次,……,n为计费n次 description: 业务返回体 operationId: 32_10_POST parameters: [] requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: q: type: string description: 待翻译文本(必须是UTF-8编码),可以为中文、英文、日文、韩文等。入参不超过100个字符,对于每超过100个字符的,增加一次扣费 from: type: string description: |- 详细请查看帮助文档-语种列表 注意:尽量不要使用auto to: type: string description: |- 详细请查看帮助文档-语种列表 注意:尽量不要使用auto required: - q 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/32?tab=book x-apiCode: "32" x-is-own: false x-is-op: false