Queries a list of media assets in the public media library that meet the specified conditions. A maximum of 100 media assets can be returned.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MediaTagId | string | No | The media tag. All media assets that contain the specified media tag are returned. Valid values:
| ticker-atmosphere |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | pSa1SQ0wCe5pzVrQ6mWZEw== |
MaxResults | integer | No | The maximum number of entries to return. Maximum value: 100. Default value: 10. | 5 |
PageNo | integer | No | The page number. Default value: 1 | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
IncludeFileBasicInfo | boolean | No | Specifies whether to return the basic information of the media asset. | true |
BusinessType | string | No | The business type of the media asset. Valid values:
| sticker |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "******B7-7F87-4792-BFE9-63CD21******",
"TotalCount": 2,
"MediaInfos": [
{
"MediaId": "****019b82e24b37a1c2958dec38****",
"MediaBasicInfo": {
"MediaId": "****019b82e24b37a1c2958dec38****",
"InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "",
"Description": "description",
"Category": "video",
"MediaTags": "sticker-daily",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=<ExpireTime>&OSSAccessKeyId=<OSSAccessKeyId>&Signature=<Signature>&security-token=<SecurityToken>",
"UserData": "userData",
"Snapshots": "null",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2021-01-08T16:52:04Z",
"ModifiedTime": "2021-01-08T16:52:04Z",
"DeletedTime": "2021-01-08T16:52:04Z"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "338990717",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=<ExpireTime>&OSSAccessKeyId=<OSSAccessKeyId>&Signature=<Signature>&security-token=<SecurityToken>",
"Region": "cn-shanghai",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Duration": "10.040000",
"Bitrate": "270112.12",
"Width": "1920",
"Height": "1080"
}
}
]
}
],
"NextToken": "8EqYpQbZ6Eh7+Zz8DxVYoQ==",
"MaxResults": 2
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-26 | The request parameters of the API has changed | View Change Details |