Tous les produits
Search
Centre de documentation

ApsaraVideo Media Processing:QueryMediaCensorJobDetail

Dernière mise à jour :Aug 07, 2026

Consulte les détails d'une tâche de modération de contenu.

Description de l'opération

Dans le résultat de la modération de contenu, la section vidéo est triée par points temporels dans l'ordre croissant pour former une chronologie. Si la durée de la vidéo est très longue, la première page de résultats est renvoyée lors de la requête. Pour obtenir les résultats complets de la section vidéo, vous pouvez appeler cette API séparément.

Testez maintenant

Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.

Test

Autorisation RAM

Le tableau ci-dessous décrit les autorisations nécessaires pour appeler cette API. Vous pouvez les définir dans une politique Resource Access Management (RAM). Les colonnes du tableau sont détaillées ci-dessous :

  • Action : les actions peuvent être utilisées dans l'élément Action des instructions de politique de permissions RAM pour accorder les autorisations nécessaires à l'exécution de l'opération.

  • API : l'API que vous pouvez appeler pour exécuter l'action.

  • Niveau d'accès : le niveau d'accès prédéfini accordé pour chaque API. Valeurs valides : create, list, get, update et delete.

  • Type de ressource : le type de ressource qui prend en charge l'autorisation pour exécuter l'action. Il indique si l'action prend en charge les permissions au niveau de la ressource. La ressource spécifiée doit être compatible avec l'action. Sinon, la politique sera inefficace.

    • Pour les API avec permissions au niveau de la ressource, les types de ressource requis sont marqués d'un astérisque (*). Spécifiez l'Alibaba Cloud Resource Name (ARN) correspondant dans l'élément Resource de la politique.

    • Pour les API sans permissions au niveau de la ressource, la valeur All Resources est affichée. Utilisez un astérisque (*) dans l'élément Resource de la politique.

  • Clé de condition : les clés de condition définies par le service. La clé permet un contrôle granulaire, applicable aux actions seules ou aux actions associées à des ressources spécifiques. En plus des clés de condition propres au service, Alibaba Cloud fournit un ensemble de clés de condition communes applicables à tous les services pris en charge par RAM.

  • Action dépendante : les actions dépendantes requises pour exécuter l'action. Pour mener à bien l'opération, l'utilisateur RAM ou le rôle RAM doit disposer des permissions pour toutes les actions dépendantes.

mts:QueryMediaCensorJobDetail

get

*All Resource

*

Aucune Aucune

Paramètres de requête

Paramètre

Type

Requis

Description

Exemple

JobId

string

Oui

L'identifiant de la tâche de modération de contenu. Vous pouvez obtenir l'identifiant de la tâche à partir des paramètres de réponse de l'opération SubmitMediaCensorJob.

2288c6ca184c0e47098a5b665e2a12****

NextPageToken

string

Non

Le jeton de pagination utilisé dans la requête suivante pour récupérer une nouvelle page de résultats. Vous n'avez pas besoin de spécifier ce paramètre pour la première requête. Le jeton de la page suivante est renvoyé après avoir appelé cette opération pour obtenir les résultats d'une tâche de modération de contenu pour la première fois.

ae0fd49c0840e14daf0d66a75b83****

MaximumPageSize

integer

Non

Le nombre maximal d'entrées à renvoyer par page.

  • Valeur par défaut : 30.

  • Valeurs valides : 1 à 300.

30

Éléments de réponse

Élément

Type

Description

Exemple

object

Les paramètres de réponse.

RequestId

string

L'identifiant de la requête.

B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA

MediaCensorJobDetail

object

Les résultats de la tâche de modération de contenu.

CreationTime

string

L'heure à laquelle la tâche a été créée.

2018-09-13T16:32:24Z

FinishTime

string

L'heure à laquelle la tâche s'est terminée.

2018-09-21

Suggestion

string

Le résultat global de la tâche. Valeurs valides :

  • pass : le contenu est validé par la modération.

  • review : le contenu doit être réexaminé manuellement.

  • block : le contenu doit être bloqué.

Si le résultat de la modération d'un type de contenu modéré est review, le résultat global est review. Si le résultat de la modération d'un type de contenu modéré est block, le résultat global est block.

block

CoverImageCensorResults

object

CoverImageCensorResult

array<object>

The moderation results of thumbnails.

array<object>

The response parameters.

Object

string

The Object Storage Service (OSS) object that is used as the video thumbnail.

test/ai/censor/v2/vme-****.jpg

