API · YouTube
GET /youtube/comments/replies
Replies to a YouTube comment, paginated.
| Request | GET /v1/youtube/comments/replies |
| Operation id | youtube.comment.replies |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Replies to a YouTube comment, paginated.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
video | string | no | The video the comment is on (id or URL), with comment. Example: dQw4w9WgXcQ. |
comment | string | no | A top-level comment id, with video. Example: UgwPwTibxdgqCHZxktd4AaABAg. |
after | string | no | A thread’s repliesToken, or the previous replies page’s nextPageToken. |
textFormat | "html" | "plainText" | no | html (default) or plainText. One of html, plainText. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of replies. | YouTubeCommentList |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. | Error |
YouTubeCommentList fields
| Field | Type | Description |
|---|---|---|
kind | "youtube#commentListResponse" | |
items | YouTubeComment[] | |
nextPageToken | string | Pass as after for the next page. Absent on the last page. Lasts 6 hours. |
pageInfo | object |
Errors use one shape everywhere; see Errors for every code and what to do.