menu 云析API铺 - 云析文档平台 公告 打赏
child_care
医药百科
keyboard_arrow_down
star_border

敏感词检测

使用教程


请求地址 https://api.a20safe.com/api.php?api=5&key=你的KEY&text=待检测文本

返回示例 {"code":0,"msg":"success","data":[{"text1":"***吧你","words":"傻逼"}]}

Example

返回参数

返回参数类型说明
code Int 状态码
msg String 返回说明
data[0].text1 String 过滤后的文本
data[0].words String 检测出的敏感词

						<br><br>
<table class="mdui-table"><thead><tr>
<th>返回参数</th><th>类型</th><th>说明</th></tr></thead><tbody>
<tr><td><code>code</code></td>
<td>Int</td>
<td>状态码</tr>
<tr><td><code>msg</code></td>
<td>String</td>
<td>返回说明</tr>
<tr><td><code>data[0].text1</code></td>
<td>String</td>
<td>过滤后的文本</tr>
<tr><td><code>data[0].words</code></td>
<td>String</td>
<td>检测出的敏感词</tr>
</tbody></table>
					

请求参数

请求参数必填类型说明
api String 接口id
key String 你的key
text String 待检测内容