Location

string

The OSS region in which the video thumbnail resides.

oss-cn-shanghai

Bucket

string

The OSS bucket that stores the video thumbnail.

bucket-out-test-****

Results

object

Result

array<object>

The moderation results.

object

The response parameters.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

pass

Label

string

The labels of the moderation result. Multiple labels are separated with commas (,).

  • Valid values in the pornographic content moderation scenario:

    • normal: normal content

    • sexy: sexy content

    • porn: pornographic content

  • Valid values in the terrorist content moderation scenario:

    • narmal: normal content

    • bloody: bloody content

    • explosion: explosion and smoke

    • outfit: special costume

    • logo: special logo

    • weapon: weapon

    • politics: political content

    • violence: violence

    • crowd: crowd

    • parade: parade

    • carcrash: car accident

    • flag: flag

    • location: landmark

    • others: other content

  • Valid values in the ad moderation scenario:

    • normal: normal content

    • ad: other ads

    • politics: political content in text

    • porn: pornographic content in text

    • abuse: abuse in text

    • terrorism: terrorist content in text

    • contraband: prohibited content in text

    • spam: spam in text

    • npx: illegal ads

    • qrcode: QR code

    • programCode: mini program code

  • Valid values in the live moderation scenario:

    • normal: normal content

    • meaningless: meaningless content, such as a black or white screen

    • PIP: picture-in-picture

    • smoking: smoking

    • drivelive: live broadcasting in a running vehicle

  • Valid values in the logo moderation scenario:

    • normal: normal content

    • TV: controlled TV station logo

    • trademark: trademark

normal

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation

  • terrorism: terrorist content moderation

  • ad: ad violation moderation

  • live: undesirable scene moderation

  • logo: logo moderation

porn

Rate

string

The score. Valid values: 0 to 100.

100

State

string

L'état de la tâche. Valeurs valides :

Success

TitleCensorResult

object

Le résultat de la modération du titre.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

block

Label

string

The labels of the moderation result. Valid values:

  • normal: normal content

  • spam: spam

  • ad: ads

  • abuse: abuse

  • flood: excessive junk content

  • contraband: prohibited content

  • meaningless: meaningless content

meaningless

Scene

string

The moderation scenario. Valid values: The value is antispam.

antispam

Rate

string

The score.

99.91

Message

string

Le message d'erreur renvoyé en cas d'échec de la tâche. Ce paramètre n'est pas renvoyé si la tâche réussit.

The resource operated cannot be found

Input

object

Les informations sur l'entrée de la tâche.

Object

string

The name of the OSS object that is used as the input media file.

test/ai/censor/test-****.mp4

Location

string

The OSS region in which the input media file resides.

oss-cn-shanghai

Bucket

string

The name of the OSS bucket in which the input media file is stored.

bucket-test-in-****

BarrageCensorResult

object

Le résultat de la modération des commentaires en direct.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

pass

Label

string

The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:

  • spam: spam

  • ad: ads

  • abuse: abuse

  • flood: excessive junk content

  • contraband: prohibited content

  • meaningless: meaningless content

  • normal: normal content

normal

Scene

string

The moderation scenario. Valid values: The value is antispam.

antispam

Rate

string

The score.

99.91

DescCensorResult

object

Le résultat de la modération de la description.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

review

Label

string

The labels of the moderation result. Valid values:

  • spam: spam

  • ad: ads

  • abuse: abuse

  • flood: excessive junk content

  • contraband: prohibited content

  • meaningless: meaningless content

  • normal: normal content

normal

Scene

string

The moderation scenario. Valid values: The value is antispam.

antispam

Rate

string

The score.

100

VideoCensorConfig

object

Les configurations de modération vidéo.

OutputFile

object

The information about output snapshots.

Object

string

The one or more OSS objects that are generated as the output snapshots.

Remarque

In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named output00001-****.jpg, output00002-****.jpg, and so on.

output{Count}.jpg

Location

string

The region in which the OSS bucket that stores the output snapshot resides.

oss-cn-shanghai

Bucket

string

The OSS bucket that stores the output snapshots.

test-bucket-****

VideoCensor

string

Indicates whether the video content needs to be moderated. Default value: true Valid values:

  • true: The video content needs to be moderated.

  • false: The video content does not need to be moderated.

true

BizType

string

The custom business type. Default value: common.

common

JobId

string

L'identifiant de la tâche de modération de contenu.

f8f166eea7a44e9bb0a4aecf9543****

