QueryVideoAuditResult

Updated at:

Queries video audit results.

Operation description

Queries video audit results by task ID. The response includes video information, shot information, and audit results.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.
    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.
  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

aimiaobi:QueryVideoAuditResult

get

*All Resource

*

NoneNone

Request syntax

POST /quanmiao/aimiaobi/pop/videoAudit/queryVideoAuditResult HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

Workspace ID

llm-xxxxx

TaskId

string

Yes

Task ID

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Response elements

Element

Type

Description

Example

object

Query result response

RequestId

string

Request ID

1813ceee-7fe5-41b4-87e5-982a4d18cca5

HttpStatusCode

integer

HTTP status code

200

Code

string

Business status code

success

Message

string

Return message

查询成功

Success

boolean

Is successful

true

Data

object

Video audit result data

Status

string

Task status (PENDING: Queued, RUNNING: In progress, SUCCESSED: Successful, FAILED: Failed, CANCELED: Task canceled)

SUCCESSED

ErrorMessage

string

Error message

错误信息

Text

string

Reviewed text

视频审核完成

VideoUrl

string

Video URL

https://example.com/video.mp4

VideoFileKey

string

Video FileKey

video/test.mp4

Duration

number

Video duration

120.5

Width

integer

Video width

1920

Height

integer

Video height

1080

Fps

number

Video frame rate

30.0

TotalFrames

integer

Total frames

3615

TotalShots

integer

Total shots

15

TotalFrameAudit

integer

Frames to audit

120

FrameAudited

integer

Frames audited

120

ImageUrls

array<object>

Image URL list

object

Url

string

Image URL

https://example.com/image1.jpg

Id

string

Image ID (Associate with Results[].DataId to get audit result information)

img001

Timestamp

number

Timestamp (milliseconds)

1000

Results

array<object>

Audit results list

array<object>

ReqId

string

Request ID

B5D1CF9E-0404-51E3-A28E-A5C7D95B6C71

DataId

string

Image ID (Associate with ImageUrls[].Id to get image information)

d411ed15e8fc154fd0ef5addabfee04b

RiskLevel

string

Risk level

  • high: High risk

  • medium: Medium risk

  • low: Low risk

  • none: No risk

none

Result

array<object>

Detection results

object

Label

string

Risk label

The label of the image content review result. For example: nonLabel (no risk detected).

The label can also be a risk level that is determined by the high-risk and low-risk thresholds that you set. Valid return values are: ● high: high risk ● medium: medium risk ● low: low risk ● none: no risk detected

nonLabel

Confidence

number

From 0 to 100, retained to 2 decimal places. Some labels do not have a confidence score.

99.5

Description

string

Explanation of the Label field

未检测出风险

Examples

Success response

JSON format

{
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "HttpStatusCode": 200,
  "Code": "success",
  "Message": "查询成功",
  "Success": true,
  "Data": {
    "Status": "SUCCESSED",
    "ErrorMessage": "错误信息",
    "Text": "视频审核完成",
    "VideoUrl": "https://example.com/video.mp4",
    "VideoFileKey": "video/test.mp4",
    "Duration": 120.5,
    "Width": 1920,
    "Height": 1080,
    "Fps": 30,
    "TotalFrames": 3615,
    "TotalShots": 15,
    "TotalFrameAudit": 120,
    "FrameAudited": 120,
    "ImageUrls": [
      {
        "Url": "https://example.com/image1.jpg",
        "Id": "img001",
        "Timestamp": 1000
      }
    ],
    "Results": [
      {
        "ReqId": "B5D1CF9E-0404-51E3-A28E-A5C7D95B6C71",
        "DataId": "d411ed15e8fc154fd0ef5addabfee04b",
        "RiskLevel": "none",
        "Result": [
          {
            "Label": "nonLabel",
            "Confidence": 99.5,
            "Description": "未检测出风险"
          }
        ]
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.