请求HEADER
名称 | 值 |
---|---|
Content-Type | application/x-www-form-urlencoded;charset:utf-8; |
请求参数说明
名称 | 要求 | 类型 | 示例值 | 说明 |
---|---|---|---|---|
secret | 必填 | string | Ptjw1Du3l0t3JM10oD5I6fGOMV | 您的密钥,在密钥管理中查看 |
content_text | 必填 | string | 张译狂飙热播后首次露面 网友:有些害羞,像个大男孩 | 待分析文本字符串 |
响应HEADER
名称 | 值 | 说明 |
---|---|---|
X-Rate-Limit-Limit | 5 | 当前接口请求频率限额 |
X-Rate-Limit-Remaining | 2 | 一段时间内剩余允许请求数,该值为0表明达到当前接口最大请求频率/次数限制,应适当降低请求频率 |
X-Rate-Limit-Global | 1 | 该值为1表明触犯全局请求频率/次数限制,应适当降低请求频率 |
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
code | number | 返回码,具体含义请参考错误码参照 |
msg | string | 返回说明 |
data | json | 返回结果集 |
rid | string | 请求ID |
JSON结果集返回示例
{"text":"张译狂飙热播后首次露面 网友:有些害羞,像个大男孩","items":[{"uri":"","formal":"","ne":"PER","item":"张译","loc_details":[],"basic_words":["张译"],"byte_offset":0,"byte_length":4,"pos":""},{"uri":"","formal":"","ne":"","item":"狂飙","loc_details":[],"basic_words":["狂飙"],"byte_offset":4,"byte_length":4,"pos":"v"},{"uri":"","formal":"","ne":"","item":"热播","loc_details":[],"basic_words":["热播"],"byte_offset":8,"byte_length":4,"pos":"v"},{"uri":"","formal":"","ne":"","item":"后","loc_details":[],"basic_words":["后"],"byte_offset":12,"byte_length":2,"pos":"f"},{"uri":"","formal":"","ne":"","item":"首次","loc_details":[],"basic_words":["首次"],"byte_offset":14,"byte_length":4,"pos":"m"},{"uri":"","formal":"","ne":"","item":"露面","loc_details":[],"basic_words":["露面"],"byte_offset":18,"byte_length":4,"pos":"v"},{"uri":"","formal":"","ne":"","item":" ","loc_details":[],"basic_words":[" "],"byte_offset":22,"byte_length":1,"pos":"w"},{"uri":"","formal":"","ne":"","item":"网友","loc_details":[],"basic_words":["网友"],"byte_offset":23,"byte_length":4,"pos":"n"},{"uri":"","formal":"","ne":"","item":":","loc_details":[],"basic_words":[":"],"byte_offset":27,"byte_length":1,"pos":"w"},{"uri":"","formal":"","ne":"","item":"有些","loc_details":[],"basic_words":["有","些"],"byte_offset":28,"byte_length":4,"pos":"d"},{"uri":"","formal":"","ne":"","item":"害羞","loc_details":[],"basic_words":["害羞"],"byte_offset":32,"byte_length":4,"pos":"a"},{"uri":"","formal":"","ne":"","item":",","loc_details":[],"basic_words":[","],"byte_offset":36,"byte_length":1,"pos":"w"},{"uri":"","formal":"","ne":"","item":"像","loc_details":[],"basic_words":["像"],"byte_offset":37,"byte_length":2,"pos":"v"},{"uri":"","formal":"","ne":"","item":"个","loc_details":[],"basic_words":["个"],"byte_offset":39,"byte_length":2,"pos":"q"},{"uri":"","formal":"","ne":"","item":"大男孩","loc_details":[],"basic_words":["大","男孩"],"byte_offset":41,"byte_length":6,"pos":"n"}],"log_id":1630566393523874012}
系统级错误码参照
错误码 | 说明 |
---|---|
500 | 缺少参数密钥KEY |
501 | 密钥KEY错误或已失效 |
502 | 密钥KEY已禁用,平台黑名单 |
503 | IP地址不被平台允许 |
504 | 接口不存在或已下线 |
505 | 接口维护中,请稍后访问 |
506 | 接口不支持该方式请求 |
507 | 接口不支持GET方式请求 |
508 | 接口不支持POST方式请求 |
509 | 服务端执行错误 |
510 | 服务端数据解析错误 |
服务级错误码参照
错误码 | 说明 |
---|---|
400 | 密钥KEY错误或已失效 |
401 | 密钥KEY已禁用 |
402 | IP地址不被用户允许 |
403 | 账号余额不足,请及时充值 |
404 | 超过当前接口每日调用限制 |
405 | 超过当前接口每秒调用限制 |
406 | 请求参数错误 |
407 | 请求失败,后端错误 |
错误码格式说明
5xx | 4xx | xx |
---|---|---|
系统级错误 | 服务级错误 | 具体错误代码 |