UserData

string

Les données personnalisées.

example userdata ****

Code

string

Le code d'erreur renvoyé en cas d'échec de la tâche. Ce paramètre n'est pas renvoyé si la tâche réussit.

InvalidParameter.ResourceNotFound

VensorCensorResult

object

Les résultats de la modération de la vidéo.

VideoTimelines

object

VideoTimeline

array<object>

The moderation results that are sorted in ascending order by time.

array<object>

The response parameters.

Timestamp

string

The position in the video. Format: hh:mm:ss[.SSS].

00:02:59.999

Object

string

The one or more OSS objects that are generated as the output snapshots.

Remarque

In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named output00001-****.jpg, output00002-****.jpg, and so on.

output{Count}.jpg

CensorResults

object

CensorResult

array<object>

The moderation results that include information such as labels and scores.

object

The response parameters.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

block

Label

string

The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:

  • Valid values in the pornographic content moderation scenario:

    • porn: pornographic content

    • sexy: sexy content

    • normal: normal content

  • Valid values in the terrorist content moderation scenario:

    • normal: normal content

    • bloody: bloody content

    • explosion: explosion and smoke

    • outfit: special costume

    • logo: special logo

    • weapon: weapon

    • politics: political content

    • violence: violence

    • crowd: crowd

    • parade: parade

    • carcrash: car accident

    • flag: flag

    • location: landmark

    • others: other content

  • Valid values in the ad moderation scenario:

    • normal: normal content

    • ad: other ads

    • politics: political content in text

    • porn: pornographic content in text

    • abuse: abuse in text

    • terrorism: terrorist content in text

    • contraband: prohibited content in text

    • spam: spam in text

    • npx: illegal ads

    • qrcode: QR code

    • programCode: mini program code

  • Valid values in the live moderation scenario:

    • normal: normal content

    • meaningless: meaningless content, such as a black or white screen

    • PIP: picture-in-picture

    • smoking: smoking

    • drivelive: live broadcasting in a running vehicle

  • Valid values in the logo moderation scenario:

    • normal: normal content

    • TV: controlled TV station logo

    • trademark: trademark

porn,ad

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation

  • terrorism: terrorist content moderation

  • ad: ad violation moderation

  • live: undesirable scene moderation

  • logo: logo moderation

porn

Rate

string

The score.

99.99

NextPageToken

string

The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.

ea04afcca7cd4e80b9ece8fbb251****

CensorResults

object

CensorResult

array<object>

A collection of the moderation results. The information includes the summary of various scenarios such as pornographic content and terrorist content.

object

The moderation result of the video.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed again.

  • block: The content needs to be blocked.

review

Label

string

The labels of the moderation result. Multiple labels are separated with commas (,). Valid values:

  • Valid values in the pornographic content moderation scenario:

    • porn: pornographic content

    • sexy: sexy content

    • normal: normal content

  • Valid values in the terrorist content moderation scenario:

    • normal: normal content

    • bloody: bloody content

    • explosion: explosion and smoke

    • outfit: special costume

    • logo: special logo

    • weapon: weapon

    • politics: political content

    • violence: violence

    • crowd: crowd

    • parade: parade

    • carcrash: car accident

    • flag: flag

    • location: landmark

    • others: other content

  • Valid values in the ad moderation scenario:

    • normal: normal content

    • ad: other ads

    • politics: political content in text

    • porn: pornographic content in text

    • abuse: abuse in text

    • terrorism: terrorist content in text

    • contraband: prohibited content in text

    • spam: spam in text

    • npx: illegal ads

    • qrcode: QR code

    • programCode: mini program code

  • Valid values in the live moderation scenario:

    • normal: normal content

    • meaningless: meaningless content, such as a black or white screen

    • PIP: picture-in-picture

    • smoking: smoking

    • drivelive: live broadcasting in a running vehicle

  • Valid values in the logo moderation scenario:

    • normal: normal content

    • TV: controlled TV station logo

    • trademark: trademark

meaningless

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation

  • terrorism: terrorist content moderation

  • ad: ad violation moderation

  • live: undesirable scene moderation

  • logo: logo moderation

terrorism

Rate

string

The score.

100

AudioCensorResult

object

Le résultat de la modération audio.

Suggestion

string

Processing suggestion. Valid values:

  • pass: Pass

  • review: Review

  • block: Block

pass

Label

string

