# YouTube video comments

Get YouTube video first-level comments. Needs video id. Served by TikHub.

Purpose:
- Get YouTube video first-level comments

Parameters:

📌 Required:
**video_id** (string)
- **Purpose**: Video ID
- **Format**: YouTube video ID string
- **Example**: `"oaSNBz4qMQY"`
- **How to get**: Extract from URL `https://www.youtube.com/watch?v=oaSNBz4qMQY`

⚙️ Optional:
**language_code** (string, optional)
- **Purpose**: Set language preference for comments
- **Default**: `"zh-CN"`
- **Values**: `"zh-CN"`, `"en-US"`, `"ja-JP"`, `"ko-KR"`, etc.

**country_code** (string, optional)
- **Purpose**: Set region code
- **Default**: `"US"`
- **Values**: `"US"`, `"JP"`, `"GB"`, etc.

**sort_by** (string, optional)
- **Purpose**: Comment sorting method
- **Default**: `"top"`
- **Values**:
  - `"top"` - Top comments (sorted by likes)
  - `"newest"` - Newest comments (sorted by time)

**continuation_token** (string, optional)
- **Purpose**: Pagination token for next page
- **Default**: `null`
- **How to get**: Extract from previous response

**need_format** (boolean, optional)
- **Purpose**: Whether to return cleaned simplified data
- **Default**: `true`
- **Values**:
  - `false` - Return raw complete data
  - `true` - Return cleaned simplified data (recommended, default)

Response Structure (need_format=true):
```json
{
  "comments": [
    {
      "comment_id": "UgzRDoUJAvDNn5_8i8p4AaABAg",
      "content": "Comment text content",
      "published_time": "1 day ago",
      "reply_level": 0,
      "like_count": "2",
      "like_count_a11y": "2 likes",
      "reply_count": "0",
      "reply_count_a11y": "0 replies",
      "reply_count_text": "1 reply",
      "reply_conti

- Tool ID: `tikhub/youtube-web-v2-get-video-comments`
- Name in the catalog: Youtube, Get video comments
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube comments](/tools/youtube/comments.md)
- Price: $0.001 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.001
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.001; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": "string",
      "minLength": 11,
      "maxLength": 11,
      "description": "视频ID/Video ID",
      "title": "Video Id"
    },
    "language_code": {
      "type": "string",
      "description": "语言代码（如zh-CN, en-US等）/Language code",
      "default": "zh-CN",
      "title": "Language Code"
    },
    "country_code": {
      "type": "string",
      "description": "国家代码（如US, JP等）/Country code",
      "default": "US",
      "title": "Country Code"
    },
    "sort_by": {
      "type": "string",
      "enum": [
        "top",
        "newest"
      ],
      "title": "CommentSortByAPI",
      "description": "评论排序方式"
    },
    "continuation_token": {
      "type": "string",
      "description": "翻页令牌/Pagination token",
      "title": "Continuation Token"
    },
    "need_format": {
      "type": "boolean",
      "description": "是否需要清洗数据，提取关键内容，移除冗余数据/Whether to clean and format the data",
      "default": true,
      "title": "Need Format"
    }
  },
  "required": [
    "video_id"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/youtube-web-v2-get-video-comments",
  "input": {
    "video_id": "LuIL5JATZsc",
    "language_code": "zh-CN",
    "country_code": "US",
    "sort_by": "top",
    "need_format": true
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/YouTube-Web-V2-API/get_video_comments_api_v1_youtube_web_v2_get_video_comments_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/youtube-web-v2-get-video-comments) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/youtube-web-v2-get-video-comments) · [Agent index](/llms.txt)
