# Bilibili/哔哩哔哩 - 获取视频评论

所属目录：Bilibili/哔哩哔哩

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

`POST https://api.getoneapi.com/api/bilibili/fetch_video_comment`

## 鉴权

在请求头中传递 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

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| aid | string | 是 | 视频aid<br>通过获取视频信息接口获取<br><br>示例值： 756885743 |
| page | string | 是 | 翻页参数<br>默认值： 1 |
| order | enum&lt;string&gt; | 是 | 排序<br>枚举值： like 最热<br>time 最新 |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "aid" : {
      "type" : "string",
      "title" : "视频aid",
      "description" : "通过获取视频信息接口获取",
      "examples" : [ "756885743" ]
    },
    "page" : {
      "type" : "string",
      "title" : "翻页参数",
      "default" : "1"
    },
    "order" : {
      "type" : "string",
      "title" : "排序",
      "enum" : [ "like", "time" ],
      "enumDescriptions" : {
        "like" : "最热",
        "time" : "最新"
      }
    }
  },
  "required" : [ "aid", "page", "order" ]
}
```

#### 示例

```json
{
  "aid" : "756885743",
  "page" : "1",
  "order" : "time"
}
```

## 返回响应

### 响应 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/bilibili/fetch_video_comment' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "aid" : "756885743",
  "page" : "1",
  "order" : "time"
}'
```