Categorization of the detection result. Valid values:

  • normal: Normal content

  • spam: Spam

  • ad: Advertisement

  • politics: Political content

  • terrorism: Terrorism-related content

  • abuse: Abusive language

  • porn: Pornographic content

  • flood: Flooding (excessive repetitive content)

  • contraband: Contraband-related content

  • meaningless: Meaningless content

  • harmful: Harmful scenario (supports detection scenarios such as materialism and flaunting wealth, celebrity fandom promotion, negative emotions, and negative inducement)

normal

AudioDetailResultList

object

AudioDetailResult

array<object>

Detailed audio review results.

object

Result content.

StartTime

integer

The time when the sentence starts, in seconds.

0

EndTime

integer

The time when the sentence ends, in seconds.

30

Text

string

The result of transforming speech into text.

测试一下

Label

string

The categorization of the detection result. Valid values:

  • normal: Normal text

  • spam: Contains spam

  • ad: Advertisement

  • politics: Politically sensitive content

  • terrorism: Terrorist or violent content

  • abuse: Abusive language

  • porn: Pornographic content

  • flood: Flooding (repetitive or meaningless messages)

  • contraband: Prohibited content

  • meaningless: Meaningless content

  • harmful: Harmful scenario (supports detection scenarios such as materialism and flaunting wealth, celebrity fandom promotion, negative emotions, and negative inducement)

normal

PipelineId

string

L'identifiant de la file d'attente ApsaraVideo Media Processing (MPS) à laquelle la tâche de modération de contenu est soumise.

c5b30b7c0d0e4a0abde1d5f9e751****

Exemples

JSON format

{
  "RequestId": "B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA",
  "MediaCensorJobDetail": {
    "CreationTime": "2018-09-13T16:32:24Z",
    "FinishTime": "2018-09-21",
    "Suggestion": "block",
    "CoverImageCensorResults": {
      "CoverImageCensorResult": [
        {
          "Object": "test/ai/censor/v2/vme-****.jpg",
          "Location": "oss-cn-shanghai",
          "Bucket": "bucket-out-test-****",
          "Results": {
            "Result": [
              {
                "Suggestion": "pass",
                "Label": "normal",
                "Scene": "porn",
                "Rate": "100"
              }
            ]
          }
        }
      ]
    },
    "State": "Success",
    "TitleCensorResult": {
      "Suggestion": "block",
      "Label": "meaningless",
      "Scene": "antispam",
      "Rate": "99.91"
    },
    "Message": "The resource operated cannot be found",
    "Input": {
      "Object": "test/ai/censor/test-****.mp4",
      "Location": "oss-cn-shanghai",
      "Bucket": "bucket-test-in-****"
    },
    "BarrageCensorResult": {
      "Suggestion": "pass",
      "Label": "normal",
      "Scene": "antispam",
      "Rate": "99.91"
    },
    "DescCensorResult": {
      "Suggestion": "review",
      "Label": "normal",
      "Scene": "antispam",
      "Rate": "100"
    },
    "VideoCensorConfig": {
      "OutputFile": {
        "Object": "output{Count}.jpg",
        "Location": "oss-cn-shanghai",
        "Bucket": "test-bucket-****"
      },
      "VideoCensor": "true",
      "BizType": "common"
    },
    "JobId": "f8f166eea7a44e9bb0a4aecf9543****",
    "UserData": "example userdata ****",
    "Code": "InvalidParameter.ResourceNotFound",
    "VensorCensorResult": {
      "VideoTimelines": {
        "VideoTimeline": [
          {
            "Timestamp": "00:02:59.999",
            "Object": "output{Count}.jpg",
            "CensorResults": {
              "CensorResult": [
                {
                  "Suggestion": "block",
                  "Label": "porn,ad",
                  "Scene": "porn",
                  "Rate": "99.99"
                }
              ]
            }
          }
        ]
      },
      "NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
      "CensorResults": {
        "CensorResult": [
          {
            "Suggestion": "review",
            "Label": "meaningless",
            "Scene": "terrorism",
            "Rate": "100"
          }
        ]
      }
    },
    "AudioCensorResult": {
      "Suggestion": "pass",
      "Label": "normal",
      "AudioDetailResultList": {
        "AudioDetailResult": [
          {
            "StartTime": 0,
            "EndTime": 30,
            "Text": "测试一下",
            "Label": "normal"
          }
        ]
      }
    },
    "PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
  }
}

Codes d'erreur

Consultez Codes d'erreur pour la liste complète.

Notes de version

Consultez Notes de version pour la liste complète.