SearchPublicMediaInfo
Searches for media assets that match the specified parameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SearchPublicMediaInfo |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaIds |
string |
No |
The IDs of the IMS media assets. Separate multiple IDs with commas. |
****20b48fb04483915d4f2cd8ac****,****15d4a4b0448391508f2cb486**** |
| DynamicMetaDataMatchFields |
string |
No |
The matching conditions for dynamic metadata search. |
"ApprovalStatus='Available'&MaterialBags='boutiquemusic'&Mood='Nervous'" |
| Favorite |
boolean |
No |
Specifies whether the user has added the media asset to their favorites. |
true |
| Authorized |
boolean |
No |
Specifies whether the user has purchased a resource plan that includes the media asset. |
true |
| SortBy |
string |
No |
The sorting method for the results. Format: field:
order:
|
UsageCount:Desc,UnitPrice:Asc |
| PageNo |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| EntityId |
string |
No |
The entity ID, which is used to identify different types of public copyright media assets. Valid values:
|
Copyright_Music |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
****3CFB-2767-54FD-B311-BD15A4C1**** |
| TotalCount |
integer |
The total number of entries that match the request conditions. |
100 |
| PublicMediaInfos |
array<object> |
The public copyright media asset information. |
|
|
array<object> |
|||
| Authorized |
boolean |
Indicates whether the user has purchased a resource plan that includes the media asset. |
true |
| Favorite |
boolean |
Indicates whether the media asset has been added to favorites. |
true |
| RemainingAuthTime |
string |
The remaining validity period of the resource plan, in days. |
100 |
| MediaInfo |
object |
The media asset information. |
|
| MediaId |
string |
The media asset ID. |
icepublic-****87b921bb4a55908a72a0537e**** |
| MediaBasicInfo |
object |
BasicInfo |
|
| MediaId |
string |
MediaId |
icepublic-****87b921bb4a55908a72a0537e**** |
| MediaType |
string |
The media type of the media asset. |
audio |
| BusinessType |
string |
The business type of the media asset. |
general |
| Source |
string |
The source. |
oss |
| Title |
string |
The title. |
title |
| Description |
string |
The content description. |
description |
| Category |
string |
The category. |
category |
| MediaTags |
string |
The tags. |
tag,tag1 |
| CoverURL |
string |
The cover URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| UserData |
string |
The user data. |
userDataTest |
| Status |
string |
The resource status. |
Normal |
| CreateTime |
string |
The creation time of the media asset. The time is in the ISO 8601 format and in UTC (ending with Z). |
2020-12-26T06:04:49Z |
| ModifiedTime |
string |
The modification time of the media asset. The time is in the ISO 8601 format and in UTC (ending with Z). |
2020-12-26T06:04:50Z |
| DeletedTime |
string |
The deletion time of the media asset. The time is in the ISO 8601 format and in UTC (ending with Z). |
2020-12-29T06:04:49Z |
| SpriteImages |
string |
The sprite images. |
[{"bucket":"example-bucket","count":"32","iceJobId":"******83ec44d58b2069def2e******","location":"oss-cn-shanghai","snapshotRegular":"example/example-{Count}.jpg","spriteRegular":"example/example-{TileCount}.jpg","templateId":"******e438b14ff39293eaec25******","tileCount":"1"}] |
| DynamicMetaData |
object |
The dynamic metadata. |
|
| Data |
string |
The metadata JSON string. |
"{\"AuditionUrl\": \"http://xxx\", \"AuditionCount\": 3...}" |
| Type |
string |
The type. Valid values:
|
system |
Examples
Success response
JSON format
{
"RequestId": "****3CFB-2767-54FD-B311-BD15A4C1****",
"TotalCount": 100,
"PublicMediaInfos": [
{
"Authorized": true,
"Favorite": true,
"RemainingAuthTime": "100",
"MediaInfo": {
"MediaId": "icepublic-****87b921bb4a55908a72a0537e****",
"MediaBasicInfo": {
"MediaId": "icepublic-****87b921bb4a55908a72a0537e****",
"MediaType": "audio",
"BusinessType": "general",
"Source": "oss",
"Title": "title",
"Description": "description",
"Category": "category",
"MediaTags": "tag,tag1",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"UserData": "userDataTest",
"Status": "Normal",
"CreateTime": "2020-12-26T06:04:49Z",
"ModifiedTime": "2020-12-26T06:04:50Z",
"DeletedTime": "2020-12-29T06:04:49Z",
"SpriteImages": "[{\"bucket\":\"example-bucket\",\"count\":\"32\",\"iceJobId\":\"******83ec44d58b2069def2e******\",\"location\":\"oss-cn-shanghai\",\"snapshotRegular\":\"example/example-{Count}.jpg\",\"spriteRegular\":\"example/example-{TileCount}.jpg\",\"templateId\":\"******e438b14ff39293eaec25******\",\"tileCount\":\"1\"}]"
},
"DynamicMetaData": {
"Data": "\"{\\\"AuditionUrl\\\": \\\"http://xxx\\\", \\\"AuditionCount\\\": 3...}\"",
"Type": "system"
}
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.