GET /v1/youtube/comment/video_comment_v1
YouTube Video Comments API (V1)
stable · 20 credits per success
Retrieve the top-level comments on a YouTube video, with sorting, locale options and cursor pagination. Use it to read audience discussion or page through further comments.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| cursor | string | query | no | 由先前响应返回的分页游标。 | demo |
| sortBy | string | query | no | 评论列表的排序方式。 可选值: - `top`:热门评论 - `newest`:最新评论 | newest |
| videoId | string | query | yes | YouTube视频的唯一标识符。 | demo |
| countryCode | string | query | no | 响应数据的地区代码。 | US |
| languageCode | string | query | no | 响应数据的语言偏好。 | zh-CN |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 20 credits. Any failure — including a 200 that fails the quality gate — costs 0.