Queries media assets based on character names, subtitles, or AI categories.
Operation description
You can call this operation to query media assets or media asset clips based on character names, subtitles, or AI categories.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ice:SearchMediaByAILabel | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SearchLibName | string | No | The name of the search library. | test-1 |
MediaType | string | No | The type of the media assets. Valid values:
| video |
SortBy | string | No | The sorting method of the results. Valid values:
| CreationTime:Desc |
PageNo | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 50. | 20 |
Text | string | No | The content that you want to query. | |
MultimodalSearchType | string | No | The type of query. Valid values:
| Ocr |
SpecificSearch | boolean | No | Specifies whether to query media asset clips. Valid values:
| true |
MediaId | string | No | The ID of the media asset. This parameter is required if you want to query media asset clips. | ****c469e944b5a856828dc2**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"Success": "true",
"Code": "200",
"MediaList": [
{
"AiData": {
"AiLabelInfo": [
{
"FaceId": "5FE19530C7A422197535FE74F5DB****\n",
"LabelType": "",
"Source": "vision",
"Category": "",
"LabelName": "",
"LabelId": "103102503**",
"Occurrences": [
{
"Score": 0.75287705,
"Image": "https://service-****-public.oss-cn-hangzhou.aliyuncs.com/1563457****438522/service-image/f788974f-9595-43b2-a478-7c7a1afb****.jpg",
"TableBatchSeqId": "85010D1**",
"ClipId": "158730355E4B82257D8AA1583A58****",
"From": 1.4,
"To": 2.5,
"FinegrainName": "",
"FinegrainId": "103102503**",
"Content": "",
"Tracks": [
{
"Size": 50,
"Position": "468.0;67.0;615.0;267.0",
"Timestamp": 1.4
}
]
}
]
}
],
"AsrInfo": [
{
"From": 1.4,
"To": 2.5,
"ClipId": "5FE19530C7A422197535FE74F5DB****",
"Content": "",
"Timestamp": 1.4
}
],
"OcrInfo": [
{
"From": 1.4,
"To": 2.5,
"ClipId": "5FE19530C7A422197535FE74F5DB****\n",
"Content": "",
"Timestamp": 1.4
}
]
},
"StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com\n",
"Status": "Normal",
"CreationTime": "2017-11-14T09:15:50Z\n",
"ModificationTime": "2017-11-14T09:15:50Z\n",
"MediaId": "1c6ce34007d571ed94667630a6bc****\n",
"Tags": "",
"Description": "",
"AppId": "app-1000000",
"Size": 10897890,
"CoverUrl": "http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****",
"Duration": 12.2,
"Title": "",
"Snapshots": [
"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****"
]
}
],
"Total": 30
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-10-12 | The request parameters of the API has changed | View Change Details |