GET /v1/youtube/video_comment_replies
YouTube comment replies API: replies to a comment by replies token
Returns the replies to one comment, each with its text, author and likes. Send replies_token, the extra.replies_token of a comment from the YouTube comments API; max_pages=1 answers one page at once.
- Price
- $0.0005 per 20 results
- Billing
- $0.0005/20
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/youtube/video_comment_replies?replies_token=Eg0SCzBlM0dQZWExVHlnGAYygwEaUBIaVWd6SDh2bGlRU0pLSFFNR1pqeDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyCzBlM0dQZWExVHlnQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pIOHZsaVFTSktIUU1HWmp4NEFhQUJBZw%3D%3D&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/youtube/video_comment_replies",
params={
"replies_token": "Eg0SCzBlM0dQZWExVHlnGAYygwEaUBIaVWd6SDh2bGlRU0pLSFFNR1pqeDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyCzBlM0dQZWExVHlnQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pIOHZsaVFTSktIUU1HWmp4NEFhQUJBZw==",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
replies_token required | query | string | A comment’s extra.replies_token from /v1/youtube/video_comments. |
since | query | string | Not accepted on this operation: its items carry no timestamp, so since returns 400 before billing. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native YouTube cursor from a raw page answers 400. Result download cursors belong to the results route. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts YouTube (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | true returns the upstream JSON exactly as YouTube answered it instead of the normalized Page[Comment]. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"items": [
{
"id": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT952pvnnAzll",
"text": "The biggest comrade ever",
"created_at": null,
"likes": 6900,
"replies": 2,
"liked_by_owner": null,
"owner": {
"id": "UCWU69Qbi3A6Bzx4xU-UeK7g",
"username": "egdog_tm",
"full_name": "@egdog_tm",
"is_verified": null,
"is_private": null,
"avatar_url": "https://yt3.ggpht.com/1glim4K6lUrgwfThCmliOU7tTxWQ6Tnl2VSEZKFQNxn5braBtYx8bcljKcvw1U0Cv9LlbcfqIg=s88-c-k-c0x00ffffff-no-rj",
"latest_story_at": null,
"extra": {}
},
"extra": {
"published_text": "6 years ago",
"parent_id": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"replies_token": null
}
},
{
"id": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT953cxv6qamK",
"text": "You sir, are a legend",
"created_at": null,
"likes": 6300,
"replies": 2,
"liked_by_owner": null,
"owner": {
"id": "UCFVN9hXPkEfbWBCdNZW6ezA",
"username": "andrejhofer2007",
"full_name": "@andrejhofer2007",
"is_verified": null,
"is_private": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_nHNmhgK4mtwlkvbYzWQNsHe7dvV4nJKisK6SmVW8O7u9Pa8T0cWxyinae9f8_eisKzEw=s88-c-k-c0x00ffffff-no-rj",
"latest_story_at": null,
"extra": {}
},
"extra": {
"published_text": "6 years ago",
"parent_id": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"replies_token": null
}
},
{
"id": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT961rS_2wf3F",
"text": "respect",
"created_at": null,
"likes": 4600,
"replies": 4,
"liked_by_owner": null,
"owner": {
"id": "UC6BLT7n-EQnEILjILxvaJXg",
"username": "Kanenfan",
"full_name": "@Kanenfan",
"is_verified": null,
"is_private": null,
"avatar_url": "https://yt3.ggpht.com/Q0hjeewb2BhpoOKOEYJ9vBJU-IwUX2aKsnHJhod_RP97N2QQMpcAvikjLpXwQwPoSbWP-9qy=s88-c-k-c0x00ffffff-no-rj",
"latest_story_at": null,
"extra": {}
},
"extra": {
"published_text": "6 years ago",
"parent_id": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"replies_token": null
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-10-15T10:27:57.650746+00:00",
"count": 3
}
],
"next_cursor": "eyJjb250aW51YXRpb24iOiJFZzBTQzJSUmR6UjNPVmRuV0dOUkdBWXkyZ0VLVTJkbGRGOWpiMjF0Wlc1MFgzZHBkR2hmY21Wd2JHbGxjMTl6ZEhKbFlXMHRMVU5uWjBsblFWRldSamRtVWs5Q1NVWkRTMEZuUjBGRmFVUm5iMDFEUzJKWUxWQk5Sa1ZMYW5WdGRIZERWVUZDV1VGUkdsQVNHbFZuZWt0WmEzTnhaVkUxWjBF…",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": null,
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-15T10:27:57.650746+00:00",
"cost": "$0.0005",
"balance": "$9.9995",
"request_id": "req_202a93d41e9e97a0317c7c08eee6e5fd"
}
}How it works
The replies to one comment. With max_pages=1, returns Page[Comment] under data; with get_raw=true returns the upstream JSON.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs. YouTube sets every page’s size, so there is no page_size.
A field YouTube does not carry is null, a list it does not carry is [], and YouTube-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Billing: $0.0005 per 20 unique returned items (one native page), rounded up to a minimum of one billing unit; a get_raw=true page bills one unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the YouTube account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |