The following tables list API operations available for use in Content Moderation.

Overview

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

Each request URL consists of different parameters and has fixed syntax. Generally, a request URL contains common parameters, your signature, and operation-specific parameters. A sample request URL is provided for each API operation. For ease of reading, these sample URLs are not encoded. Before you initiate a request, you must encode the request URL. A response is returned to you after authentication is complete based on your signature. Response parameters are displayed if the call succeeds, and an error message appears if the call fails. You can troubleshoot issues based on 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 authentication is not required.

Content Moderation (machine moderation)

ServiceOperationDescription
Image moderation/green/image/scanSubmits image moderation tasks to moderate images for violated or undesirable content and obtains results in real time.
/green/image/asyncscanSubmits asynchronous image moderation tasks to moderate images for violated or undesirable content.
/green/image/resultsQueries asynchronous image moderation results.
/green/image/feedbackGives feedback on image moderation results.
Video moderation/green/video/syncscanSubmits video moderation tasks and obtains results in real time. This operation applies to the following video moderation scenarios: pornography detection, terrorist content detection, ad violation detection, undesirable scene detection, and logo detection.
/green/video/asyncscanSubmits asynchronous video moderation tasks. This operation applies to the following video moderation scenarios: pornography detection, terrorist content detection, ad violation detection, undesirable scene detection, and logo detection.
/green/video/feedbackQueries asynchronous video moderation results.
/green/video/cancelscanStops moderating video streams.
/green/video/feedbackGives feedback on video moderation results.
Text moderation/green/text/scanSubmits text moderation tasks and obtains results in real time. You can call this operation to detect undesirable content in text, such as pornographic content, ads, spam, political content, and abuse.
/green/text/feedbackGives feedback on text moderation results.

Image OCR moderation

ServiceOperationDescription
General image optical character recognition (OCR)/green/image/scanSubmits OCR tasks to detect text in images and obtains results in real time.
/green/image/asyncscanSubmits asynchronous OCR tasks to detect text in images.
/green/image/resultsQueries asynchronous OCR results.