All Products
Search
Document Center

Intelligent Media Services:ListPublicMediaBasicInfos

Last Updated:Mar 30, 2026

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.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • Sticker tags:

    • sticker-atmosphere

    • sticker-bubble

    • sticker-cute

    • sticker-daily

    • sticker-expression

    • sticker-gif

  • Background music (BGM) tags:

    • bgm-romantic

    • bgm-cuisine

    • bgm-chinese-style

    • bgm-upbeat

    • bgm-dynamic

    • bgm-relaxing

    • bgm-quirky

    • bgm-beauty

  • Background image (BGI) tags:

    • bgi-grad

    • bgi-solid

    • bgi-pic

sticker-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

  • bgm

  • bgi

sticker

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

******B7-7F87-4792-BFE9-63CD21******

TotalCount

integer

The total number of media assets that meet the specified conditions.

2

MediaInfos

array<object>

The media assets that meet the specified conditions.

array<object>

MediaId

string

The ID of the media asset.

****019b82e24b37a1c2958dec38****

MediaBasicInfo

object

The basic information of the media asset.

MediaId

string

The ID of the media asset.

****019b82e24b37a1c2958dec38****

InputURL

string

The URL of the media asset in another service.

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

MediaType

string

The type of the media asset.

video

BusinessType

string

The business type of the media asset.

general

Source

string

The source of the media asset.

oss

Title

string

The title of the media asset.

titleTitle

Description

string

The description of the media asset.

description

Category

string

The category of the media asset.

video

MediaTags

string

The tags of the media asset.

sticker-daily

CoverURL

string

The thumbnail URL of the media asset.

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

UserData

string

The user data.

userData

Snapshots

string

The snapshots of the media asset.

null

Status

string

The status of the media asset.

Normal

TranscodeStatus

string

The transcoding status of the media asset.

Init

CreateTime

string

The time when the media asset was created.

2021-01-08T16:52:04Z

ModifiedTime

string

The time when the media asset was last modified.

2021-01-08T16:52:04Z

DeletedTime

string

The time when the media asset was deleted.

2021-01-08T16:52:04Z

FileInfoList

array<object>

The file information of the media asset.

array<object>

FileBasicInfo

object

The basic information of the file, such as the 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. Unit: bytes.

338990717

FileUrl

string

The Object Storage Service (OSS) URL of the file.

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

Region

string

The region in which the file resides.

cn-shanghai

FormatName

string

The container format.

mov,mp4,m4a,3gp,3g2,mj2

Duration

string

The duration.

10.040000

Bitrate

string

The bitrate.

270112.12

Width

string

The width.

1920

Height

string

The height.

1080

NextToken

string

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

8EqYpQbZ6Eh7+Zz8DxVYoQ==

MaxResults

integer

The maximum number of entries returned.

2

Examples

Success response

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": "title标题",
        "Description": "description",
        "Category": "video",
        "MediaTags": "sticker-daily",
        "CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
        "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=&OSSAccessKeyId=&Signature=&security-token=",
            "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

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.