YouTube API endpoint
Returns one page of replies using the opaque `continuation_token` on a comment from `/youtube/comments/{id}`. The path `id` is the 11-character video ID that provides the YouTube watch-page context. Pass the response-level `continuation_token` to fetch another replies page.
/youtube/comments/{id}/repliesReturns one page of replies to a comment. Use the 11-character video ID as
id, then pass the parent comment's continuation_token from
/youtube/comments/{id}. The reply cursor is opaque and belongs to that parent
comment. Pass the response's continuation_token to load the following page.
Path parameters:
id: required. YouTube video ID (11-character code).Query parameters:
continuation_token: required. Reply-page cursor from one comment object.| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | YouTube video ID (11-character code) | YbJOTdZBX1g | |
| continuation_token | string | Yes | Opaque per-comment reply token from a comment object | COMMENT_REPLIES_TOKEN | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/youtube/comments/YbJOTdZBX1g/replies?continuation_token=COMMENT_REPLIES_TOKEN" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"comments": [
{
"comment_id": "UgzjL_eQm9EVQN5n9Ex4AaABAg.9x1",
"content": "A reply to the parent comment",
"channel_id": "UC1VvgrsdOvQoQvXixTe9Y3Q",
"user_name": "@reply-author",
"reply_count": 0
}
],
"continuation_token": "NEXT_REPLY_PAGE"
}
}Request schema
No body schema
Response schema
#/definitions/youtube.commentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | youtube.CommentResponse | No | ||||
| data.comments | array | No | Comments on this page of the video. Comment record, 8 fields: channel_id, comment_id, content, continuation_token, likes_count, published_time, reply_count, user_name. Described under YouTube Video Comments API. | |||
| data.continuation_token | string | No | Token to pass in the next request to get the following page. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid parameters | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/youtube/comments/YbJOTdZBX1g/replies?continuation_token=COMMENT_REPLIES_TOKEN" \
-H "x-api-key: $CRAWLORA_API_KEY"