SearchPublicMediaInfo

Updated at:

Searches for media assets that match the specified parameters.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: :. Valid values:

field:

  • UsageCount: usage count.

  • UnitPrice: unit price.

order:

  • Desc: descending order.

  • Asc: ascending 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: public copyright music.

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=&OSSAccessKeyId=&Signature=&security-token=

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:

  • ai: AI data processed from original AI results.

  • user-defined: user-defined metadata.

  • system: system-provided metadata.

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.