The following tables describe API operations available for use in Alibaba Cloud Content Moderation.

Make API requests

This topic applies to users who initiate HTTP or HTTPS POST requests by using request URLs. If you use an SDK or CLI to initiate HTTP or HTTPS POST requests, you can skip this topic.

Each request URL consists of different parameters and has a fixed syntax. Generally, a URL contains common parameters, your signature, and operation-specific parameters. Sample request URLs are provided for each operation. These URLs are not encoded to make them easy to read. Before you make a request, you must encode the request URL. A response is returned to you after the authentication is complete based on your signature. Response parameters are returned if the call is successful, whereas an error message is returned if the call fails. You can troubleshoot issues based on the common error codes and operation-specific error codes.
Note We recommend that you use an SDK to call an operation and manage your resources. If you use an SDK, manual signature verification is not required.

Image moderation

Operation Description
/green/image/scan Submits image moderation tasks to moderate images for illegal or undesirable content and obtains results in real time.
/green/image/asyncscan Submits asynchronous image moderation tasks to moderate images for illegal or undesirable content.
/green/image/results Queries asynchronous image moderation results.
/green/image/feedback Gives feedback on image moderation results.

Image OCR

Operation Description
/green/image/scan Submits OCR tasks to detect text in images and obtains results in real time.
/green/image/asyncscan Submits asynchronous OCR tasks to detect text in images.
/green/image/results Queries asynchronous OCR results.

Video moderation

Operation Description
/green/video/syncscan Submits video moderation tasks to detect illegal or undesirable content in videos and obtains results in real time.
/green/video/asyncscan Submits asynchronous video moderation tasks to detect illegal or undesirable content in videos.
/green/video/results Queries asynchronous video moderation results.
/green/video/feedback Gives feedback on video moderation results.

Text anti-spam

Operation Description
/green/text/scan Submits text moderation tasks to detect illegal content in text.
/green/text/feedback Gives feedback on text moderation results.