# YouTube Comments API | YouTube comment export

**Use case:** 

Export YouTube comments with SocialDataX. Get comment text, author channel, likes, reply counts, reply tokens and pagination.

## Input

```json
{
  "operation": "get_video_comments",
  "keyword": "OpenAI",
  "page_token": "***",
  "sort_type": "hot",
  "publish_time_range": "all",
  "duration_range": "all",
  "video_url": "https://www.youtube.com/watch?v=UzLkcuAXevg",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "comment_id": {
    "label": "Comment ID",
    "format": "string"
  },
  "content": {
    "label": "Content",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "author_username": {
    "label": "Author username",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "reply_count": {
    "label": "Reply count",
    "format": "integer"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_has_more": {
    "label": "Page has more",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube API | search comments channel videos](https://apify.com/socialdatax/socialdatax-youtube-data-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-youtube-data-api) to learn more, explore other use cases, and run it yourself.