Search for media assets that meet the conditions based on the parameters provided by the User.
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 |
IMS media asset IDs.
|
****20b48fb04483915d4f2cd8ac****,****15d4a4b0448391508f2cb486**** |
| DynamicMetaDataMatchFields |
string |
No |
Dynamic metadata search matching conditions. |
"ApprovalStatus='Available'&MaterialBags='boutiquemusic'&Mood='Nervous'" |
| Favorite |
boolean |
No |
Indicates whether the User has collected this media asset. |
true |
| Authorized |
boolean |
No |
Indicates whether the User has purchased a resource plan that includes this media asset. |
true |
| SortBy |
string |
No |
Result sorting method: field:
order:
|
UsageCount:Desc,UnitPrice:Asc |
| PageNo |
integer |
No |
Page number. |
1 |
| PageSize |
integer |
No |
Number of entries per page. |
10 |
| EntityId |
string |
No |
Entity ID, 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 |
Request ID |
****3CFB-2767-54FD-B311-BD15A4C1**** |
| TotalCount |
integer |
The total amount of Data under the current request conditions. |
100 |
| PublicMediaInfos |
array<object> |
Public copyright media asset information |
|
|
array<object> |
|||
| Authorized |
boolean |
Indicates whether you have purchased a resource plan that includes this media asset. |
true |
| Favorite |
boolean |
Whether the media asset is collected. |
true |
| RemainingAuthTime |
string |
Remaining validity period of the resource plan (Day) |
100 |
| MediaInfo |
object |
Media asset information |
|
| MediaId |
string |
Media asset ID |
icepublic-****87b921bb4a55908a72a0537e**** |
| MediaBasicInfo |
object |
BasicInfo |
|
| MediaId |
string |
MediaId |
icepublic-****87b921bb4a55908a72a0537e**** |
| MediaType |
string |
Media asset media type |
audio |
| BusinessType |
string |
Media Asset Business Type |
general |
| Source |
string |
Source |
oss |
| Title |
string |
title |
title |
| Description |
string |
Content description |
description |
| Category |
string |
Categorization |
category |
| MediaTags |
string |
Label |
Tag,tag1 |
| CoverURL |
string |
Thumbnail URL |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| UserData |
string |
User Data |
userDataTest |
| Status |
string |
Resource status |
Normal |
| CreateTime |
string |
Media Asset Creation Time |
2020-12-26T06:04:49Z |
| ModifiedTime |
string |
Updated At |
2020-12-26T06:04:50Z |
| DeletedTime |
string |
Media Asset Deletion Time |
2020-12-29T06:04:49Z |
| SpriteImages |
string |
sprite |
[{"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 |
Dynamic metadata |
|
| Data |
string |
Metadata JSON string |
"{\"AuditionUrl\": \"http://xxx\", \"AuditionCount\": 3...}" |
| Type |
string |
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.