All Products
Search
Document Center

Intelligent Media Services:GetYikeAssetMediaInfo

Last Updated:Mar 31, 2026

Gets media asset information.

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:GetYikeAssetMediaInfo

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

MediaId

string

Yes

The media asset ID.

****20b48fb04483915d4f2cd8ac****

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

******11-DB8D-4A9A-875B-275798******

MediaInfo

object

The media asset information.

MediaId

string

The media asset ID.

****20b48fb04483915d4f2cd8ac****

MediaBasicInfo

object

The basic information about the media asset.

MediaId

string

The media asset ID.

****20b48fb04483915d4f2cd8ac****

InputURL

string

The source URL of the media asset.

https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4

MediaType

string

The media type.

video

BusinessType

string

The business type.

general

Source

string

The source.

oss

Title

string

The title.

v6l82k_176822379****.jpeg

Description

string

The description.

description

Category

string

The category.

category

MediaTags

string

The media tags.

tag1

CoverURL

string

The cover URL.

https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg

UserData

string

The user data.

UserData

Snapshots

string

The snapshot information.

[]

Status

string

The asset's status.

Normal

CreateTime

string

The creation time.

2020-12-26T04:11:08Z

ModifiedTime

string

The last modification time.

2020-12-26T04:11:10Z

DeletedTime

string

The deletion time.

2020-12-26T04:11:15Z

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"}]

CateId

integer

The category ID.

3048

Biz

string

The associated business.

AiSaas

UploadSource

string

The upload source.

general

CateName

string

The category name.

cateName

ReferenceId

string

A custom ID. It must be 6 to 64 characters long and can contain only lowercase letters, uppercase letters, digits, hyphens (-), and underscores (_). This ID must be unique per user.

123-1234

ThumbURL240P

string

The thumbnail with a height of 240 pixels.

ThumbURL240P

ThumbURLWebp

string

The WebP-encoded thumbnail.

ThumbURLWebp

FileInfoList

array<object>

The file information.

array<object>

The file information.

FileBasicInfo

object

Basic file information, such as duration and size.

FileName

string

The file name.

example.mp4

FileStatus

string

The file status.

Normal

FileType

string

The file type.

source_file

FileSize

string

The file size, in bytes.

27007

FileUrl

string

The OSS URL of the file.

http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=

Region

string

The file's storage region.

cn-shanghai

FormatName

string

The container format.

mp4

Duration

string

The duration.

16.2

Bitrate

string

The bitrate.

20

Width

string

The width.

960

Height

string

The height.

540

CreateTime

string

The file's creation time.

2020-12-26T04:11:08Z

ModifiedTime

string

The file's last modification time.

2020-12-26T04:11:10Z

AudioStreamInfoList

array<object>

An array of audio stream objects. A media asset can contain multiple audio streams.

object

An audio stream object.

Index

string

The audio stream's index.

1

CodecName

string

The codec's short name.

aac

CodecLongName

string

The codec's long name.

AAC (Advanced Audio Coding)

CodecTimeBase

string

The codec's time base.

1/44100

CodecTagString

string

The codec tag string.

mp4a

CodecTag

string

The codec tag.

0x6134706d

Profile

string

The profile.

High

SampleFmt

string

The sample format.

fltp

SampleRate

string

The sample rate.

44100

Channels

string

The number of channels.

2

ChannelLayout

string

The channel layout.

stereo

Timebase

string

The time base.

1/44100

StartTime

string

The start time.

2026-02-04T02:13:00Z

Duration

string

The duration.

16.2

Bitrate

string

The bitrate.

192.0

Fps

string

The audio frame rate.

10

NumFrames

string

The total number of frames.

10

Lang

string

The language.

zh

VideoStreamInfoList

array<object>

An array of video stream objects. A media asset can contain multiple video streams.

object

A video stream object.

Index

string

The video stream's index.

0

CodecName

string

The codec's short name.

h264

CodecLongName

string

The codec's long name.

H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

Profile

string

The profile.

High

CodecTimeBase

string

The codec's time base.

1/48

CodecTagString

string

The codec tag string.

[0][0][0][0]

CodecTag

string

The codec tag.

0x0000

Width

string

The width.

960

Height

string

The height.

540

HasBFrames

string

Indicates whether the video stream contains B-frames.

2

Sar

string

The sample aspect ratio (SAR).

0:1

Dar

string

The display aspect ratio (DAR).

0:1

PixFmt

string

The pixel format.

yuv420p

Level

string

The encoding level.

30

Fps

string

The video frame rate.

24.0

AvgFPS

string

The average frame rate.

24.0

Timebase

string

The time base.

1/12288

StartTime

string

The start time.

0.081706

Duration

string

The duration.

216.206706

Bitrate

string

The bitrate.

20

NumFrames

string

The total number of frames.

5184

Lang

string

The language.

zh

Rotate

string

The rotation angle.

0

SubtitleStreamInfoList

array<object>

An array of subtitle stream objects. A media asset can contain multiple subtitle streams.

object

A subtitle stream object.

Index

string

The subtitle stream's index.

1

CodecName

string

The codec's short name.

srt

CodecLongName

string

The codec's long name.

SubRip Text

CodecTimeBase

string

The codec's time base.

29.97

CodecTagString

