All Products
Search
Document Center

ApsaraVideo VOD:GetAIVideoTagResult

Last Updated:Dec 06, 2024

Queries the results of smart tagging jobs.

Operation description

  • Regions that support this operation: China (Beijing), China (Shanghai), and Singapore.
  • You can obtain the smart tagging results by using the video ID.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:GetAIVideoTagResultget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
MediaIdstringYes

The ID of the media file. You can use one of the following methods to obtain the ID:

  • Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Media Files > Audio/Video. On the Video and Audio page, view the ID of the audio or video file. This method is applicable to files that are uploaded by using the ApsaraVideo VOD console.
  • Obtain the value of VideoId from the response to the CreateUploadVideo operation that you call to upload media files.
  • Obtain the value of VideoId from the response to the SearchMedia operation after you upload media files.
595d020bad37421f37433451720****

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

8829B4DB-AFD9-4FF6-12965DBFFA14****
VideoTagResultobject

The returned result.

Categoryarray<object>

The video categories.

Categoryobject

The category of the video.

Tagstring

The tag string.

Retouching
Personarray<object>

The figure tags.

Personobject

The figure tag of the video.

FaceUrlstring

The URL of the profile photo.

Note This parameter is returned only when a figure tag was used.
http://example.com/aivideotag/8829B4DB-AFD9-4F*****F6-12965DBFFA14/Index_****.jpg
Tagstring

The tag string.

John
Timesarray

The points in time when the tags are displayed. Unit: milliseconds.

Timesstring

The point in time when the figure tag is displayed. Unit: milliseconds.

["10760"]
Timearray<object>

The time tags.

Timeobject

The time tag of the video.

Tagstring

The tag string.

Milliseconds
Timesarray

The points in time when the tags are displayed. Unit: milliseconds.

Timesstring

The point in time when the time tag is displayed. Unit: milliseconds.

["3260","4000","5000","8410","12000","13000","14000"]
Locationarray<object>

The location tags.

Locationobject

The location tag of the video.

Tagstring

The tag string.

Asia
Timesarray

The points in time when the tags are displayed. Unit: milliseconds.

Timesstring

The point in time when the location tag is displayed. Unit: milliseconds.

["8410"]
Keywordarray<object>

The keyword tags.

Keywordobject

The keyword tag of the video.

Tagstring

The tag string.

Cushion
Timesarray

The points in time when the tags are displayed. Unit: milliseconds.

Timesstring

The point in time when the keyword tag is displayed. Unit: milliseconds.

["3260","4000","5000","8410","12000","13000","14000"]

Examples

Sample success responses

JSONformat

{
  "RequestId": "8829B4DB-AFD9-4FF6-12965DBFFA14****",
  "VideoTagResult": {
    "Category": [
      {
        "Tag": "Retouching\n"
      }
    ],
    "Person": [
      {
        "FaceUrl": "http://example.com/aivideotag/8829B4DB-AFD9-4F*****F6-12965DBFFA14/Index_****.jpg",
        "Tag": "John\n",
        "Times": [
          "[\"10760\"]"
        ]
      }
    ],
    "Time": [
      {
        "Tag": "Milliseconds\n",
        "Times": [
          "[\"3260\",\"4000\",\"5000\",\"8410\",\"12000\",\"13000\",\"14000\"]"
        ]
      }
    ],
    "Location": [
      {
        "Tag": "Asia\n",
        "Times": [
          "[\"8410\"]"
        ]
      }
    ],
    "Keyword": [
      {
        "Tag": "Cushion\n",
        "Times": [
          "[\"3260\",\"4000\",\"5000\",\"8410\",\"12000\",\"13000\",\"14000\"]"
        ]
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.