文档

GetDetectLanguage - 语种识别

语种识别API说明文档。

接口说明

1、字符长度限制 5000,调用接口 QPS 限制 50;如有扩展需求,请与我们联系,钉钉群号:23369411

2、请确保在使用该接口前,已充分了解通用版翻译产品的收费方式和价格

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
SourceTextstring

待识别的语种

你好

返回参数

名称类型描述示例值
object
DetectedLanguagestring

识别成功的语种

zh
RequestIdstring

请求 ID

0C5EC1EC-1A06-4D60-97E6-4D41350945E4

示例

正常返回示例

JSON格式

{
  "DetectedLanguage": "zh",
  "RequestId": "0C5EC1EC-1A06-4D60-97E6-4D41350945E4"
}

错误码

HTTP status code错误码错误信息描述
10110001The request has timed out.请求超时
10210002A system error occurred.系统错误
10310003An error occurred while decoding the URL. Verify that the specified URL is encoded.原文解码失败,请检查原文是否UrlEncode
10410004Some required parameters are missing.参数缺失
10510005The specified language pair is not supported.语项不支持
10610006An error occurred while detecting the language.语种识别失败
10710007An error occurred while translating.翻译失败
10810008The specified string is too long.字符长度过长
10910009子账号没有权限-
11010010账号没有开通服务-
11110011子账号服务失败-
11210012翻译服务调用失败-
11310013账号服务没有开通或者欠费-
19919999An unknown error occurred.未知异常
400System.ParameterErrorSome required parameters are missing.参数错误
503System.ErrorA system error occurred.系统错误
503Internal.ErrorThe internal service connection timeout, please try again later.后端服务超时,请稍后重试

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