通过商品标题质量诊断服务,产出可视化的标题质量分,便于卖家对现有的商品标题质量有实际体感。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetTitleDiagnose |
系统规定参数。取值:GetTitleDiagnose。 |
| Title | String | 是 | Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch |
标题内容 |
| Language | String | 是 | zh |
标题文字的语种,语向支持以及语言代码 |
| Platform | String | 是 | ae |
商品标题所属平台,支持ae/icbu/lazada |
| CategoryId | String | 是 | 123 |
类目id,如没有类目数据则传入0 |
| Extra | String | 是 | { "product_id": "1", "platform": "ae" } |
|
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Code | Integer | 200 |
状态码,正常请求返回200 |
| Message | String | ok |
状态信息 |
| RequestId | String | DC2DCCC9-C3DF-4F59-8D8E-78185729F16D |
请求ID |
| Data | Object |
返回具体内容 |
|
| DuplicateWords | String | hi |
重复单词(包括单复数) |
| ContainCoreClasses | String | true |
是否包含类目主词 |
| WordCount | String | 10 |
总单词数 |
| LanguageQualityScore | String | 2 |
语言质量分 |
| AllUppercaseWords | String | Boy |
全部大写的单词 |
| OverLengthLimit | String | 100 |
长度限制 |
| DisableWords | String | baba |
敏感词 |
| NoFirstUppercaseList | String | no |
首字母未大写单词 |
| TotalScore | String | 3 |
总分数 |
| WordSpelledCorrectError | String | ahk |
拼写错误单词 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetTitleDiagnose
&CategoryId=123
&Extra={ "product_id": "1", "platform": "ae" }
&Language=zh
&Platform=ae
&Title=Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch
&<公共请求参数>
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<RequestId>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</RequestId>
<Message>ok</Message>
<Data>
<NoFirstUppercaseList>no</NoFirstUppercaseList>
<ContainCoreClasses>true</ContainCoreClasses>
<DisableWords>baba</DisableWords>
<WordCount>10</WordCount>
<OverLengthLimit>100</OverLengthLimit>
<TotalScore>3</TotalScore>
<DuplicateWords>hi</DuplicateWords>
<WordSpelledCorrectError>ahk</WordSpelledCorrectError>
<AllUppercaseWords>Boy</AllUppercaseWords>
<LanguageQualityScore>2</LanguageQualityScore>
</Data>
<Code>200</Code>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "DC2DCCC9-C3DF-4F59-8D8E-78185729F16D",
"Message" : "ok",
"Data" : {
"NoFirstUppercaseList" : "no",
"ContainCoreClasses" : "true",
"DisableWords" : "baba",
"WordCount" : "10",
"OverLengthLimit" : "100",
"TotalScore" : "3",
"DuplicateWords" : "hi",
"WordSpelledCorrectError" : "ahk",
"AllUppercaseWords" : "Boy",
"LanguageQualityScore" : "2"
},
"Code" : "200"
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 110 | System.AccountNotActivated | The account has not activated the service. | 账号没有开通服务 |
| 199 | System.unknownError | An unknown error occurred. | 未知错误 |
| 111 | System.SubServiceFailed | Sub-account service failed. | 子账号服务失败 |
| 101 | System.RequestTimeOut | The request has timed out. | 请求超时 |
| 112 | System.TranslateServiceCallFailed | Failed to call the translation service. | 翻译服务调用失败 |
| 102 | System.Error | A system error occurred. | 系统错误 |
| 113 | System.AccountNotActivatedOrInArrears | The service is not activated or the account has an outstanding balance. | 账号服务没有开通或者欠费 |
| 103 | System.UrlDecodingError | An error occurred while decoding the URL. Verify that the specified URL is encoded. | URL编码错误 |
| 104 | System.ParameterError | Some required parameters are missing. | 参数错误 |
| 105 | System.LanguageNotSupported | The specified language pair is not supported. | 该语向不支持 |
| 106 | System.LanguageDetectError | An error occurred while detecting the language. | 语种识别错误 |
| 107 | System.TranslateError | An error occurred while translating. | 翻译错误 |
| 108 | System.StringTooLong | The maximum length of the specified string is exceeded. | 字符过长 |
| 109 | System.subNotPermission | The sub-account is not authorized to perform the operation. | 子账号没有权限 |
访问错误中心查看更多错误码。