continuation_tokenstringbắt buộc
**Purpose**: Reply continuation token from first-level comment
https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-repliesReturns second-level replies for a YouTube video comment using a continuation token, with optional filters for region, language, and formatted output.
[
{
"data": {
"continuation_token": null
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the second-level replies to one YouTube video comment. You pass the continuation_token of that comment, and each reply comes with its text, author details, like count, and age.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6S1lrc3FlUTVnQTN0MGcwRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pLWWtzcWVRNWdBM3QwZzBGNEFhQUJBZw%3D%3D"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
continuation_token | string | Yes | Purpose: Reply continuation token from first-level comment |
country_code | string | No | Purpose: Region code |
language_code | string | No | Purpose: Language preference for comments |
need_format | boolean | No | Purpose: Whether to return cleaned simplified data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comments": [
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/1glim4K6lUrgwfThCmliOU7tTxWQ6Tnl2VSEZKFQNxn5braBtYx8bcljKc…",
"channel_id": "UCWU69Qbi3A6Bzx4xU-UeK7g",
"channel_url": "https://www.youtube.com/@egdog_tm",
"display_name": "@egdog_tm",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT952pvnnAzll",
"content": "The biggest comrade ever",
"creator_thumbnail_url": null,
"like_count": "6993",
"like_count_a11y": "6993 次赞",
"published_time": "6年前",
"reply_count": "0",
"reply_count_a11y": "2 条回复",
"reply_level": 1
}
],
"continuation_token": null
}
| Field | Meaning |
|---|---|
comments[] | List of replies to the comment. Each item is one reply. |
comments[].comment_id | ID of the reply. It starts with the ID of the parent comment, followed by a dot and a reply suffix. |
comments[].content | Text of the reply. |
comments[].like_count | Number of likes on the reply. The value is a string. |
comments[].published_time | Age of the reply as shown on YouTube, for example 6年前. It is localized text, not a timestamp. |
comments[].reply_level | Depth of the reply in the thread. Replies in this response have the value 1. |
comments[].author.display_name / comments[].author.channel_url | Handle and channel page URL of the reply author. |
comments[].author.channel_id | YouTube channel ID of the reply author. |
comments[].author.is_verified / comments[].author.is_creator / comments[].author.is_artist | Flags that show whether the author is verified, is the video creator, or is an artist. |
continuation_token | Token for the next page of replies. The value is null when there are no more pages. |
continuation_token from a first-level comment. Get those comments from YouTube Video Comments.continuation_token as the new continuation_token request value. A null value means the last page.reply_count is 0 on every reply here, so read the number of nested replies from reply_count_a11y, which is a localized text string.country_code and language_code are optional. Set language_code to choose the language of the text YouTube returns, such as published_time and the _a11y fields.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"continuation_token": "example"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
continuation_tokenstringbắt buộc**Purpose**: Reply continuation token from first-level comment
country_codestring**Purpose**: Region code
language_codestring**Purpose**: Language preference for comments
need_formatboolean**Purpose**: Whether to return cleaned simplified data
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"continuation_token": null
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: continuation_token (string). Tùy chọn: country_code (string), language_code (string) và need_format (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. YouTube Video Comment Replies chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của YouTube.