---
name: "albumVideoFileList"
mode: "kit"
versionRequirements:
  - { name: "@tuya-miniapp/cloud-api", version: "1.0.5" }
---

## albumVideoFileList

> [VERSION] @tuya-miniapp/cloud-api >= 1.0.5

### Method signature

```typescript
albumVideoFileList(params: IAlbumVideoFileListReq)
```

### Description

Retrieve Time Album video file list

### Parameters

`Params`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `params` | `IAlbumVideoFileListReq` | Yes | - | Request body |

### Return Value

Type: `Promise<IAlbumVideoFileListRes>`

total and list

### Referenced Types

##### `interface` IAlbumVideoFileListReq

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `stockId` | `number` | Yes | Inventory ID |
| `gid` | `string` | Yes | Home ID |
| `timeAlbumId` | `number` | Yes | Album ID |
| `beginTime` | `number` | No | Query start time (optional) |
| `endTime` | `number` | No | Query end time (optional) |
| `pageNum` | `number` | No | Page number (optional) |
| `pageSize` | `number` | No | Page size (optional) |
| `queryIdFlag` | `boolean` | No | Query ID flag, default false; when true, the result set returns IDs only |

##### `interface` IAlbumVideoFileListRes

| Property | Type | Description |
| --- | --- | --- |
| `total` | `number` | Total number of records |
| `list` | `IAlbumVideoFileList[]` | File list |


### Valid Values

##### `IAlbumVideoFileListRes.list.type`

| Value | Description | Since |
| --- | --- | --- |
| `0` | - | - |
| `1` | - | - |
| `2` | - | - |


### Examples

#### Request example

```typescript
import { albumVideoFileList } from '@tuya-miniapp/cloud-api';

albumVideoFileList({
  stockId: 1,
  gid: '194137',
  timeAlbumId: 100,
  pageNum: 1,
  pageSize: 20,
})
  .then((res) => console.log(res))
  .catch(console.error);
```

#### Response example

```json
{
  "total": 1,
  "list": [
    {
      "id": 10001,
      "captureTime": 1700000000000,
      "type": 1,
      "coverInfo": { "fileUrl": "https://images.example.com/thumb.jpg" },
      "mediaInfo": { "fileUrl": "https://videos.example.com/clip.mp4" }
    }
  ]
}
```
