# Douyin-App/抖音APP - 获取作品统计数据（包含播放数（自然播放量））

所属目录：Douyin-App/抖音APP

文档地址：https://doc.getoneapi.com/393567230e0

`POST https://api.getoneapi.com/api/douyin-app/fetch_video_statistics`

- 抖音大多数接口已经不再返回作品的播放数，只能通过此接口获取。
- 可以获取到的统计有：
点赞数（digg_count）
下载数（download_count）
播放数（play_count）
分享数（share_count）
- play_count为自然播放量，不含投流加热。如需包含投流加热总的播放量，请调用[获取作品统计数据V2（含投流/广告加热的总播放量）](https://doc.getoneapi.com/503959633e0)

## 鉴权

在请求头中传递 Authorization: Bearer YOUR_API_KEY（必填）

## 请求参数

### Header 参数

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| Authorization | string | 是 | 在 Header 添加参数 Authorization，其值为在 Bearer 之后拼接 apikey<br><br>默认值： Bearer YOUR_API_KEY |
| Content-Type | string | 是 | 默认值： application/json |

### Body 参数 · application/json

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| aweme_id | string | 是 | 视频ID（与share_text必填一项），优先使用aweme_id<br><br>示例值： 7584380037021830400 |
| share_text | string | 是 | 视频分享链接（与aweme_id必填一项）<br><br>示例值： https://v.douyin.com/7Cw4jn9rZu4/ |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "aweme_id" : {
      "type" : "string",
      "description" : "视频ID（与share_text必填一项），优先使用aweme_id",
      "examples" : [ "7584380037021830400" ]
    },
    "share_text" : {
      "type" : "string",
      "description" : "视频分享链接（与aweme_id必填一项）",
      "examples" : [ "https://v.douyin.com/7Cw4jn9rZu4/" ]
    }
  },
  "required" : [ "aweme_id", "share_text" ]
}
```

#### 示例

```json
{
  "aweme_id" : "7584380037021830400",
  "share_text" : ""
}
```

## 返回响应

### 响应 200 · application/json

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| code | integer | 是 |  |
| message | string | 是 |  |
| data | object | 是 |  |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "code" : {
      "type" : "integer"
    },
    "message" : {
      "type" : "string"
    },
    "data" : {
      "type" : "object",
      "properties" : { }
    }
  },
  "required" : [ "code", "message", "data" ]
}
```

#### 示例

```json
{
  "code" : 200,
  "message" : "success",
  "data" : { }
}
```

## 请求示例代码

```sh
curl --globoff --request POST 'https://api.getoneapi.com/api/douyin-app/fetch_video_statistics' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "aweme_id" : "7584380037021830400",
  "share_text" : ""
}'
```

