Todos os produtos
Search
Central de documentação

Intelligent Media Services:QueryMediaCensorJobDetail

Última atualização: Jun 29, 2026

Consulta as informações sobre um job de moderação de conteúdo.

Descrição da operação

Nos resultados da moderação de conteúdo, os resultados da moderação do vídeo são classificados em ordem crescente por tempo em uma linha do tempo. Se o vídeo for longo, os resultados da moderação de conteúdo são paginados e a primeira página é retornada. Chame esta operação novamente para consultar os resultados de moderação restantes do vídeo.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

ice:QueryMediaCensorJobDetail

get

*All Resource

*

Nenhuma Nenhuma

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

JobId

string

Sim

O ID do job de moderação de conteúdo. Você pode obter o ID do job a partir dos parâmetros de resposta da operação SubmitMediaCensorJob.

2288c6ca184c0e47098a5b665e2a12****

NextPageToken

string

Não

O token de paginação usado na próxima solicitação para recuperar uma nova página de resultados. Você não precisa especificar este parâmetro para a primeira solicitação. Você deve especificar o token obtido da consulta anterior como o valor de NextToken.

ae0fd49c0840e14daf0d66a75b83****

MaximumPageSize

integer

Não

O número de entradas por página.

  • Valor padrão: 30.

  • Valores válidos: 1 a 300.

30

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

Os parâmetros de resposta.

RequestId

string

O ID da solicitação.

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

MediaCensorJobDetail

object

Os resultados do job de moderação de conteúdo.

CreationTime

string

A hora em que o job de moderação de conteúdo foi criado.

2018-09-13T16:32:24Z

FinishTime

string

A hora em que o job de moderação de conteúdo foi concluído.

2018-09-13T16:38:24Z

Suggestion

string

O resultado geral do job de moderação de conteúdo. Valores válidos:

  • pass: O conteúdo passa na moderação.

  • review: O conteúdo precisa ser revisado manualmente.

  • block: O conteúdo precisa ser bloqueado.

Nota

Se o resultado da moderação de qualquer tipo de conteúdo for review, o resultado geral será review. Se o resultado da moderação de qualquer tipo de conteúdo for block, o resultado geral será block.

block

CoverImageCensorResults

object

CoverImageCensorResult

array<object>

The moderation results of thumbnails.

array<object>

The detailed results.

Object

string

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

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

Location

string

The OSS region in which the thumbnail resides.

oss-cn-shanghai

Bucket

string

The OSS bucket in which the thumbnail is stored.

bucket-out-test-****

Results

object

Result

array<object>

The moderation results.

object

The detailed moderation results.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed.

  • block: The content needs to be blocked.

pass

Label

string

The label of the moderation result.

  • 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:

    • 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 ad.

    • qrcode: QR code.

    • programCode: mini program code.

  • Valid values in the undesirable scene 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 logo.

    • trademark: trademark.

Normal

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation.

  • terrorism: terrorist content moderation.

  • ad: ad moderation.

  • live: undesirable scene moderation.

  • logo: logo moderation.

Antispam

Rate

string

The score. Valid values: 0 to 100.

100

State

string

O estado do job.

Success

TitleCensorResult

object

Os resultados da moderação de títulos.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed.

  • block: The content needs to be blocked.

block

Label

string

The label of the moderation result. Valid values:

  • normal: normal content.

  • spam: spam.

  • ad: ads.

  • abuse: abuse content.

  • flood: excessive junk content.

  • contraband: prohibited content.

  • meaningless: meaningless content.

meaningless

Scene

string

The moderation scenario. The value is antispam.

antispam

Rate

string

The score.

99.91

Message

string

A mensagem de erro retornada se o job falhou. Este parâmetro não é retornado se o job for bem-sucedido.

The resource operated cannot be found

Input

object

As informações sobre a entrada do job.

Object

string

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

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

Location

string

The OSS region in which the input file resides.

oss-cn-shanghai

Bucket

string

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

bucket-test-in-****

BarrageCensorResult

object

