Last updated: 2021-02-23 16:19:15

1. API Description

Domain name for API request:

  1. This API can get multiple types of information of multiple media files, including:
    1. Basic information (basicInfo): media name, category, playback address, cover image, etc.
    2. Metadata (metaData): size, duration, video stream information, audio stream information, etc.
    3. Information of the transcoding result (transcodeInfo): addresses, video stream parameters, and audio stream parameters of the media files with various specifications generated by transcoding a media file.
    4. Information of the animated image generating result (animatedGraphicsInfo): information of an animated image (such as .gif) generated from a video.
    5. Information of a sampled screenshot (sampleSnapshotInfo): information of a sampled screenshot of a video.
    6. Information of an image sprite (imageSpriteInfo): information of an image sprite generated from a video.
    7. Information of a time point screenshot (snapshotByTimeOffsetInfo): information of a time point screenshot of a video.
    8. Information of a timestamp (keyFrameDescInfo): information of a timestamp set for a video.
    9. Information of transcoding to adaptive bitrate streaming (adaptiveDynamicStreamingInfo): specification, encryption type, container format, etc.
  2. The return packet can be configured to only contain certain information.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeMediaInfos.
Version Yes String Common parameter. The value used for this API: 2018-07-17.
Region No String Common parameter. This parameter is not required for this API.
FileIds.N Yes Array of String List of media file IDs. N starts from 0 and can be up to 19.
Filters.N No Array of String Specifies information entry that needs to be returned by all media files. Multiple entries can be specified simultaneously. N starts from 0. If this field is left empty, all information entries will be returned by default. Valid values:
  • basicInfo (basic video information).
  • metaData (video metadata).
  • transcodeInfo (result information of video transcoding).
  • animatedGraphicsInfo (result information of animated image generating task).
  • imageSpriteInfo (image sprite information).
  • snapshotByTimeOffsetInfo (time point screenshot information).
  • sampleSnapshotInfo (sampled screenshot information).
  • keyFrameDescInfo (timestamp information).
  • adaptiveDynamicStreamingInfo (information of adaptive bitrate streaming).
  • miniProgramReviewInfo (WeChat Mini Program audit information).
  • SubAppId No Integer Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.

    3. Output Parameters

    Parameter Name Type Description
    MediaInfoSet Array of MediaInfo Media file information list.
    NotExistFileIdSet Array of String List of IDs of files that do not exist.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Getting media file details

    Input Example
    &<Common request parameters>

    Output Example

      "Response": {
        "RequestId": "6ca31e3a-6b8e-4b4e-9256-fdc700064ef3",
        "MediaInfoSet": [
            "FileId": "5285485487985271487",
            "BasicInfo": {
              "Name": "test file",
              "Description": "",
              "CreateTime": "2017-01-23T07:25:52Z",
              "UpdateTime": "2017-01-23T07:25:52Z",
              "ExpireTime": "2017-03-23T07:25:52Z",
              "ClassId": 1,
              "ClassName": "Test",
              "ClassPath": "Test",
              "CoverUrl": "",
              "Type": "mp4",
              "MediaUrl": "",
              "TagSet": [],
              "SourceInfo": {
                "SourceType": "Record",
                "SourceContext": ""
              "StorageRegion": "gzp"
            "MetaData": {
              "Size": 10556,
              "Container": "m4a",
              "Duration": 3601.0,
              "Bitrate": 246035,
              "Height": 480,
              "Width": 640,
              "Rotate": 0,
              "VideoStreamSet": [
                  "Bitrate": 246000,
                  "Height": 480,
                  "Width": 640,
                  "Codec": "h264",
                  "Fps": 222
              "AudioStreamSet": [
                  "Codec": "aac",
                  "SamplingRate": 44100,
                  "Bitrate": 35
            "TranscodeInfo": {
              "TranscodeSet": [
                  "Url": "",
                  "Definition": 0,
                  "Bitrate": 563477,
                  "Height": 378,
                  "Width": 672,