# Toutiao/今日头条 - 获取文章一级评论

所属目录：Toutiao/今日头条

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

`POST https://api.getoneapi.com/api/toutiao/fetch_article_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

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| id | string | 是 | 视频ID<br>示例值： 7552798355324191259 |
| offset | string | 是 | 翻页参数<br>响应内容的offset参数值 |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "id" : {
      "type" : "string",
      "title" : "视频ID",
      "examples" : [ "7552798355324191259" ]
    },
    "offset" : {
      "type" : "string",
      "description" : "响应内容的offset参数值",
      "title" : "翻页参数"
    }
  },
  "required" : [ "id", "offset" ]
}
```

#### 示例

```json
{
  "id" : "7552798355324191259",
  "offset" : ""
}
```

## 返回响应

### 响应 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/toutiao/fetch_article_comment' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id" : "7552798355324191259",
  "offset" : ""
}'
```