Os resultados da moderação de comentários ao vivo.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed.

  • block: The content needs to be blocked.

pass

Label

string

The label of the moderation result. Valid values:

  • normal: normal content.

  • spam: spam.

  • ad: ads.

  • abuse: abuse content.

  • flood: excessive junk content.

  • contraband: prohibited content.

  • meaningless: meaningless content.

normal

Scene

string

The moderation scenario. The value is antispam.

antispam

Rate

string

The score.

99.91

DescCensorResult

object

Os resultados da moderação de descrições.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed.

  • block: The content needs to be blocked.

review

Label

string

The label of the moderation result. Valid values:

  • normal: normal content.

  • spam: spam.

  • ad: ads.

  • abuse: abuse content.

  • flood: excessive junk content.

  • contraband: prohibited content.

  • meaningless: meaningless content.

terrorism

Scene

string

The moderation scenario. The value is antispam.

antispam

Rate

string

The score.

100

VideoCensorConfig

object

As configurações de moderação de vídeo.

OutputFile

object

The information about output snapshots.

Object

string

The OSS object that is generated as the output snapshot.

Nota

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 OSS region in which the output snapshot resides.

oss-cn-shanghai

Bucket

string

The OSS bucket in which the output snapshot is stored.

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

O ID do job de moderação de conteúdo.

f8f166eea7a44e9bb0a4aecf9543****

UserData

string

Os dados definidos pelo usuário.

example userdata ****

Code

string

O código de erro retornado se o job falhou. Este parâmetro não é retornado se o job for bem-sucedido.

InvalidParameter.ResourceNotFound

VensorCensorResult

object

Os resultados da moderação de vídeos.

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 OSS object that is generated as the output snapshot.

Nota

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.

  • block: The content needs to be blocked.

block

Label

string

The label of the moderation result.

  • 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:

    • 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 ad.

    • qrcode: QR code.

    • programCode: mini program code.

  • Valid values in the undesirable scene 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 logo.

    • trademark: trademark.

flood

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation.

  • terrorism: terrorist content moderation.

  • ad: ad moderation.

  • live: undesirable scene moderation.

  • logo: logo moderation.

porn

Rate

string

The score.

99.99

NextPageToken

string

A pagination token. It can be used in the next request to retrieve a new page of results.

ea04afcca7cd4e80b9ece8fbb251****

CensorResults

object

CensorResult

array<object>

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

object

The detailed moderation results.

Suggestion

string

The recommended subsequent operation. Valid values:

  • pass: The content passes the moderation.

  • review: The content needs to be manually reviewed.

  • block: The content needs to be blocked.

review

Label

string

The label of the moderation result.

  • 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:

    • 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 ad.

    • qrcode: QR code.

    • programCode: mini program code.

  • Valid values in the undesirable scene 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 logo.

    • trademark: trademark.

meaningless

Scene

string

The moderation scenario. Valid values:

  • porn: pornographic content moderation.

  • terrorism: terrorist content moderation.

  • ad: ad moderation.

  • live: undesirable scene moderation.

  • logo: logo moderation.

terrorism

Rate

string

The score.

100

PipelineId

string

O ID da fila do ApsaraVideo Media Processing (MPS) para a qual o job foi enviado.

c5b30b7c0d0e4a0abde1d5f9e751****

Exemplos

Resposta de sucesso

JSON formato

{
  "RequestId": "B42299E6-F71F-465F-8FE9-4FC2E3D3C2CA",
  "MediaCensorJobDetail": {
    "CreationTime": "2018-09-13T16:32:24Z",
    "FinishTime": "2018-09-13T16:38:24Z",
    "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": "Antispam",
                "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": "terrorism",
      "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": "flood",
                  "Scene": "porn",
                  "Rate": "99.99"
                }
              ]
            }
          }
        ]
      },
      "NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
      "CensorResults": {
        "CensorResult": [
          {
            "Suggestion": "review",
            "Label": "meaningless",
            "Scene": "terrorism",
            "Rate": "100"
          }
        ]
      }
    },
    "PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
  }
}

Códigos de erro

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.