string

The codec tag string.

unicode

CodecTag

string

The codec tag.

unicode

Timebase

string

The time base.

30

StartTime

string

The start time.

2025-03-07T01:30Z

Duration

string

The duration.

1

Lang

string

The language.

zh

BizData

object

Custom business data.

FolderId

string

The folder ID.

fd-CBMEJaa2fA

ProductionId

string

The project ID.

ID

AuditBlockedLabel

string

The audit label.

Label

AuditStatus

string

审核状态。

Status

MediaAssetType

string

媒资类型。

Type

MediaAssetSubType

string

媒资子类型。

SubType

SourceType

string

源类型。

MainBody

SourceId

string

源 ID。

f4a26390f02371f0a1f4e6e7c758****

SourceName

string

源名称。

SourceName

IsFavorite

string

是否最喜爱的。

1

IsLogicalDeleted

string

是否被删除。

1

CreationJobId

string

创建任务 ID。

ID

Prompt

string

提示词。

请为上述内容生成一段摘要,字数必须限制在70字以内包含标点符号

Examples

Success response

JSON format

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "MediaInfo": {
    "MediaId": "****20b48fb04483915d4f2cd8ac****",
    "MediaBasicInfo": {
      "MediaId": "****20b48fb04483915d4f2cd8ac****",
      "InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
      "MediaType": "video",
      "BusinessType": "general",
      "Source": "oss",
      "Title": "v6l82k_176822379****.jpeg",
      "Description": "description",
      "Category": "category",
      "MediaTags": "tag1",
      "CoverURL": "https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg",
      "UserData": "UserData",
      "Snapshots": "[]",
      "Status": "Normal",
      "CreateTime": "2020-12-26T04:11:08Z",
      "ModifiedTime": "2020-12-26T04:11:10Z",
      "DeletedTime": "2020-12-26T04:11:15Z",
      "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\"}]",
      "CateId": 3048,
      "Biz": "AiSaas",
      "UploadSource": "general",
      "CateName": "cateName",
      "ReferenceId": "123-1234",
      "ThumbURL240P": "ThumbURL240P",
      "ThumbURLWebp": "ThumbURLWebp"
    },
    "FileInfoList": [
      {
        "FileBasicInfo": {
          "FileName": "example.mp4",
          "FileStatus": "Normal",
          "FileType": "source_file",
          "FileSize": "27007",
          "FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
          "Region": "cn-shanghai",
          "FormatName": "mp4",
          "Duration": "16.2",
          "Bitrate": "20",
          "Width": "960",
          "Height": "540",
          "CreateTime": "2020-12-26T04:11:08Z",
          "ModifiedTime": "2020-12-26T04:11:10Z"
        },
        "AudioStreamInfoList": [
          {
            "Index": "1",
            "CodecName": "aac",
            "CodecLongName": "AAC (Advanced Audio Coding)",
            "CodecTimeBase": "1/44100",
            "CodecTagString": "mp4a",
            "CodecTag": "0x6134706d",
            "Profile": "High",
            "SampleFmt": "fltp",
            "SampleRate": "44100",
            "Channels": "2",
            "ChannelLayout": "stereo",
            "Timebase": "1/44100",
            "StartTime": "2026-02-04T02:13:00Z",
            "Duration": "16.2",
            "Bitrate": "192.0",
            "Fps": "10",
            "NumFrames": "10",
            "Lang": "zh"
          }
        ],
        "VideoStreamInfoList": [
          {
            "Index": "0",
            "CodecName": "h264",
            "CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "Profile": "High",
            "CodecTimeBase": "1/48",
            "CodecTagString": "[0][0][0][0]",
            "CodecTag": "0x0000",
            "Width": "960",
            "Height": "540",
            "HasBFrames": "2",
            "Sar": "0:1",
            "Dar": "0:1",
            "PixFmt": "yuv420p",
            "Level": "30",
            "Fps": "24.0",
            "AvgFPS": "24.0",
            "Timebase": "1/12288",
            "StartTime": "0.081706",
            "Duration": "216.206706",
            "Bitrate": "20",
            "NumFrames": "5184",
            "Lang": "zh",
            "Rotate": "0"
          }
        ],
        "SubtitleStreamInfoList": [
          {
            "Index": "1",
            "CodecName": "srt",
            "CodecLongName": "SubRip Text",
            "CodecTimeBase": "29.97",
            "CodecTagString": "unicode",
            "CodecTag": "unicode",
            "Timebase": "30",
            "StartTime": "2025-03-07T01:30Z",
            "Duration": "1",
            "Lang": "zh"
          }
        ]
      }
    ],
    "BizData": {
      "FolderId": "fd-CBMEJaa2fA",
      "ProductionId": "ID",
      "AuditBlockedLabel": "Label",
      "AuditStatus": "Status",
      "MediaAssetType": "Type",
      "MediaAssetSubType": "SubType",
      "SourceType": "MainBody",
      "SourceId": "f4a26390f02371f0a1f4e6e7c758****",
      "SourceName": "SourceName",
      "IsFavorite": "1",
      "IsLogicalDeleted": "1",
      "CreationJobId": "ID",
      "Prompt": "请为上述内容生成一段摘要,字数必须限制在70字以内包含标点符号"
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.