# Get video comments

Get YouTube video comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by TikHub, pass parameters such as country_code, language_code, sort_by, and retrieve structured data including business status code, content, author context, returned comment id field, and returned like count field for content research and account lookup, and integration reference.

Documentation: https://openany.si/market/apis/youtube/youtube-video-comments-9146839e/?offering=f1f15694-965e-479f-a95f-f3a8662aaf33
API ID: f1f15694-965e-479f-a95f-f3a8662aaf33
Provider: tikhub
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/tikhub/api/v1/youtube/web_v2/get_video_comments
Page update time: 2026-12-03T02:53:55.392Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.001 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:53:55.268Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Get video comments request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "video_id": {
          "type": "string",
          "description": "视频ID/Video ID",
          "minLength": 11,
          "maxLength": 11
        },
        "language_code": {
          "type": "string",
          "description": "语言代码（如zh-CN, en-US等）/Language code"
        },
        "country_code": {
          "type": "string",
          "description": "国家代码（如US, JP等）/Country code"
        },
        "sort_by": {
          "type": "string",
          "description": "排序方式 | Sort by",
          "enum": [
            "top",
            "newest"
          ]
        },
        "continuation_token": {
          "type": "string",
          "description": "翻页令牌/Pagination token"
        },
        "need_format": {
          "type": "boolean",
          "description": "是否需要清洗数据，提取关键内容，移除冗余数据/Whether to clean and format the data"
        }
      },
      "required": [
        "video_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cache_message": {
      "type": "string"
    },
    "cache_message_zh": {
      "type": "string"
    },
    "cache_url": {
      "type": "string"
    },
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "comments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "author": {
                "type": "object",
                "properties": {
                  "avatar_thumbnails": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "height": {
                          "type": "integer"
                        },
                        "url": {
                          "type": "string"
                        },
                        "width": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "avatar_url": {
                    "type": "string"
                  },
                  "channel_id": {
                    "type": "string"
                  },
                  "channel_url": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "is_artist": {
                    "type": "boolean"
                  },
                  "is_creator": {
                    "type": "boolean"
                  },
                  "is_verified": {
                    "type": "boolean"
                  }
                }
              },
              "comment_id": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "creator_thumbnail_url": {
                "type": "string"
              },
              "like_count": {
                "type": "string"
              },
              "like_count_a11y": {
                "type": "string"
              },
              "published_time": {
                "type": "string"
              },
              "reply_continuation_token": {
                "type": "string"
              },
              "reply_count": {
                "type": "string"
              },
              "reply_count_a11y": {
                "type": "string"
              },
              "reply_count_text": {
                "type": "string"
              },
              "reply_level": {
                "type": "integer"
              }
            }
          }
        },
        "continuation_token": {
          "type": "string"
        }
      }
    },
    "docs": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "message_zh": {
      "type": "string"
    },
    "params": {
      "type": "object",
      "properties": {}
    },
    "request_id": {
      "type": "string"
    },
    "router": {
      "type": "string"
    },
    "support": {
      "type": "string"
    },
    "time": {
      "type": "string"
    },
    "time_stamp": {
      "type": "integer"
    },
    "time_zone": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation template (abridged; HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/tikhub/api/v1/youtube/web_v2/get_video_comments?country_code=US&language_code=zh-CN&sort_by=top&video_id=LuIL5JATZsc' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
  "cache_message_zh": "本次响应已缓存，可通过下方 URL 直接查看，有效期 24 小时，访问缓存链接无额外费用。缓存仅用于请求溯源，不影响接口数据的时效性，也不会再次通过接口返回。",
  "cache_url": "<cache_url>",
  "code": 200,
  "data": {
    "comments": [
      {
        "author": {
          "avatar_thumbnails": [
            {
              "height": 88,
              "url": "...",
              "width": 88
            }
          ],
          "avatar_url": "https://yt3.ggpht.com/...",
          "channel_id": "UCzRzHrLFuH0lHZYnrI84I8Q",
          "channel_url": "https://www.youtube.com/@username",
          "display_name": "@username",
          "is_artist": false,
          "is_creator": false,
          "is_verified": false
        },
        "comment_id": "UgzRDoUJAvDNn5_8i8p4AaABAg",
        "content": "评论内容文本",
        "creator_thumbnail_url": "https://yt3.ggpht.com/...",
        "like_count": "2",
        "like_count_a11y": "2 次赞",
        "published_time": "1天前",
        "reply_continuation_token": "...",
        "reply_count": "0",
        "reply_count_a11y": "0 条回复",
        "reply_count_text": "1 条回复",
        "reply_level": 0
      }
    ],
    "continuation_token": "下一页token"
  },
  "docs": "<docs>",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功，本次请求将被计费。",
  "params": {},
  "request_id": "<request_id>",
  "router": "",
  "support": "Discord: https://discord.gg/aMEAS8Xsvz",
  "time": "<time>",
  "time_stamp": 0,
  "time_zone": "America/Los_Angeles"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- scrapecreators: https://openany.si/market/apis/youtube/youtube-video-comments-9146839e/?offering=510ee6e9-7451-431b-89de-dd69a89daf3c
- tikhub: https://openany.si/market/apis/youtube/youtube-video-comments-9146839e/?offering=f1f15694-965e-479f-a95f-f3a8662aaf33

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
