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

## albumVideoDateCount

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

### 描述

时光相册智能视频日期统计数据获取

### 参数

`Params`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `params` | `IAlbumVideoDateCountReq` | 是 | - | 请求体 |

### 引用对象

##### `interface` IAlbumVideoDateCountReq

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `stockId` | `number` | 库存 id |
| `gid` | `string` | 家庭 id |
| `timeAlbumId` | `number` | 相册 id |
| `type` | `string` | 对应返回值的 type（可选） |

##### `interface` IFileUrl

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `fileUrl` | `string` | 文件路径 |
| `fileName` | `string` | 文件名称（自定义添加，非接口返回） |


### 示例代码

#### 请求示例

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

albumVideoDateCount({ stockId: 1, gid: '194137', timeAlbumId: 100 })
  .then((rows) => console.log(rows))
  .catch(console.error);
```

#### 返回示例

```json
[
  {
    "type": "today",
    "description": "今日",
    "startTime": 1700000000000,
    "endTime": 1700086400000,
    "coverInfo": { "fileUrl": "https://images.example.com/cover.jpg" }
  }
]
```
