Loading…

Alibaba Cloud Content Detection Service

Table of contents on this page
# Check text security ```javascript WXAPI.riskAliyunGreenCheckText({ token: '000' }) ``` + token current user login credentials + content file content to be detected ```json { "code": 0, "msg": "success", "data": { "headers": { "access-control-allow-origin": "*", "date": "Sun, 03 May 2026 06:13:27 GMT", "content-length": "173", "keep-alive": "timeout=25", "x-acs-request-id": "B116C8B7-AB5A-53BB-B43A-1E572FE5B211", "connection": "keep-alive", "content-type": "application/json;charset=utf-8", "etag": "1YF91Cl2J1HrSec6nDyQa6g1", "access-control-expose-headers": "*", "x-acs-trace-id": "c3cbbab47f219f95daa8cd2b5d4e750f" }, "statusCode": 200, "body": { "code": 200, "data": { "result": [ { "description": "No risk detected", "label": "nonLabel" } ], "riskLevel": "none" }, "message": "OK", "requestId": "B116C8B7-AB5A-53BB-B43A-1E572FE5B211" } } } ``` + statusCode 200 means the request is successful, otherwise there is a problem with the link + code 200 indicates successful detection + riskLevel none means no risk, otherwise there is risk + result If there is a risk, the specific risk description array # Check image security ```javascript WXAPI.riskAliyunGreenCheckPic({ token: '000' }) ``` + token current user login credentials + imageUrl The URL address of the image to be detected ```json { "code": 0, "msg": "success", "data": { "headers": { "access-control-allow-origin": "*", "date": "Sun, 03 May 2026 06:15:38 GMT", "content-length": "271", "keep-alive": "timeout=25", "x-acs-request-id": "41BA99A3-808B-5A1B-9AD4-91AA6AB4246C", "connection": "keep-alive", "content-type": "application/json;charset=utf-8", "etag": "23pQxD/wvg4+aiAn43c+v4g3", "access-control-expose-headers": "*", "x-acs-trace-id": "50a173195dee83948d51da27b44f6c0f" }, "statusCode": 200, "body": { "code": 200, "data": { "dataId": "13fd070c-0e32-41c2-bf5f-9c6f1ce49007", "result": [ { "confidence": 95.99, "description": "Political figure", "label": "political_politicalFigure", "riskLevel": "high" } ], "riskLevel": "high" }, "msg": "success", "requestId": "41BA99A3-808B-5A1B-9AD4-91AA6AB4246C" } } } ``` + statusCode 200 means the request is successful, otherwise there is a problem with the link + code 200 indicates successful detection + riskLevel none means no risk, otherwise there is risk + result If there is a risk, the specific risk description array